[wpt-sync] Sync PR 64591 - 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 64591 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64591
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•17 days ago
|
| Assignee | ||
Comment 1•17 days ago
|
||
| Assignee | ||
Comment 2•17 days ago
|
||
The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues
Comment 4•12 days ago
|
||
| bugherder | ||
Description
•