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

Await script load before continuing evaluation in iodide (fixes #1278) #2411

Merged

Conversation

wlach
Copy link
Contributor

@wlach wlach commented Nov 5, 2019

We were already waiting for the network, but should also be waiting
for the DOM event that the script has been evaluated.

Pull Request checklist

  • Documentation: If this feature has or requires documentation, the relevant docs have been updated.
  • Changelog: This PR updates the changelog with any user-visible changes.
  • Tests: This PR includes thorough tests or an explanation of why it does not

…e-project#1278)

We were already waiting for the network, but should also be waiting
for the DOM event that the script has been evaluated.
@wlach wlach force-pushed the await-script-load-before-continuing branch from 25fadfa to 7d08bdf Compare November 5, 2019 13:59
@wlach
Copy link
Contributor Author

wlach commented Nov 5, 2019

This fixes all the issues I can see in production. I'm not sure offhand how best to write a test case for this: this is a pretty big papercut and I'm kind of inclined just to merge if that's ok with people.

@codecov
Copy link

codecov bot commented Nov 5, 2019

Codecov Report

Merging #2411 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2411   +/-   ##
=======================================
  Coverage   69.58%   69.58%           
=======================================
  Files         223      223           
  Lines        5464     5464           
  Branches      877      877           
=======================================
  Hits         3802     3802           
  Misses       1643     1643           
  Partials       19       19

@wlach wlach merged commit 88b9e7f into iodide-project:master Nov 5, 2019
@wlach wlach deleted the await-script-load-before-continuing branch November 5, 2019 17:06
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