Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define srcdoc documents as matching about:srcdoc URL
Previously, the standard defined "an iframe srcdoc document" as being solely constructed from the contents of an iframe's srcdoc content attribute. However, it is possible to create documents that are not created in such a way, but do have a URL of about:srcdoc (or about:srcdoc#foo), using document.open() and javascript: URL navigation. Remove the distinction between such nontraditional srcdoc documents and the classic "iframe srcdoc documents" by introducing the "matches about:srcdoc" concept for URLs, and defining "an iframe srcdoc document" as a thin alias over this concept. This proposal was described by #9514 (comment). This matches observed browser behavior, for referrer calculation (the only post-parsing case that is impacted by the "an iframe srcdoc document" concept). Additionally, this new concept ensures that about:srcdoc#foo documents (e.g., created via history.replaceState(null, '', 'about:srcdoc#foo')) are also counted as normal srcdoc documents. Fixes #9514.
- Loading branch information