Closed Bug 1682242 Opened 3 years ago Closed 3 years ago

UnknownException: TypeError: can't access property "tabs", tabBrowser is null

Categories

(Remote Protocol :: Marionette, defect, P1)

Firefox 85
defect

Tracking

(Fission Milestone:M7, firefox-esr78 unaffected, firefox84 unaffected, firefox85 fixed, firefox86 fixed)

RESOLVED FIXED
86 Branch
Fission Milestone M7
Tracking Status
firefox-esr78 --- unaffected
firefox84 --- unaffected
firefox85 --- fixed
firefox86 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [marionette-fission-mvp])

Attachments

(1 file)

With the patch on bug 1676671 landed, the initial browser collection is broken if there is a non-browser window open. The failure looks like:

1607940033466	Marionette	DEBUG	3 <- [1,1,{"error":"unknown error","message":"TypeError: can't access property \"tabs\", tabBrowser is null","stacktrace":"GeckoDr ... t@chrome://marionette/content/server.js:241:9\n_onJSONObjectReady/<@chrome://marionette/content/transport.js:504:20\n"},null]
Marionette threw an error: TypeError: can't access property "tabs", tabBrowser is null
GeckoDriver.prototype.newSession@chrome://marionette/content/driver.js:876:25
despatch@chrome://marionette/content/server.js:297:40
execute@chrome://marionette/content/server.js:267:16
onPacket/<@chrome://marionette/content/server.js:240:20
onPacket@chrome://marionette/content/server.js:241:9
_onJSONObjectReady/<@chrome://marionette/content/transport.js:504:20

I set this bug as high priority because this failure blocks Marionette unit tests for Thunderbird.

Blocks: 1669174
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bf468d20cd8e
[marionette] Correctly register chrome windows without a tab browser in "WebDriver:NewSession". r=marionette-reviewers,jgraham
Fission Milestone: --- → MVP
Fission Milestone: MVP → M7
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Whiteboard: [marionette-fission-reserve] → [marionette-fission-mvp]

Comment on attachment 9193030 [details]
Bug 1682242 - [marionette] Correctly register chrome windows without a tab browser in "WebDriver:NewSession".

Beta/Release Uplift Approval Request

  • User impact if declined: Using WebDriver (Marionette) the new session command will fail if windows are open that are no browser windows. This actually affects Thunderbird as well.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): A null check has been added to prevent the Javascript error.
  • String changes made/needed: none
Attachment #9193030 - Flags: approval-mozilla-beta?
Severity: S3 → S2

Comment on attachment 9193030 [details]
Bug 1682242 - [marionette] Correctly register chrome windows without a tab browser in "WebDriver:NewSession".

approved for 85.0b2

Attachment #9193030 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
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: