chore: remove redundant check for highlight liveness (#28108)
Closes https://github.com/microsoft/playwright/issues/28002
This commit is contained in:
parent
db38f0d2df
commit
cd70d51aa8
|
|
@ -96,10 +96,6 @@ export class Highlight {
|
|||
this._glassPaneElement.remove();
|
||||
}
|
||||
|
||||
isInstalled(): boolean {
|
||||
return this._glassPaneElement.parentElement === this._injectedScript.document.documentElement && !this._glassPaneElement.nextElementSibling;
|
||||
}
|
||||
|
||||
showActionPoint(x: number, y: number) {
|
||||
this._actionPointElement.style.top = y + 'px';
|
||||
this._actionPointElement.style.left = x + 'px';
|
||||
|
|
|
|||
|
|
@ -842,9 +842,6 @@ export class Recorder {
|
|||
}
|
||||
|
||||
installListeners() {
|
||||
// Ensure we are attached to the current document, and we are on top (last element);
|
||||
if (this.highlight.isInstalled())
|
||||
return;
|
||||
removeEventListeners(this._listeners);
|
||||
this._listeners = [
|
||||
addEventListener(this.document, 'click', event => this._onClick(event as MouseEvent), true),
|
||||
|
|
|
|||
Loading…
Reference in a new issue