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)

defect

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
Priority: -- → P3
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)
Blocks: 1377521
Yes, I can confirm that it's always '-1' if we start the test after focus with this patch on Mac.
Link to the bug that introduced the failure case.
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
Both tries look pretty good.
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 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+
(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)
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: nobody → hikezoe
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: