Closed
Bug 1237713
Opened 9 years ago
Closed 9 years ago
fix test browser_tabkeynavigation.js
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla48
People
(Reporter: tracy, Assigned: tracy)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 4 obsolete files)
|
13.57 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•9 years ago
|
||
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 2•9 years ago
|
||
Comment on attachment 8705780 [details] [diff] [review]
tabkeynavigation.patch
lgtm
Attachment #8705780 -
Flags: review?(jmathies) → review+
| Assignee | ||
Comment 3•9 years ago
|
||
Let's get this enabled as-is, then I'll work on it modernization.
Keywords: checkin-needed,
leave-open
Keywords: checkin-needed
Comment 5•9 years ago
|
||
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
| Assignee | ||
Comment 6•9 years ago
|
||
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
| Assignee | ||
Comment 7•9 years ago
|
||
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.
| Assignee | ||
Comment 8•9 years ago
|
||
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)
Updated•9 years ago
|
Attachment #8706561 -
Flags: review?(jmathies) → review+
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 10•9 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 11•9 years ago
|
||
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 12•9 years ago
|
||
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+
| Assignee | ||
Comment 13•9 years ago
|
||
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 14•9 years ago
|
||
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+
| Assignee | ||
Comment 15•9 years ago
|
||
fixed white space nit.
Attachment #8727974 -
Attachment is obsolete: true
Attachment #8727984 -
Flags: review?(jmathies)
Updated•9 years ago
|
Attachment #8727984 -
Flags: review?(jmathies) → review+
| Assignee | ||
Updated•9 years ago
|
Keywords: leave-open → checkin-needed
Comment 16•9 years ago
|
||
Ugh, this landed with a completely borked commit message. Please double-check that before requesting checkin in the future.
Comment 17•9 years ago
|
||
Keywords: checkin-needed
Comment 18•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in
before you can comment on or make changes to this bug.
Description
•