Closed
Bug 1415787
Opened 7 years ago
Closed 7 years ago
Fix failure in dom/svg/test/test_tabindex.html on OSX with comformant Promise handling
Categories
(Core :: SVG, defect, P3)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: bevis, Assigned: hiro)
References
Details
Attachments
(3 files)
This is a follow-up of the try result in bug 1193394 comment 58:
(M3 in osx build: https://treeherder.mozilla.org/logviewer.html#?job_id=143221153&repo=try&lineNumber=8790)
TEST-UNEXPECTED-FAIL | dom/svg/test/test_tabindex.html | The active element tabindex is 3 - got -1, expected 3
Updated•7 years ago
|
Priority: -- → P3
Reporter | ||
Comment 1•7 years ago
|
||
-1 on Mac seems to be expected result according to the comment in:
https://searchfox.org/mozilla-central/rev/f0ab0b072ae090f11d6b02b7cf1e0829b4f08882/dom/svg/test/test_tabindex.html#86-88
Assignee | ||
Comment 2•7 years ago
|
||
The comment is;
// This test has to be run with other tests, otherwise,
// document.activeElement.tabIndex will be -1 on Mac.
is(document.activeElement.tabIndex, 3, "The active element tabindex is 3");
Daosheng, what the comment supposed to mean?
It seems to me that the test is originally flaky (there is an intermittent bug, buAndg 1377521). I think we should wait for focus before starting the test, and I confirmed locally that the test fails if the test starts after waiting for the focus. (I did run the test linux with pretending Mac)
Flags: needinfo?(dmu)
Reporter | ||
Comment 3•7 years ago
|
||
Yes, I can confirm that it's always '-1' if we start the test after focus with this patch on Mac.
Assignee | ||
Comment 4•7 years ago
|
||
Link to the bug that introduced the failure case.
Assignee | ||
Comment 5•7 years ago
|
||
I think there needs more focusable elements for Mac. I think if there is no more focusable elements when tab key pressed, focus goes away from the document, right?
Here is a try with more focusable elements.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d2785ab9952f87761cd9fa724c6c418d6126f926
Assignee | ||
Comment 6•7 years ago
|
||
And another try with the conformant Promise handling;
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4617f05f8314a25b69d2f6b51d8e3b7e6d76f94f
Assignee | ||
Comment 7•7 years ago
|
||
Both tries look pretty good.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 10•7 years ago
|
||
mozreview-review |
Comment on attachment 8938217 [details]
Bug 1415787 - Add two extra elements in the SVG element to avoid losing focus.
https://reviewboard.mozilla.org/r/208974/#review214746
LGTM. Thanks!
Attachment #8938217 -
Flags: review?(dmu) → review+
Comment 11•7 years ago
|
||
mozreview-review |
Comment on attachment 8938218 [details]
Bug 1415787 - Wait for focus before proceeding test.
https://reviewboard.mozilla.org/r/208976/#review214748
thanks!
Attachment #8938218 -
Flags: review?(dmu) → review+
Comment 12•7 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #2)
> The comment is;
>
> // This test has to be run with other tests, otherwise,
> // document.activeElement.tabIndex will be -1 on Mac.
> is(document.activeElement.tabIndex, 3, "The active element tabindex is
> 3");
>
> Daosheng, what the comment supposed to mean?
> It seems to me that the test is originally flaky (there is an intermittent
> bug, buAndg 1377521). I think we should wait for focus before starting the
> test, and I confirmed locally that the test fails if the test starts after
> waiting for the focus. (I did run the test linux with pretending Mac)
You got the main point. Thanks for help!
Flags: needinfo?(dmu)
Comment 13•7 years ago
|
||
Pushed by hikezoe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1ca3a3798417
Add two extra elements in the SVG element to avoid losing focus. r=daoshengmu
https://hg.mozilla.org/integration/autoland/rev/27b617e2cad7
Wait for focus before proceeding test. r=daoshengmu
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → hikezoe
Status: NEW → ASSIGNED
Comment 14•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1ca3a3798417
https://hg.mozilla.org/mozilla-central/rev/27b617e2cad7
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•