Open Bug 1399032 Opened 7 years ago Updated 1 year ago

WebDriver:SwitchToParentFrame causes hang due to "TypeError: can't access dead object"

Categories

(Remote Protocol :: Marionette, enhancement, P3)

57 Branch
enhancement

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

Details

Originally reported here: https://github.com/mozilla/geckodriver/issues/937

With the attached Marionette testcase we can cause switchToParentFrame to fail:

1505201688795	Marionette	TRACE	20 -> [0,34,"switchToParentFrame",{}]
JavaScript error: chrome://marionette/content/listener.js, line 1576: TypeError: can't access dead object

The failure happens with a very low frequency, so using --run-until-failure with --repeat was useful here.

The failing line is:

>    function switchToParentFrame(msg) {
> ->   curContainer.frame = curContainer.frame.parent;
>      let parentElement = seenEls.add(curContainer.frame);

While running the test I have also seen crashes of Firefox in some cases. Maybe that is somehow related.
Priority: -- → P3
Blocks: 1417556
Summary: switchToParentFrame() causes hang due to "TypeError: can't access dead object" → WebDriver:SwitchToParentFrame causes hang due to "TypeError: can't access dead object"
Severity: normal → S3
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.