Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

30s JavaScript Timeout increase to 60s #15

Open
IAmWebSA opened this issue Apr 29, 2016 · 8 comments
Open

30s JavaScript Timeout increase to 60s #15

IAmWebSA opened this issue Apr 29, 2016 · 8 comments
Assignees
Labels
enhancement help wanted need feedback Need response from issue reporter
Milestone

Comments

@IAmWebSA
Copy link
Contributor

Hi there,

this is not a bug but a feature request.

How can the default script timeout of 30s increased to for e.g. 60s?

Many Thanks

Regards

@sergey-dryabzhinsky
Copy link
Owner

What do you mean by

default script timeout

@IAmWebSA
Copy link
Contributor Author

The browsers normally have a configuration when they sop executing a javascript, and this is per default 30s.

You can easily test it by creating a while loop which takes longer than 30s to complete.

In Firefox etc you can configure this time to whatever you want.

Regards

@sergey-dryabzhinsky
Copy link
Owner

Ah, I see.
I may not find how to set that time in QtWebkit.
I'll try to emulate it via http://doc.qt.io/qt-4.8/qwebpage.html#shouldInterruptJavaScript

@sergey-dryabzhinsky
Copy link
Owner

Can't get it work. Not in Qt4 nor Qt5. Just not called if I run infinite loop in JS.

@sergey-dryabzhinsky
Copy link
Owner

Branch interrupt-java-script-options.

@sergey-dryabzhinsky
Copy link
Owner

Even qupzilla builded with Qt 5.7 hangs with just while(1); infinite loop. No popup dialogs.

@sergey-dryabzhinsky
Copy link
Owner

Seems like it Linux distro Qt packages / Qt MinGW builds problem.
The disabled dialogs at build time.

If I use Windows VS 2010 Qt 4.8.7 build - dialog about JS-script run timeout appears.

@sergey-dryabzhinsky
Copy link
Owner

Done in #27
For now it works only on Windows Qt builds (msvc).

@sergey-dryabzhinsky sergey-dryabzhinsky added the need feedback Need response from issue reporter label Feb 20, 2020
@sergey-dryabzhinsky sergey-dryabzhinsky self-assigned this Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted need feedback Need response from issue reporter
Projects
None yet
Development

No branches or pull requests

2 participants