Auto merge of #26499 - utsavoza:ugo/issue-26287/10-05-2020, r=jdm

Add creator URL, creator base URL and creator origin to browsing context

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #24944 and fix (partially) #26287
- [x] There are tests for these changes
This commit is contained in:
bors-servo 2020-05-19 12:45:11 -04:00 committed by GitHub
commit cab9104d92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 216 additions and 107 deletions

View file

@ -1,4 +1,43 @@
[sandboxed-iframe.html]
expected: TIMEOUT
[Blob URLs can be used in <script> tags]
expected: TIMEOUT
[Blob URLs can be used in iframes, and are treated same origin]
expected: FAIL
[Blob URL fragment is implemented.]
expected: TIMEOUT
[Blob URLs can be used in XHR]
expected: FAIL
[XHR with a fragment should succeed]
expected: FAIL
[Only exact matches should revoke URLs, using XHR]
expected: FAIL
[Revoke blob URL after open(), will fetch]
expected: FAIL
[Blob URLs can be used in fetch]
expected: FAIL
[fetch with a fragment should succeed]
expected: FAIL
[Only exact matches should revoke URLs, using fetch]
expected: FAIL
[fetch should return Content-Type from Blob]
expected: FAIL
[Revoke blob URL after creating Request, will fetch]
expected: FAIL
[Revoke blob URL after calling fetch, fetch should succeed]
expected: FAIL
[XHR should return Content-Type from Blob]
expected: FAIL

View file

@ -2,14 +2,7 @@
[Generated Blob URLs are unique]
expected: FAIL
[Blob URL parses correctly]
expected: FAIL
[url-format.any.html]
[Generated Blob URLs are unique]
expected: FAIL
[Blob URL parses correctly]
expected: FAIL

View file

@ -1,5 +0,0 @@
[viewport-units-after-font-load.html]
expected: TIMEOUT
[Viewport units are correctly updated after resize even if a font load has happened before]
expected: TIMEOUT

View file

@ -18,39 +18,11 @@
[Fetch: /images/green-1x1.png?<\\t=block]
expected: FAIL
[<img id="dangling" src="/images/green-1x1.png?img=&lt;b">]
[<img id="dangling" src="/images/green-1x1.png?img=&#10;&lt;b">]
expected: FAIL
[<img id="dangling" src="/images/green-1x1.png?img=&#10;b">]
[<img id="dangling" src="/images/green-1x1.png?img=&lt;&#10;b">]
expected: FAIL
[<img id="dangling" src="/images/green-1x1.png?img=&amp;#10;b">]
[\\n <img id="dangling" src="/images/green-1x1.png?img=\\n &lt;\\n &#10;b\\n ">\\n ]
expected: FAIL
[<img id="dangling" src="/images/green-1x1.png?img=&amp;lt;b">]
expected: FAIL
[<img id="dangling" src="/images/green-1x1.png?img=&amp;#10;b&amp;lt;c">]
expected: FAIL
[\\n <img id="dangling" src="\\n /images/green-1x1.png?img=\\n ">\\n ]
expected: FAIL
[\\n <img id="dangling" src="\\n /images/green-1x1.png?img=&amp;lt;\\n ">\\n ]
expected: FAIL
[\\n <img id="dangling" src="\\n /images/green-1x1.png?img=&amp;#10;\\n ">\\n ]
expected: FAIL
[<img id="dangling" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=">]
expected: FAIL
[<img id="dangling" src="data:image/png;base64,&#10;iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=">]
expected: FAIL
[<img id="dangling" src="data:image/png;base64,i&#10;VBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=">]
expected: FAIL
[<img id="dangling" src="data:image/svg+xml;utf8,\\n <svg width='1' height='1' xmlns='http://www.w3.org/2000/svg'>\\n <rect width='100%' height='100%' fill='rebeccapurple'/>\\n <rect x='10%' y='10%' width='80%' height='80%' fill='lightgreen'/>\\n </svg>">]
expected: FAIL

View file

@ -0,0 +1,4 @@
[010.html]
type: testharness
[Link with onclick form submit to javascript url with delayed document.write and href navigation ]
expected: FAIL

View file

@ -1,14 +0,0 @@
[document-base-url.html]
type: testharness
[The fallback base URL of a document whose address is about:blank is the document base URL of the creator document.]
expected: FAIL
[The fallback base URL of an iframe srcdoc document is the document base URL of the document's browsing context's browsing context container's document.]
expected: FAIL
[about:blank with a base element.]
expected: FAIL
[The base URL of an iframe srcdoc document with a <base> tag should be set by that tag.]
expected: FAIL

View file

@ -1,5 +0,0 @@
[base_about_blank.html]
type: testharness
[base element in about:blank document should resolve against its fallback base URI]
expected: FAIL

View file

@ -1,5 +0,0 @@
[base_srcdoc.html]
type: testharness
[base element in srcdoc document should resolve against its fallback base URI]
expected: FAIL

View file

@ -1,5 +1,6 @@
[iframe_sandbox_anchor_download_allow_downloads.sub.tentative.html]
expected: TIMEOUT
[<a download> triggered download in sandbox is allowed by allow-downloads.]
expected: TIMEOUT
expected: FAIL
[<a download> triggered download in sandbox is blocked]
expected: FAIL

View file

@ -0,0 +1,3 @@
[iframe_sandbox_anchor_download_block_downloads.sub.tentative.html]
[<a download> triggered download in sandbox is blocked.]
expected: FAIL

View file

@ -1,5 +1,6 @@
[iframe_sandbox_navigation_download_allow_downloads.sub.tentative.html]
expected: TIMEOUT
[Navigation resulted download in sandbox is allowed by allow-downloads.]
expected: TIMEOUT
expected: FAIL
[Navigation resulted download in sandbox is blocked.]
expected: FAIL

View file

@ -0,0 +1,3 @@
[iframe_sandbox_navigation_download_block_downloads.sub.tentative.html]
[Navigation resulted download in sandbox is blocked.]
expected: FAIL

View file

@ -1,2 +1,4 @@
[move-element-and-scroll.html]
expected: ERROR
[Test that <img> below viewport is not loaded when moved to another document and then scrolled to]
expected: FAIL

View file

@ -0,0 +1,2 @@
[sizes-dynamic-001-ref.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[sizes-dynamic-001.html]
expected: FAIL

View file

@ -1,7 +1,10 @@
[abort-while-navigating.window.html]
expected: TIMEOUT
[document.open() aborts documents that are navigating through iframe loading (XMLHttpRequest)]
expected: FAIL
expected: TIMEOUT
[document.open() aborts documents that are navigating through iframe loading (fetch())]
expected: TIMEOUT
[document.open() aborts documents that are navigating through Location (fetch())]
expected: TIMEOUT

View file

@ -1,9 +1,5 @@
[sandboxed-iframe-with-opaque-origin.html]
type: testharness
expected: TIMEOUT
[Sandboxed iframe with opaque origin doesn't send referrers.]
expected: TIMEOUT
[Sandboxed iframe with tuple origin sends referrers.]
expected: TIMEOUT
expected: FAIL

View file

@ -1,5 +0,0 @@
[open-url-about-blank-window.htm]
type: testharness
[XMLHttpRequest: open() resolving URLs (about:blank iframe)]
expected: FAIL

View file

@ -1,5 +0,0 @@
[open-url-javascript-window-2.htm]
type: testharness
[XMLHttpRequest: open() - resolving URLs (javascript: <iframe>; 2)]
expected: FAIL