Skip to content

[ENH] WebviewWidget: expose JavaScript timeout limit#3811

Merged
janezd merged 1 commit intobiolab:masterfrom
robertcv:fix/js_timeout
May 24, 2019
Merged

[ENH] WebviewWidget: expose JavaScript timeout limit#3811
janezd merged 1 commit intobiolab:masterfrom
robertcv:fix/js_timeout

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
_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