Experimental observer leak fix

Juggler will no longer notify content-document-global-created.
This patch also reverses the _Runtime domain rename fix due to Playwright breakage.

This was causing leaks with some WAFs.
This commit is contained in:
daijro 2024-08-13 06:24:53 -05:00
parent b5d16a902f
commit 2f57040710
3 changed files with 2 additions and 3 deletions

View file

@ -264,7 +264,7 @@ Miscellaneous (WebGl spoofing, battery status, etc)
- Custom implementation of Playwright for the latest Firefox
- Various config patches to evade bot detection
- Removed leaking Playwright patches:
- Fixes `Runtime` domain detection
- Fixes `content-document-global-created` observer leak
- Fixes `navigator.webdriver` detection
- Removed potentially leaking anti-zoom/meta viewport handling patches
- Re-enable fission content isolation

View file

@ -68,7 +68,6 @@ class FrameTree {
frame._pendingNavigationId = helper.toProtocolNavigationId(loadIdentifier);
this.emit(FrameTree.Events.NavigationStarted, frame);
}, 'juggler-navigation-started-renderer'),
helper.addObserver(this._onDOMWindowCreated.bind(this), 'content-document-global-created'),
helper.addObserver(this._onDOMWindowCreated.bind(this), 'juggler-dom-window-reused'),
helper.addObserver((browsingContext, topic, why) => {
this._onBrowsingContextAttached(browsingContext);

View file

@ -577,7 +577,7 @@ const Network = {
},
};
const _Runtime = {
const Runtime = {
targets: ['page'],
types: runtimeTypes,
events: {