Closed Bug 1102015 Opened 5 years ago Closed 5 years ago

e10s - browser_bug427559.js

Categories

(Firefox :: General, defect)

x86_64
Windows 8.1
defect
Not set
Points:
2

Tracking

()

RESOLVED FIXED
Firefox 38
Iteration:
38.3 - 23 Feb
Tracking Status
e10s + ---
firefox38 --- fixed

People

(Reporter: Gijs, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This test consistently fails because it checks a wrapped window against an unwrapped window - it tries to do focus checks, but it's not clear that even if we fixed the wrapper situation, the windows are actually the same, and/or if the test works this way in e10s. It's more likely it needs to use a frame script to check that focus for the content process is correct... maybe?
Flags: qe-verify-
Flags: in-testsuite+
Flags: firefox-backlog+
Depends on: 921935
This test will need to wait until the blur/focus events happen in the child tab, then inform the parent that the focus has moved to the body.
This does the job and lets us enable the test.
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Attachment #8565792 - Flags: review?(gijskruitbosch+bugs)
Iteration: --- → 38.3 - 23 Feb
Points: 5 → 2
Comment on attachment 8565792 [details] [diff] [review]
browser_bug427559

Review of attachment 8565792 [details] [diff] [review]:
-----------------------------------------------------------------

You should trypush + retriggers to make sure that this really works on try, too, if you haven't already. :-)

::: browser/base/content/test/general/browser_bug427559.js
@@ +22,1 @@
>      setTimeout(function () {

While we're here, can we make this use executeSoon?

@@ +31,5 @@
> +        removeEventListener("focus", focusedWindow, true);
> +
> +        // Make sure focus is given to the window because the element is now gone
> +        is(browser.contentDocumentAsCPOW.activeElement.localName, "body", "body is focused");
> +        

Nit: whitespace
Attachment #8565792 - Flags: review?(gijskruitbosch+bugs) → review+
https://hg.mozilla.org/mozilla-central/rev/18fbec59acaa
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
You need to log in before you can comment on or make changes to this bug.