editing/other/selectall-without-focus.html fails in all browsers
Categories
(Core :: DOM: Selection, defect, P2)
Tracking
()
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.
Assignee | ||
Comment 1•2 years ago
|
||
Hmm, doing it makes Gecko pass the tests...
Assignee | ||
Comment 2•2 years ago
|
||
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
Upstream PR merged by moz-wptsync-bot
Description
•