Closed Bug 1237713 Opened 9 years ago Closed 9 years ago

fix test browser_tabkeynavigation.js

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
e10s + ---
firefox46 --- affected
firefox48 --- fixed

People

(Reporter: tracy, Assigned: tracy)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 4 obsolete files)

this is a browser chrome test in /browser/base/content/test/general/ Basically just needs the optional param for window in each synthesizeKey event to be removed so the browser can just default to the tab that is in focus. patch is currently finishing up in try.
Attached patch tabkeynavigation.patch (obsolete) — Splinter Review
passes try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=840b324acae4 However, I didn't update this to modern test code. The more I got into that process the more broken the test case became. Jim, if you want me to modernize it, maybe we can walk through it in my next 1-1. Otherwise requesting review.
Attachment #8705780 - Flags: review?(jmathies)
Comment on attachment 8705780 [details] [diff] [review] tabkeynavigation.patch lgtm
Attachment #8705780 - Flags: review?(jmathies) → review+
Let's get this enabled as-is, then I'll work on it modernization.
Turns out not to have been enough to only run e10s browser-chrome on try, since a couple of those todo_is() tests fail on non-e10s OS X, https://treeherder.mozilla.org/logviewer.html#?job_id=6532247&repo=fx-team Backed out in https://hg.mozilla.org/integration/fx-team/rev/1764c03305e6
The fix works fine everywhere except Mac non-e10s. As comment in the test case says, // XXX Currently, Command + "{" and "}" don't work if keydown event is // consumed because following keypress event isn't fired. is still affecting non-e10s in this Mac only section of the test code. Is there a way to skip-if (os == Mac && non-e10s)?
Assignee: nobody → twalker
ah skip-if (os == "mac" && !e10s) (I won't be able to figure out why those key events aren't fired under this configuration. The tab switching shortcuts work as expected manually in non-e10s window.) Anyway we should not hold up enabling this, wherever possible, because of a quirk on Mac non-e10s. I'll adjust the patch for browser.ini and put it through a full browser chrome try run, to be certain.
Attached patch tabkeynavigation.patch (obsolete) — Splinter Review
try run: https://hg.mozilla.org/try/rev/bf34cc7614ec (The failures there are in toolkit. This test is in layout.) I'll circle back here to modernize this once I have a better handle on those techniques.
Attachment #8705780 - Attachment is obsolete: true
Attachment #8706561 - Flags: review?(jmathies)
Attachment #8706561 - Flags: review?(jmathies) → review+
Keywords: checkin-needed
Attached patch bug_1237713.patch (obsolete) — Splinter Review
as promised, a follow up patch to modernize this test case. passed try run with a few unrelated oranges: https://treeherder.mozilla.org/#/jobs?repo=try&author=twalker@mozilla.com&selectedJob=17637334
Attachment #8706561 - Attachment is obsolete: true
Attachment #8727410 - Flags: review?(jmathies)
Comment on attachment 8727410 [details] [diff] [review] bug_1237713.patch Review of attachment 8727410 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/base/content/test/general/browser_tabkeynavigation.js @@ +17,3 @@ > > + gBrowser.selectedTab = tab1; > + browser1.contentWindow.focus(); This looks like it'll generate a CPOW, can you confirm? I wonder what the approved way to do this is now.
Attachment #8727410 - Flags: review?(jmathies) → review+
Attached patch tabkeynavigation.patch (obsolete) — Splinter Review
per mconley; use ".focus" in place of "contentWindow.focus". It works fine locally. I don't expect that change to affect try run results, so not re-running it.
Attachment #8727410 - Attachment is obsolete: true
Attachment #8727974 - Flags: review?(jmathies)
Comment on attachment 8727974 [details] [diff] [review] tabkeynavigation.patch Review of attachment 8727974 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/base/content/test/general/browser_tabkeynavigation.js @@ +17,4 @@ > > + gBrowser.selectedTab = tab1; > + browser1.focus(); > + nit - you added so me whitespace here in your last edit.
Attachment #8727974 - Flags: review?(jmathies) → review+
fixed white space nit.
Attachment #8727974 - Attachment is obsolete: true
Attachment #8727984 - Flags: review?(jmathies)
Attachment #8727984 - Flags: review?(jmathies) → review+
Ugh, this landed with a completely borked commit message. Please double-check that before requesting checkin in the future.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: