-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Chrome already supports pre-rendering (blog), but only for a navigation that is expected to happen in an existing tab. We are looking to expand this to situations where a pre-rendered page could open in a new tab or window, such as when clicking an anchor tag.
It is unclear if this new tab will be added to the current window or a new one while pre-rendering is happening since it can start before the click has happened, and we do not know if the user will middle click.
Should we fire events on the browser.tabs API, and if so should the windowId parameter be:
- The ID of the window initiating the navigation (which will be the final window if a new one is not opened)
- A new window ID (which will only be used if we place the tab in a new window)
- An arbitrary value, or a pre-determined value that represents this specific case
Note that for the existing pre-rendering of documents, we do fire webNavigation events in the existing implementation. We set the frameId to an unspecified value and provide the documentLifecycle property on the event to indicate that we are in the pre-render lifecycle stage.