mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00: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() {
|
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;
|
return;
|
||||||
removeEventListeners(this._listeners);
|
removeEventListeners(this._listeners);
|
||||||
this._listeners = [
|
this._listeners = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user