[wpt-sync] Sync PR 63857 - script: use encoding-parse algorithm in HTMLImageElement
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63857 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63857
Details from upstream follow.
Siddhi sahu <himanisahu739@gmail.com> wrote:
script: use encoding-parse algorithm in HTMLImageElement
HTMLImageElement used to join base_url with with source, which always encoded with utf-8.
Now it uses encoding-parse a URL algorithm.
tested locally, everthing works as expected.
Testing: tests/wpt/tests/html/semantics/embedded-content/the-img-element/img-src-encoding-parse.html
Fixes: #<!-- nolink -->49010Reviewed in servo/servo#49020
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=107473
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 148 tests and 17 subtests
Status Summary
Firefox
OK : 1[GitHub] 120[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 1[GitHub] 4[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1814[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1833[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 1837[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 50[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 51[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 53[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
Chrome
OK : 1
PASS: 1
Safari
OK : 1
PASS: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/semantics/embedded-content/the-img-element/animated-webp-update.tentative.html [wpt.fyi]:
FAIL - /html/semantics/embedded-content/the-img-element/attr-img-fetchpriority.html [wpt.fyi]
- fetchpriority attribute on <img> elements should reflect valid IDL values:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - fetchPriority of new Image() is 'auto':
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]
- fetchpriority attribute on <img> elements should reflect valid IDL values:
- /html/semantics/embedded-content/the-img-element/decode/image-decode-iframe.html [wpt.fyi]
- HTMLImageElement.prototype.decode(), iframe tests. Decode from removed iframe fails (img not loaded):
FAIL - HTMLImageElement.prototype.decode(), iframe tests. Decode from iframe, later removed, fails (img not loaded):
FAIL
- HTMLImageElement.prototype.decode(), iframe tests. Decode from removed iframe fails (img not loaded):
- /html/semantics/embedded-content/the-img-element/environment-changes/viewport-change.html [wpt.fyi]
- picture: source (max-width:500px) broken image, img broken image, resize to wide:
FAIL - picture: source (max-width:500px) valid image, img broken image, resize to wide:
FAIL - picture: source (max-width:500px) broken image, img broken image, resize to narrow:
FAIL - picture: source (max-width:500px) broken image, img valid image, resize to narrow:
FAIL
- picture: source (max-width:500px) broken image, img broken image, resize to wide:
- /html/semantics/embedded-content/the-img-element/image-base-url.html [wpt.fyi]
- An image should not be refetched upon insertion asynchronously after its Document's base URL changes:
FAIL
- An image should not be refetched upon insertion asynchronously after its Document's base URL changes:
- /html/semantics/embedded-content/the-img-element/image-loading-lazy-below-viewport-dynamic.html [wpt.fyi]
- Test that below viewport images with loading='lazy' and changed to loading='eager' load and do not block the window load event.:
FAIL
- Test that below viewport images with loading='lazy' and changed to loading='eager' load and do not block the window load event.:
- /html/semantics/embedded-content/the-img-element/image-loading-lazy-in-viewport-dynamic.html [wpt.fyi]
- Test that in viewport images with loading='lazy' and changed to loading='eager' do not block the window load event.:
FAIL
- Test that in viewport images with loading='lazy' and changed to loading='eager' do not block the window load event.:
- /html/semantics/embedded-content/the-img-element/image-loading-lazy-multiple-times.html [wpt.fyi]
- Images with loading='lazy' can be lazy loaded multiple times:
FAIL
- Images with loading='lazy' can be lazy loaded multiple times:
- /html/semantics/embedded-content/the-img-element/list-of-available-images-does-not-coalesce-in-flight-requests.sub.tentative.html [wpt.fyi]
- list of available images does not coalesce in-flight requests:
FAIL
- list of available images does not coalesce in-flight requests:
- /html/semantics/embedded-content/the-img-element/relevant-mutations-lazy.html [wpt.fyi]
- width attribute changes:
FAIL - width property changes:
FAIL - uncached width property changes:
FAIL - percentage width, CB width changes:
FAIL - height property changes (with aspect-ratio):
FAIL - loading attribute changes to LAZY:
FAIL
- width attribute changes:
- /html/semantics/embedded-content/the-img-element/relevant-mutations.html [wpt.fyi]
- referrerpolicy no-referrer-when-downgrade to absent, src already set:
FAIL - referrerpolicy no-referrer-when-downgrade to empty, src already set:
FAIL - referrerpolicy no-referrer-when-downgrade to invalid, src already set:
FAIL - referrerpolicy no-referrer to absent, src already set:
FAIL - referrerpolicy no-referrer to empty, src already set:
FAIL - referrerpolicy no-referrer to invalid, src already set:
FAIL - srcset is set to same value:
FAIL - sizes is set to same value:
FAIL
- referrerpolicy no-referrer-when-downgrade to absent, src already set:
- /html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-display-none.html [wpt.fyi]
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (display:none):
FAIL - <img srcset="/images/green-1x1.png?f51 50w, /images/green-16x16.png?f51 51w" sizes="calc(0px / 0)"> ref sizes="100vw" (display:none):
FAIL - <img srcset="/images/green-1x1.png?f52 50w, /images/green-16x16.png?f52 51w" sizes="calc(-1px / 0)"> ref sizes="100vw" (display:none):
FAIL
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (display:none):
- /html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-quirks-mode.html [wpt.fyi]
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (quirks mode):
FAIL - <img srcset="/images/green-1x1.png?f51 50w, /images/green-16x16.png?f51 51w" sizes="calc(0px / 0)"> ref sizes="100vw" (quirks mode):
FAIL - <img srcset="/images/green-1x1.png?f52 50w, /images/green-16x16.png?f52 51w" sizes="calc(-1px / 0)"> ref sizes="100vw" (quirks mode):
FAIL
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (quirks mode):
- /html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-standards-mode.html [wpt.fyi]
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (standards mode):
FAIL - <img srcset="/images/green-1x1.png?f51 50w, /images/green-16x16.png?f51 51w" sizes="calc(0px / 0)"> ref sizes="100vw" (standards mode):
FAIL - <img srcset="/images/green-1x1.png?f52 50w, /images/green-16x16.png?f52 51w" sizes="calc(-1px / 0)"> ref sizes="100vw" (standards mode):
FAIL
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (standards mode):
- /html/semantics/embedded-content/the-img-element/sizes/parse-a-sizes-attribute-width-1000px.html [wpt.fyi]
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (width:1000px):
FAIL - <img srcset="/images/green-1x1.png?f51 50w, /images/green-16x16.png?f51 51w" sizes="calc(0px / 0)"> ref sizes="100vw" (width:1000px):
FAIL - <img srcset="/images/green-1x1.png?f52 50w, /images/green-16x16.png?f52 51w" sizes="calc(-1px / 0)"> ref sizes="100vw" (width:1000px):
FAIL
- <img srcset="/images/green-1x1.png?e38 50w, /images/green-16x16.png?e38 51w" sizes="(min-width:calc(0)) 1px"> ref sizes="1px" (width:1000px):
- /html/semantics/embedded-content/the-img-element/svg-img-density-vs-zoom.html [wpt.fyi]
- SVG, no intrinsic dims + 2x zoom: rendered size scaled, naturalWidth/Height not:
FAIL - SVG, intrinsic width only + 2x zoom: everything scaled:
FAIL
- SVG, no intrinsic dims + 2x zoom: rendered size scaled, naturalWidth/Height not:
- /html/semantics/embedded-content/the-img-element/update-the-image-data/fail-to-resolve.html [wpt.fyi]
- <img src="//[">:
FAIL - <img srcset="//[">:
FAIL - <img srcset="//[" src="/images/red.png">:
FAIL - <img srcset="//[, /images/red.png">:
FAIL
- <img src="//[">:
- /html/semantics/embedded-content/the-img-element/usemap-casing.html [wpt.fyi]
- Image with usemap of #sanityCheck should match the area with map named sanityCheck:
FAIL
- Image with usemap of #sanityCheck should match the area with map named sanityCheck:
- /html/semantics/embedded-content/the-img-element/width-height-attribute-parsing.html [wpt.fyi]
- width and height attribute value "+10":
FAIL - width and height attribute value "50%":
FAIL - width and height attribute value "1.9":
FAIL - width and height attribute value "0.5":
FAIL - width and height attribute value "-0":
FAIL - width and height attribute value "-0.5":
FAIL
- width and height attribute value "+10":
Comment 4•29 days ago
|
||
| bugherder | ||
Description
•