Closed Bug 1671770 Opened 4 years ago Closed 4 years ago

(actor) Perma Fis /webdriver/tests/switch_to_frame/switch.py | test_no_browsing_context[None] - AssertionError: unknown error (500): TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null

Categories

(Testing :: Marionette Client and Harness, defect, P1)

defect

Tracking

(firefox84 fixed)

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: whimboo)

References

Details

(Keywords: assertion, intermittent-failure, Whiteboard: [marionette-fission-mvp], [wptsync upstream])

Attachments

(2 files)

The failure here is when switching to the top-level frame that we have a wrong browsing context reference:

[task 2020-10-17T08:35:36.024Z] 08:35:36     INFO - PID 31210 | 1602923736019	Marionette	DEBUG	0 <- [1,312,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"ee3d7f29-a766-4495-9ab5-fab9302a94e4"}}]
[task 2020-10-17T08:35:36.026Z] 08:35:36     INFO - PID 31210 | 1602923736020	webdriver::server	DEBUG	<- 200 OK {"value":{"element-6066-11e4-a52e-4f735466cecf":"ee3d7f29-a766-4495-9ab5-fab9302a94e4"}}
[task 2020-10-17T08:35:36.028Z] 08:35:36     INFO - PID 31210 | 1602923736022	webdriver::server	DEBUG	-> POST /session/bb15fe59-f35b-4ec4-8407-1130af4dd1a2/frame {"id": null}
[task 2020-10-17T08:35:36.029Z] 08:35:36     INFO - PID 31210 | 1602923736024	Marionette	DEBUG	0 -> [0,313,"WebDriver:SwitchToFrame",{"id":null}]
[task 2020-10-17T08:35:36.037Z] 08:35:36     INFO - PID 31210 | 1602923736031	Marionette	DEBUG	0 <- [1,313,null,{"value":null}]
[task 2020-10-17T08:35:36.037Z] 08:35:36     INFO - PID 31210 | 1602923736032	webdriver::server	DEBUG	<- 200 OK {"value":null}
[task 2020-10-17T08:35:36.037Z] 08:35:36     INFO - PID 31210 | 1602923736033	webdriver::server	DEBUG	-> GET /session/bb15fe59-f35b-4ec4-8407-1130af4dd1a2/element/ee3d7f29-a766-4495-9ab5-fab9302a94e4/text
[task 2020-10-17T08:35:36.038Z] 08:35:36     INFO - PID 31210 | 1602923736034	Marionette	DEBUG	0 -> [0,314,"WebDriver:GetElementText",{"id":"ee3d7f29-a766-4495-9ab5-fab9302a94e4"}]
[task 2020-10-17T08:35:36.106Z] 08:35:36     INFO - PID 31210 | 1602923736099	Marionette	DEBUG	0 <- [1,314,null,{"value":"bar"}]

Problematic here is the following line:
https://searchfox.org/mozilla-central/rev/40b561b9accbff54387edcba2b8b4a3c3828110e/testing/marionette/driver.js#1800

Instead of using the actor from the top-level browsing context the one from the current browsing context is used.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Priority: P5 → P1
Summary: Intermittent /webdriver/tests/switch_to_frame/switch.py | test_no_browsing_context[None] - AssertionError: unknown error (500): TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null → (actor) Perma Fis /webdriver/tests/switch_to_frame/switch.py | test_no_browsing_context[None] - AssertionError: unknown error (500): TypeError: can't access property "getActor", browsingContext.currentWindowGlobal is null
Whiteboard: [marionette-fission-mvp]
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4a2169905a5e [marionette] Fix browsing context checks for "WebDriver:SwitchToFrame". r=marionette-reviewers,jdescottes https://hg.mozilla.org/integration/autoland/rev/614856104da4 [wdspec] Improve no browsing context checks for "Switch To Frame". r=webdriver-reviewers,maja_zf
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/26227 for changes under testing/web-platform/tests
Whiteboard: [marionette-fission-mvp] → [marionette-fission-mvp], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
Upstream PR merged by moz-wptsync-bot
Product: Testing → Remote Protocol
Moving bug to Testing::Marionette Client and Harness component per bug 1815831.
Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: