Closed Bug 1669920 Opened 4 years ago Closed 4 years ago

(actors) testing/marionette/harness/marionette_harness/tests/unit/test_switch_frame_chrome.py TestSwitchFrameChrome.test_stack_trace - NoSuchWindowException: No such content frame; perhaps the listener was not registered?

Categories

(Remote Protocol :: Marionette, defect, P1)

Firefox 83
defect

Tracking

(firefox-esr78 unaffected, firefox82 unaffected, firefox83 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox82 --- unaffected
firefox83 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Regression)

Details

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

Attachments

(1 file)

With bug 1668846 fixed we call this.listener.setBrowsingContextId() from WebDriver:SwitchToFrame and WebDriver:SwitchToParentFrame:

https://searchfox.org/mozilla-central/rev/f82d5c549f046cb64ce5602bfd894b7ae807c8f8/testing/marionette/driver.js#1755,1807

To avoid failures like the following this only has to be done when staying in Content context.

1602147179320	Marionette	DEBUG	2 -> [0,30,"WebDriver:SwitchToFrame",{"focus":true,"id":0}]
1602147179321	Marionette	TRACE	** switched to context: 37
1602147179321	Marionette	DEBUG	2 <- [1,30,{"error":"no such window","message":"No such content frame; perhaps the listener was not registered?","stacktrace":"Web ... arionette/content/proxy.js:37:29\nGeckoDriver.prototype.switchToFrame@chrome://marionette/content/driver.js:1807:25\n"},null]

Affected tests:

test_switch_frame_chrome.py test_switch_frame_chrome.TestSwitchFrameChrome.test_stack_trace
test_switch_frame_chrome.py test_switch_frame_chrome.TestSwitchFrameChrome.test_switch_simple
test_window_status_content.py test_window_status_content.TestNoSuchWindowContent.test_closed_chrome_window_while_in_frame
test_window_status_chrome.py test_window_status_chrome.TestNoSuchWindowChrome.test_closed_chrome_window_while_in_frame
test_window_status_content.py test_window_status_content.TestNoSuchWindowContent.test_closed_chrome_window_while_in_frame

Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Priority: P3 → P1
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3cca52c49b8d [marionette] Don't set the framescript's browsing context id when in chrome scope. r=marionette-reviewers,maja_zf
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
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: