Skip to content

Let the popstate and hashchange events not bubble - #3737

Merged
annevk merged 3 commits into
masterfrom
hashchange-popstate-bubbles
Jun 7, 2018
Merged

annevk merged 3 commits into
masterfrom
hashchange-popstate-bubbles

Conversation

@foolip

@foolip foolip commented Jun 5, 2018 •

Copy link
Copy Markdown
Member

Out of Chrome, Edge, Firefox and Safari, only Firefox sets bubbles to
true for these events. Since they are dispatched on the window object,
that is not particularly meaningful, so match the 3/4 majority.

Tests: web-platform-tests/wpt#11355


/browsing-the-web.html ( diff )

Out of Chrome, Edge, Firefox and Safari, only Firefox sets bubbles to
true for these events. Since they are dispatched on the window object,
that is not particularly meaningful, so match the 3/4 majority.

Tests: web-platform-tests/wpt#11355
foolip added a commit to web-platform-tests/wpt that referenced this pull request Jun 5, 2018
Comment thread source Outdated
<var>new URL</var>.</p></li>
context</span>'s <code>Window</code> object, using <code>HashChangeEvent</code>, with the
<code data-x="dom-HashChangeEvent-oldURL">oldURL</code> attribute initialized to <var>old
URL</var>, and the <code data-x="dom-HashChangeEvent-newURL">newURL</code> attribute

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No need for a comma here before the and since it's only joining two things.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed!

@annevk

annevk commented Jun 5, 2018

Copy link
Copy Markdown
Member

@bzbarsky @smaug---- any concerns?

@smaug----

Copy link
Copy Markdown

Should be fine. If we have some internal code which depends on this, it is broken anyhow, but I don't expect there to be.

@bzbarsky

bzbarsky commented Jun 5, 2018

Copy link
Copy Markdown
Contributor

Yeah, this seems fine.

@annevk annevk added the topic: events Event handlers, their content and IDL attributes, and the events HTML fires label Jun 5, 2018
@annevk
annevk merged commit 85e1e72 into master Jun 7, 2018
@annevk
annevk deleted the hashchange-popstate-bubbles branch June 7, 2018 12:23
@annevk

annevk commented Jun 7, 2018

Copy link
Copy Markdown
Member

@foolip can you file the necessary bugs?

annevk pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 7, 2018
@foolip

foolip commented Jun 7, 2018

Copy link
Copy Markdown
Member Author

I've filed https://bugzilla.mozilla.org/show_bug.cgi?id=1467437

dheiberg pushed a commit to dheiberg/wpt that referenced this pull request Jun 7, 2018
Zirro added a commit to Zirro/web-platform-tests that referenced this pull request Jun 26, 2018
domenic pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 26, 2018
This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737.

Other tests were changed to reflect this in #11355.
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 27, 2018
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 28, 2018
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355
lukebjerring pushed a commit to lukebjerring/wpt that referenced this pull request Jun 29, 2018
This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737.

Other tests were changed to reflect this in web-platform-tests#11355.
kdashg pushed a commit to kdashg/gecko-cinn that referenced this pull request Jun 30, 2018
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355
kdashg pushed a commit to kdashg/gecko-cinn that referenced this pull request Jun 30, 2018
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jul 11, 2018
…a=testonly

Automatic update from web-platform-testsThe hashchange event should not bubble

This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737.

Other tests were changed to reflect this in web-platform-tests/wpt#11355.
--

wpt-commits: 3aaef8d2cac4ab2044a1ba01895f2e028b91d996
wpt-pr: 11672
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355

UltraBlame original commit: 3f8d8f2c37e160fc95ce891620a10f6b832b8da6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355

UltraBlame original commit: d97405360c9af7a51a24881e2664424f6b36b003
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 3, 2019
…a=testonly

Automatic update from web-platform-testsThe hashchange event should not bubble

This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737.

Other tests were changed to reflect this in web-platform-tests/wpt#11355.
--

wpt-commits: 3aaef8d2cac4ab2044a1ba01895f2e028b91d996
wpt-pr: 11672

UltraBlame original commit: ae0bb1f940e178bc39c17224d1fa264af2deacb4
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 3, 2019
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355

UltraBlame original commit: 3f8d8f2c37e160fc95ce891620a10f6b832b8da6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 3, 2019
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355

UltraBlame original commit: d97405360c9af7a51a24881e2664424f6b36b003
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 3, 2019
…a=testonly

Automatic update from web-platform-testsThe hashchange event should not bubble

This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737.

Other tests were changed to reflect this in web-platform-tests/wpt#11355.
--

wpt-commits: 3aaef8d2cac4ab2044a1ba01895f2e028b91d996
wpt-pr: 11672

UltraBlame original commit: ae0bb1f940e178bc39c17224d1fa264af2deacb4
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355

UltraBlame original commit: 3f8d8f2c37e160fc95ce891620a10f6b832b8da6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355

UltraBlame original commit: d97405360c9af7a51a24881e2664424f6b36b003
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 3, 2019
…a=testonly

Automatic update from web-platform-testsThe hashchange event should not bubble

This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737.

Other tests were changed to reflect this in web-platform-tests/wpt#11355.
--

wpt-commits: 3aaef8d2cac4ab2044a1ba01895f2e028b91d996
wpt-pr: 11672

UltraBlame original commit: ae0bb1f940e178bc39c17224d1fa264af2deacb4
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…a=testonly

Automatic update from web-platform-testsHTML: update hashchange/popstate event tests

For whatwg/html#3737.
--

wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a
wpt-pr: 11355
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…a=testonly

Automatic update from web-platform-testsThe hashchange event should not bubble

This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737.

Other tests were changed to reflect this in web-platform-tests/wpt#11355.
--

wpt-commits: 3aaef8d2cac4ab2044a1ba01895f2e028b91d996
wpt-pr: 11672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: events Event handlers, their content and IDL attributes, and the events HTML fires

Development

Successfully merging this pull request may close these issues.

4 participants