Skip to content

Add pagereveal event - #9818

Merged
domenic merged 15 commits into
whatwg:mainfrom
noamr:pagereveal
Dec 15, 2023
Merged

domenic merged 15 commits into
whatwg:mainfrom
noamr:pagereveal

Conversation

@noamr

@noamr noamr commented Oct 1, 2023 •

Copy link
Copy Markdown
Contributor

Add pagereveal event, and the PageRevealEvent interface.
The pagereveal event is fired at the beginning of the first rendering opportunity after activation (initial load or reactivation).
It is a way for the author to execute some JS that affects the presentation "just in time" for the first frame.
If there is an inbound cross-document view transition, the reveal event holds a reference to the ViewTransition object.

Closes #9315.

(See WHATWG Working Mode: Changes for more details.)


/browsing-the-web.html ( diff )
/index.html ( diff )
/indices.html ( diff )
/infrastructure.html ( diff )
/nav-history-apis.html ( diff )
/webappapis.html ( diff )

@bokand bokand left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm!

Comment thread source Resolved
@noamr noamr mentioned this pull request Oct 16, 2023
2 of 4 tasks
@noamr noamr changed the title WIP-reveal Add pagereveal event Oct 16, 2023
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
@noamr

noamr commented Oct 24, 2023

Copy link
Copy Markdown
Contributor Author

@smaug---- @domenic I think this is ready for review, I checked the appropriate boxes.

Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
@noamr

noamr commented Dec 1, 2023

Copy link
Copy Markdown
Contributor Author

@domenic I think this is ready for another run.

@domenic domenic left a comment

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.

Sorry for the delay. Found a few new nits, and several old ones did not get resolved, including:

Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved

@noamr noamr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry for the missed comments, apparently some comments appear in the review pane and not in the comments pane...

Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
@domenic domenic added addition/proposal New features or enhancements topic: navigation Navigating documents, the Location interface, window.open() and fragment navigation labels Dec 13, 2023
@domenic domenic added the topic: history Session history, the History interface, pushState(), popstate and scroll restoration label Dec 13, 2023

@domenic domenic left a comment

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.

LGTM. I did push one more commit to move the event interface back into event interfaces.

Since Gecko has been quite involved in reviewing this, and hasn't yet given a clear "LGTM", I'll give folks like @smaug---- and @zcorpan another day or two to weigh in before we merge. But I agree with your current assessment that there seems to be Gecko support, so unless I hear otherwise I'll default to merging soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addition/proposal New features or enhancements topic: history Session history, the History interface, pushState(), popstate and scroll restoration topic: navigation Navigating documents, the Location interface, window.open() and fragment navigation

Development

Successfully merging this pull request may close these issues.

Proposal: fire an event before the first rendering opportunity after activation

4 participants