Closed Bug 1120809 Opened 9 years ago Closed 9 years ago

Marionette sometimes fails to register a content script with e10s enabled

Categories

(Remote Protocol :: Marionette, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(e10s+)

RESOLVED FIXED
mozilla38
Tracking Status
e10s + ---

People

(Reporter: chmanchester, Assigned: chmanchester)

References

(Blocks 1 open bug)

Details

(Keywords: pi-marionette-server)

Attachments

(2 files, 1 obsolete file)

A test I added recently (TestWindowHandles.test_tab_and_window_handles) hangs pseudo-deterministically with e10s turned on. getOuterWindowWithId in Marionette:register is throwing. I don't think it's supposed to, but we don't do much with the listenerWindow reference in the current code once we get it (and don't care if it's null), so maybe we're ok to catch and carry on.
I'm having a lot of trouble reproducing this now, but I was able to determine earlier that the error is NS_ERROR_XPC_BAD_CONVERT_NATIVE, and getOuterWindowWithId is called with the id of a freshly created window in the child process.
/r/2557 - Bug 1120809 - Don't fail when trying to retrieve a window from the child process in "Marionette:register".;r=jgriffin

Pull down this commit:

hg pull review -r ee82b1602297101c057c0aa409bff145bdeba2ac
This is what I mean by "pseudo-deterministic": https://treeherder.mozilla.org/#/jobs?repo=try&revision=33b7abc6d85f

I'm waiting on try results with the fix in comment 2 here: https://treeherder.mozilla.org/#/jobs?repo=try&revision=187007fd94b9

Ultimately we might have to abandon the idea of having a reference to the listenerWindow. Looking through the uses on elementManager.seenItems, I don't think we're getting much out of it anyways.
I guess those might not be scheduled at this point. Re-push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=5be6a543bed4
Attachment #8549799 - Flags: review?(jgriffin)
/r/2557 - Bug 1120809 - Don't fail when trying to retrieve a window from the child process in "Marionette:register".;r=jgriffin
/r/2575 - Bug 1120809 - Unskip test_tab_and_window_handles with e10s enabled.;r=jgriffin

Pull down these commits:

hg pull review -r fce8fccc2bdb252a6d785849e757fcede3cb2344
Attachment #8549799 - Flags: review?(jgriffin) → review+
https://hg.mozilla.org/mozilla-central/rev/eb735f61a1af
https://hg.mozilla.org/mozilla-central/rev/b0734bca62e4
Assignee: nobody → cmanchester
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Attachment #8549799 - Attachment is obsolete: true
Attachment #8619111 - Flags: review+
Attachment #8619112 - Flags: review+
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: