[wpt-sync] Sync PR 64619 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=319182
Categories
(Core :: DOM: Navigation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64619 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64619
Details from upstream follow.
Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=319182
WebKit export from bug: Scroll To Text Fragment:<!----> simplify MIME-<!---->type gate and add mixed-<!---->case coverage
<pre>
Scroll To Text Fragment: simplify MIME-type gate and add mixed-case coverageFollow-up to <a href="https://commits.webkit.org/316976@main">316976@main</a>. ParsedContentType::mimeType() already returns an
ASCII-lowercased essence (setContentType() calls convertToASCIILowercase()),
so the equalLettersIgnoringASCIICase() comparisons in scrollToTextFragment()
were redundant. Compare the parsed MIME type directly against the lowercase
literals "text/html" and "text/plain", and note in a comment that the string
is already lowercased.Also add WPT coverage for a document served with a mixed-case Content-Type
("Text/HTML; charset=UTF-8") to pin the case-insensitive normalization.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=319182">https://bugs.webkit.org/show_bug.cgi?id=319182</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/316990@main">https://commits.webkit.org/316990@main</a>
</pre>
| Assignee | ||
Updated•20 days ago
|
| Assignee | ||
Comment 1•20 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=119777
| Assignee | ||
Comment 2•20 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 2 subtests
Status Summary
Firefox
PASS : 1
TIMEOUT: 2
Chrome
OK : 1
PASS : 1
FAIL : 1
Safari
OK : 1
PASS : 1
FAIL : 1
Links
Details
Firefox-only Failures
New Tests That Don't Pass
- /scroll-to-text-fragment/text-directive-mime-type-parameter.html [wpt.fyi]:
TIMEOUT(Chrome:OK, Safari:OK)- Text directive allowed in text/html served with mixed-case MIME type:
TIMEOUT(Chrome:FAIL, Safari:FAIL)
- Text directive allowed in text/html served with mixed-case MIME type:
Comment 4•16 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/66ff187867dd
https://hg.mozilla.org/mozilla-central/rev/ccf5794465a9
Description
•