Closed
Bug 1016033
Opened 10 years ago
Closed 10 years ago
Race in newSession > waitForWindow
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla32
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
(Keywords: pi-marionette-server)
Attachments
(1 file)
1.87 KB,
patch
|
jgriffin
:
review+
|
Details | Diff | Splinter Review |
The following code races when being used against Mulet. I can't explain why it doesn't race on Firefox, but the code looks very likely to race: http://mxr.mozilla.org/mozilla-central/source/testing/marionette/marionette-server.js#506 let checkTimer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer); let win = this.getCurrentWindow(); if (!win || (appName == "Firefox" && !win.gBrowser) || (appName == "Fennec" && !win.BrowserApp)) { checkTimer.initWithCallback(waitForWindow.bind(this), 100, Ci.nsITimer.TYPE_ONE_SHOT); } else { this.startBrowser(win, true); } The issue is that we are just waiting to gBrowser to "appear" on window object, but it doesn't mean that gBrowser is ready to be used. And we are using various method of gBrowser like addTab in startBrowser->startSession. On Mulet, these calls ends up throwing or misbehave. Ideally we would wait for load event before using gBrowser.
Assignee | ||
Comment 1•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=036f06b17e4d
Assignee | ||
Updated•10 years ago
|
Attachment #8428824 -
Flags: review?(jgriffin)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → poirot.alex
Comment 2•10 years ago
|
||
Comment on attachment 8428824 [details] [diff] [review] patch Review of attachment 8428824 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the patch!
Attachment #8428824 -
Flags: review?(jgriffin) → review+
Assignee | ||
Comment 3•10 years ago
|
||
I think the few failing test on try are all intermittent: https://tbpl.mozilla.org/?tree=Try&rev=036f06b17e4d And the G-oop looks like a failure due to the changeset I'm based on. I got it failing on few try run with different patches.
Keywords: checkin-needed
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/1de73fe72d40
Keywords: checkin-needed
Updated•10 years ago
|
Keywords: ateam-marionette-server
Comment 5•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1de73fe72d40
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•