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

[ENH] WebviewWidget: expose JavaScript timeout limit #3811

Merged
merged 1 commit into from
May 24, 2019

Conversation

robertcv
Copy link
Collaborator

Issue

Widgets based on WebviewWidget have no options to change the timeout limit for running JavaSript code.

Description of changes

Expose a new js_timeout parameter.

Includes
  • Code changes
  • Tests
  • Documentation

@robertcv
Copy link
Collaborator Author

Need for #60.

@codecov
Copy link

codecov bot commented May 20, 2019

Codecov Report

Merging #3811 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3811      +/-   ##
==========================================
+ Coverage   85.06%   85.06%   +<.01%     
==========================================
  Files         374      374              
  Lines       69142    69143       +1     
==========================================
+ Hits        58816    58817       +1     
  Misses      10326    10326

@janezd janezd self-assigned this May 24, 2019
@@ -535,7 +535,7 @@ def is_all_exposed(self):
class WebviewWidget(_WebViewBase, WebEngineView):
_html = _NOTSET

def __init__(self, parent=None, bridge=None, *, debug=False, **kwargs):
def __init__(self, parent=None, bridge=None, js_timeout=5000, *, debug=False, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer *, js_timeout=5000.

@janezd janezd merged commit c01e7a7 into biolab:master May 24, 2019
@robertcv robertcv deleted the fix/js_timeout branch May 31, 2019 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants