Skip to content

What happens if activate is called while the portal is navigating #227

@jakearchibald

Description

@jakearchibald

We decided in #191 that the timing of activating a portal shouldn't be down to guesswork.

portal.src = otherURL;
portal.activate();

What should happen here? Should it wait for otherURL to fetch, or should it try and activate the current context (which may be absent)?

Similarly, what should we do if the portal is undergoing a navigation that was triggered internally?


If the src is set, it feels like activation should wait for that action to settle.

If the portal is navigating by some other means, waiting seems like an information leak. The alternative would be to abort that navigation, and activate the current document. This is giving the host page some control over an action stated within the portal, but it seems window.stop() can already do that? Thoughts @jyasskin?

Metadata

Metadata

Assignees

Labels

design work neededAn acknowledged gap in the proposal that needs design work to resolvespec todoA nitty-gritty detail that needs spec work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions