Closed Bug 2092467 Opened 17 days ago Closed 12 days ago

[wpt-sync] Sync PR 64591 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=319182

Categories

(Core :: DOM: Navigation, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
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 coverage

Follow-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>

Component: web-platform-tests → DOM: Navigation
Product: Testing → Core

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.