Closed Bug 1776331 Opened 2 years ago Closed 2 years ago

editing/other/selectall-without-focus.html fails in all browsers

Categories

(Core :: DOM: Selection, defect, P2)

defect

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

()

Details

Attachments

(1 file)

It's a test for bug 1771701, and when I wrote it, Chrome passes when I run only it. However, if I run it with the other tests in the same folder, Chrome fails.

I'm not sure the reason, but if it runs from an event listener for a user input such as click, Chrome passes it as expected. The unstable API behavior is also a concern of potential web-compat issue, but it's not directly related to the purpose of the test so that we should rewrite it.

Hmm, doing it makes Gecko pass the tests...

Oddly, the test is passed in Chrome if only it runs, i.e., if I run all tests
in the same folder, the test fails even in Chrome (currently, all browsers
fail the test, Gecko's bug is bug 1771701, but the failure reason is different
from the others).

The original purpose of the test is, check where is selected by a
document.execCommand("selectAll") call when no editable element has focus.
Therefore, we want Chrome to pass it even with any hacks. However, adding
some hacks makes it passes in Gecko too.

Therefore, this patch just adds a new check which shows the failure reason
correctly in Chrome.

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/34671 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Upstream PR merged by moz-wptsync-bot

Filed an issue to the Chromium project about the odd behavior.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: