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

Can reportaling happen if the portal was since navigated? #221

Open
jakearchibald opened this issue Jun 25, 2020 · 1 comment
Open

Can reportaling happen if the portal was since navigated? #221

jakearchibald opened this issue Jun 25, 2020 · 1 comment
Labels
design work needed An acknowledged gap in the proposal that needs design work to resolve

Comments

@jakearchibald
Copy link
Collaborator

I'm still keen on making the back button 'work' after activation. As in, if the previous page is still alive, due to bfcache or adopted portal, the current page is put back into its original portal, so a reverse transition can happen.

However, in the meantime, that portal may have had its src changed, creating a new browsing context.

Options:


The current browsing context in the portal is discarded, and replaced with the 'reportaled' context.


The page navigates, but no reportaling happens. The portal will display its latest browsing context.


Setting src on a portal is ignored between successful activation and reportaling.

I think I'm leaning towards "The current browsing context in the portal is discarded"

@jakearchibald jakearchibald added the design work needed An acknowledged gap in the proposal that needs design work to resolve label Jun 25, 2020
@jeremyroman
Copy link
Collaborator

Another option is to offer the context to the page if it qualifies but not do so automatically. This would have the downside that some simple cases that could have been automatic won't be, but it has the advantage that it would be possible to ship a version that didn't support readoption and add support later without breaking previous content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design work needed An acknowledged gap in the proposal that needs design work to resolve
Projects
None yet
Development

No branches or pull requests

2 participants