mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
fix(recorder): check that glass pane is in the current document (#8891)
This commit is contained in:
parent
b79be5d98d
commit
478a7bcc90
@ -130,7 +130,8 @@ export class Recorder {
|
||||
}
|
||||
|
||||
private _refreshListenersIfNeeded() {
|
||||
if (this._outerGlassPaneElement.parentElement)
|
||||
// Ensure we are attached to the current document, and we are on top (last element);
|
||||
if (this._outerGlassPaneElement.parentElement === document.documentElement && !this._outerGlassPaneElement.nextElementSibling)
|
||||
return;
|
||||
removeEventListeners(this._listeners);
|
||||
this._listeners = [
|
||||
|
Loading…
Reference in New Issue
Block a user