Skip to content

Update 'destination' for navigation requests. - #4976

Merged
annevk merged 1 commit into
masterfrom
framed-destination
Jun 5, 2020
Merged

annevk merged 1 commit into
masterfrom
framed-destination

Conversation

@mikewest

@mikewest mikewest commented Oct 7, 2019 •

Copy link
Copy Markdown
Member

Currently, top-level and nested navigations set a request destination of
"document" when performing the "process a navigate fetch" algorithm.
This patch follows whatwg/fetch#948, splitting "document" into "frame"
and "iframe" for nested navigation requests.

This patch aims to support the Fetch Metadata discussion in w3c/webappsec-fetch-metadata#45, and the Fetch patch in whatwg/fetch#948.


/browsing-the-web.html ( diff )
/iframe-embed-object.html ( diff )

Comment thread source Outdated
<li><p>If <var>browsingContext</var>'s <span>browsing context container</span> is an
<code>iframe</code> element, set <var>request</var>'s <span
data-x="concept-request-destination">destination</span> to "<code
data-x="">iframe</code>".</p></li>

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.

What would go wrong if we set it to browsing context container's local name?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That might be an elegant way of replacing all this text with something simpler. Hrm. Assuming portal does the same thing (which is a reasonable thing to expect), it seems pretty future-proof.

Let me think about it for a minute, but I don't see any obvious reason not to do it this way.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Poked at this in fa00f9a. Thank you for the suggestion.

@mikewest mikewest changed the title Change nested navigations' fetches destinations. Update 'destination' for navigation requests. Nov 25, 2019
@mikewest

Copy link
Copy Markdown
Member Author

Updated this to include minimal <embed> and <object> changes.

@mikewest

Copy link
Copy Markdown
Member Author

Pinging this as well, as it should hopefully land alongside whatwg/fetch#948.

@annevk

annevk commented Feb 11, 2020

Copy link
Copy Markdown
Member

It does seem like this needs rebasing first though.

Currently, top-level and nested navigations set a request destination of
"document" when performing the "process a navigate fetch" algorithm.
This patch follows whatwg/fetch#948, splitting "document" into "frame"
and "iframe" for nested navigation requests.
@mikewest

Copy link
Copy Markdown
Member Author

It does seem like this needs rebasing first though.

Rebased and force-pushed in 50ce162. WDYT?

@annevk annevk added the needs tests Moving the issue forward requires someone to write tests label Feb 14, 2020
@annevk

annevk commented Feb 14, 2020

Copy link
Copy Markdown
Member

Although I suppose this will reuse the tests from whatwg/fetch#948, right?

@mikewest

Copy link
Copy Markdown
Member Author

Although I suppose this will reuse the tests from whatwg/fetch#948, right?

I think that's correct, yes.

@annevk annevk added do not merge yet Pull request must not be merged per rationale in comment and removed needs tests Moving the issue forward requires someone to write tests labels Feb 14, 2020
annevk pushed a commit to whatwg/fetch that referenced this pull request Jun 5, 2020
@annevk annevk removed the do not merge yet Pull request must not be merged per rationale in comment label Jun 5, 2020
@annevk
annevk merged commit db2ce7e into master Jun 5, 2020
@annevk
annevk deleted the framed-destination branch June 5, 2020 09:03
yutakahirano pushed a commit to whatwg/fetch that referenced this pull request Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants