Closed Bug 1462026 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 11032 - Update LayoutTests to use '%23' instead of '#' in data URIs

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 11032 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/w3c/web-platform-tests/pull/11032
Details from upstream follow.

Stephen McGruer <smcgruer@chromium.org> wrote:
>  Update LayoutTests to use '%23' instead of '#' in data URIs
>  
>  This is a (very) partial reland of
>  https://chromium-review.googlesource.com/c/chromium/src/+/738395,
>  restoring only the changes to LayoutTests. This should be safe since
>  '%23' always has been a correct encoding of '#' and so should work with
>  the data URI code as it is today. It will also make any future re-land
>  of the core original CL easier.
>  
>  Bug: 123004
>  Change-Id: I87126ea0e3fd39756e571a8e6cf966107e7f7209
>  Reviewed-on: https://chromium-review.googlesource.com/1048287
>  WPT-Export-Revision: 9745c34d58bca3d3e298225385c37a40a3bccab6
Component: web-platform-tests → DOM
Product: Testing → Core
Ran 2 tests and 15 subtests
OK     : 1
PASS   : 8
FAIL   : 7
ERROR  : 1

New tests that have failures or other problems:
/fetch/security/dangling-markup-mitigation-data-url.tentative.sub.html
    <iframe id="dangling"\n        src="     data:text/html,\n            <img\n              onload='window.parent.postMessage(&quot;loaded&quot;, &quot;*&quot;);'\n              onerror='window.parent.postMessage(&quot;error&quot;, &quot;*&quot;);'\n              src='http://web-platform.test:8000/images/gr&#10;een-256x256.png?&lt;'>\n        ">\n     </iframe>: FAIL
    <iframe id="dangling"\n        src="&#10;data:text/html,\n            <img\n              onload='window.parent.postMessage(&quot;loaded&quot;, &quot;*&quot;);'\n              onerror='window.parent.postMessage(&quot;error&quot;, &quot;*&quot;);'\n              src='http://web-platform.test:8000/images/gr&#10;een-256x256.png?&lt;'>\n        ">\n     </iframe>: FAIL
    <iframe id="dangling"\n        src="\ndata:text/html,\n            <img\n              onload='window.parent.postMessage(&quot;loaded&quot;, &quot;*&quot;);'\n              onerror='window.parent.postMessage(&quot;error&quot;, &quot;*&quot;);'\n              src='http://web-platform.test:8000/images/gr&#10;een-256x256.png?&lt;'>\n        ">\n     </iframe>: FAIL
    <iframe id="dangling"\n        src="\rdata:text/html,\n            <img\n              onload='window.parent.postMessage(&quot;loaded&quot;, &quot;*&quot;);'\n              onerror='window.parent.postMessage(&quot;error&quot;, &quot;*&quot;);'\n              src='http://web-platform.test:8000/images/gr&#10;een-256x256.png?&lt;'>\n        ">\n     </iframe>: FAIL
    <iframe id="dangling"\n        src="\tdata:text/html,\n            <img\n              onload='window.parent.postMessage(&quot;loaded&quot;, &quot;*&quot;);'\n              onerror='window.parent.postMessage(&quot;error&quot;, &quot;*&quot;);'\n              src='http://web-platform.test:8000/images/gr&#10;een-256x256.png?&lt;'>\n        ">\n     </iframe>: FAIL
    <iframe id="dangling"\n        src="data:text/html,\n            <img\n              onload='window.parent.postMessage(&quot;loaded&quot;, &quot;*&quot;);'\n              onerror='window.parent.postMessage(&quot;error&quot;, &quot;*&quot;);'\n              src='http://web-platform.test:8000/images/gr&#10;een-256x256.png?&lt;'>\n        ">\n     </iframe>: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e63d00cb2e5d
[wpt PR 11032] - Update LayoutTests to use '%23' instead of '#' in data URIs, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/17fc1d0673b4
[wpt PR 11032] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/e63d00cb2e5d
https://hg.mozilla.org/mozilla-central/rev/17fc1d0673b4
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.