Open Bug 1847097 Opened 1 year ago Updated 1 year ago

Async stack traces should be disabled when the inner window is replaced

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

People

(Reporter: jdescottes, Unassigned)

References

(Blocks 1 open bug)

Details

(In reply to Olli Pettay [:smaug][bugs@pettay.fi] from Bug 1788894 comment #16)

bfcache is perhaps a bit complicated right now since Android uses still the old implementation. On desktop innerwindow is not changed because of bfcache, since the whole browsing context is changed.
Hmm, but yeah, stopping automation would need to disable stuff on the page which is still in the bfcache.
It might be easiest to add some native code which deals with this all.

In WebDriver BiDi automation we enable async stack traces on specific window globals, but it's tricky to disable it at the right time. If it could be automatically disabled when the inner window is replaced, it would be simpler to handle. See the rest of the discussion on Bug 1788894

(tentatively moving to Core: DOM (Navigation) but feel free to redirect)

Component: WebDriver BiDi → DOM: Navigation
Product: Remote Protocol → Core
You need to log in before you can comment on or make changes to this bug.