-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APICompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIp3Medium priority – Community PRs encouraged.Medium priority – Community PRs encouraged.
Description
What type of issue is this?
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
Safari does not trigger the pageswap event for cross-origin navigations. It only does so for same-origin navigations.
Try it:
window.addEventListener('pageswap', console.log);What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
I would expect to see a message logged in the console when navigating away to the next (cross-origin) page.
Did you test this? If so, how?
Using a test page:
- Visit https://chrome.dev/event-logger/. Click on “navigate away (same-origin)”
- Note the presence of
pageswapin the list - Click on “navigate away (example.com)”
- Hit the UA back button
- Note the lack of
pageswapin the listIf you want to try yourself, create two pages and add the following in a blocking script in the head:
Manual:
window.addEventListener('pageswap', console.log);Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
https://bugs.webkit.org/show_bug.cgi?id=306447
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Window/pageswap_event
MDN metadata
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APICompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIp3Medium priority – Community PRs encouraged.Medium priority – Community PRs encouraged.