@@ -458,9 +458,9 @@ ${scriptContent} \
458
458
* `_waitForSettledDom` waits until the DOM is settled, and therefore is
459
459
* ready for actions to be taken.
460
460
*
461
- * **Definition of “ settled” **
461
+ * **Definition of " settled" **
462
462
* • No in-flight network requests (except WebSocket / Server-Sent-Events).
463
- * • That idle state lasts for at least **500 ms** (the “ quiet-window” ).
463
+ * • That idle state lasts for at least **500 ms** (the " quiet-window" ).
464
464
*
465
465
* **How it works**
466
466
* 1. Subscribes to CDP Network and Page events for the main target and all
@@ -499,6 +499,10 @@ ${scriptContent} \
499
499
autoAttach : true ,
500
500
waitForDebuggerOnStart : false ,
501
501
flatten : true ,
502
+ filter : [
503
+ { type : "worker" , exclude : true } ,
504
+ { type : "shared_worker" , exclude : true } ,
505
+ ] ,
502
506
} ) ;
503
507
504
508
return new Promise < void > ( ( resolve ) => {
@@ -978,7 +982,7 @@ ${scriptContent} \
978
982
if ( msg . includes ( "does not have a separate CDP session" ) ) {
979
983
// Re-use / create the top-level session instead
980
984
const rootSession = await this . getCDPClient ( this . page ) ;
981
- // cache the alias so we don’ t try again for this frame
985
+ // cache the alias so we don' t try again for this frame
982
986
this . cdpClients . set ( target , rootSession ) ;
983
987
return rootSession ;
984
988
}
0 commit comments