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

Don't execute scripts that have moved documents #5575

Merged
merged 2 commits into from
Jun 15, 2020

Conversation

domfarolino
Copy link
Member

@domfarolino domfarolino commented May 25, 2020

The actual spec change is somewhat editorial, since we're just locking in the current spec behavior, but I'm including the below for further documentation / justification.

Assuming we're comfortable closing #2137 in favor of locking in the current spec, which I believe is tested by web-platform-tests/wpt#19632, this small PR should be the last thing left.


/scripting.html ( diff )

@domfarolino domfarolino requested a review from domenic May 25, 2020 05:42
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

This LGTM. Let's hold off on merging until the Chromium CL lands? In particular it seems like there's some discussion about running an experiment (or perhaps an Intent to Deprecate and Remove might be appropriate).

@domenic domenic added the do not merge yet Pull request must not be merged per rationale in comment label May 26, 2020
@domfarolino
Copy link
Member Author

+1 on holding off. It could be nice to at least get some UseCounter data at least.

domfarolino added a commit to web-platform-tests/wpt that referenced this pull request May 27, 2020
This PR adds empty-src tests, which moves <script src=""> elements
between Documents before #prepare-a-script. If the parser document
check is done in #prepare-a-script, the <script>'s error event is not fired,
and thus we can more-completely test whether the parser document check is done.

This PR also does some minor refactoring / documentation clean-up, as well as
adds a TODO to remove some of the tests once whatwg/html#2137
is closed and whatwg/html#5575 lands.

Co-authored-by: Dominic Farolino <domfarolino@gmail.com>
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 1, 2020
…e in #prepare-a-script, a=testonly

Automatic update from web-platform-tests
Test whether parse document check is done in #prepare-a-script (#23162)

This PR adds empty-src tests, which moves <script src=""> elements
between Documents before #prepare-a-script. If the parser document
check is done in #prepare-a-script, the <script>'s error event is not fired,
and thus we can more-completely test whether the parser document check is done.

This PR also does some minor refactoring / documentation clean-up, as well as
adds a TODO to remove some of the tests once whatwg/html#2137
is closed and whatwg/html#5575 lands.

Co-authored-by: Dominic Farolino <domfarolino@gmail.com>
--

wpt-commits: eccee3ede4f1debb1ad5bd34e6122bcb2cadce48
wpt-pr: 23162
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Jun 2, 2020
…e in #prepare-a-script, a=testonly

Automatic update from web-platform-tests
Test whether parse document check is done in #prepare-a-script (#23162)

This PR adds empty-src tests, which moves <script src=""> elements
between Documents before #prepare-a-script. If the parser document
check is done in #prepare-a-script, the <script>'s error event is not fired,
and thus we can more-completely test whether the parser document check is done.

This PR also does some minor refactoring / documentation clean-up, as well as
adds a TODO to remove some of the tests once whatwg/html#2137
is closed and whatwg/html#5575 lands.

Co-authored-by: Dominic Farolino <domfarolino@gmail.com>
--

wpt-commits: eccee3ede4f1debb1ad5bd34e6122bcb2cadce48
wpt-pr: 23162
@domenic domenic removed the do not merge yet Pull request must not be merged per rationale in comment label Jun 15, 2020
@domenic domenic merged commit f6cbe27 into master Jun 15, 2020
@domenic domenic deleted the domfarolino/remove-debate-notes branch June 15, 2020 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants