Skip to content

Commit

Permalink
chore: update browser patches to bb81b1c60 (#33573)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Nov 13, 2024
1 parent 382d987 commit d1ae5f6
Show file tree
Hide file tree
Showing 7 changed files with 1,452 additions and 1,411 deletions.
2 changes: 1 addition & 1 deletion browser_patches/firefox/UPSTREAM_CONFIG.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REMOTE_URL="https://github.com/mozilla/gecko-dev"
BASE_BRANCH="release"
BASE_REVISION="47bcb6d7d2013f9a3d864678675100e0b3d73c5e"
BASE_REVISION="bc78b98043438d8ee2727a483b6e10dedfda883f"
7 changes: 7 additions & 0 deletions browser_patches/firefox/juggler/protocol/PageHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,13 @@ class PageHandler {
return await this._contentPage.send('disposeObject', options);
}

async ['Heap.collectGarbage']() {
Services.obs.notifyObservers(null, "child-gc-request");
Cu.forceGC();
Services.obs.notifyObservers(null, "child-cc-request");
Cu.forceCC();
}

async ['Network.getResponseBody']({requestId}) {
return this._pageNetwork.getResponseBody(requestId);
}
Expand Down
13 changes: 12 additions & 1 deletion browser_patches/firefox/juggler/protocol/Protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,17 @@ const Browser = {
},
};

const Heap = {
targets: ['page'],
types: {},
events: {},
methods: {
'collectGarbage': {
params: {},
},
},
};

const Network = {
targets: ['page'],
types: networkTypes,
Expand Down Expand Up @@ -996,7 +1007,7 @@ const Accessibility = {
}

this.protocol = {
domains: {Browser, Page, Runtime, Network, Accessibility},
domains: {Browser, Heap, Page, Runtime, Network, Accessibility},
};
this.checkScheme = checkScheme;
this.EXPORTED_SYMBOLS = ['protocol', 'checkScheme'];
215 changes: 108 additions & 107 deletions browser_patches/firefox/patches/bootstrap.diff

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion browser_patches/webkit/UPSTREAM_CONFIG.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
REMOTE_URL="https://github.com/WebKit/WebKit.git"
BASE_BRANCH="main"
BASE_REVISION="2ea46ab90e6511139bfb94415205038b672381e0"
BASE_REVISION="8ceb1da47e75a488ae4c12017a861636904acd4f"
4 changes: 2 additions & 2 deletions browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ - (id)init

for (NSString *argument in subArray) {
if (![argument hasPrefix:@"--"])
_initialURL = argument;
_initialURL = [argument copy];
if ([argument hasPrefix:@"--user-data-dir="]) {
NSRange range = NSMakeRange(16, [argument length] - 16);
_userDataDir = [[argument substringWithRange:range] copy];
Expand Down Expand Up @@ -230,7 +230,7 @@ - (WKWebViewConfiguration *)defaultConfiguration
configuration = [[WKWebViewConfiguration alloc] init];
configuration.websiteDataStore = [self persistentDataStore];
configuration._controlledByAutomation = true;
configuration.preferences._fullScreenEnabled = YES;
configuration.preferences.elementFullscreenEnabled = YES;
configuration.preferences._developerExtrasEnabled = YES;
configuration.preferences._mediaDevicesEnabled = YES;
configuration.preferences._mockCaptureDevicesEnabled = YES;
Expand Down
Loading

0 comments on commit d1ae5f6

Please sign in to comment.