Closed Bug 2092805 Opened 20 days ago Closed 16 days ago

[wpt-sync] Sync PR 64619 - 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 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 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

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

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

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