chore: update browser patches to 2e93a0b95 (#34426)
This commit is contained in:
parent
256dc47833
commit
a121f85ce9
|
@ -1,3 +1,3 @@
|
||||||
REMOTE_URL="https://github.com/mozilla/gecko-dev"
|
REMOTE_URL="https://github.com/mozilla/gecko-dev"
|
||||||
BASE_BRANCH="release"
|
BASE_BRANCH="release"
|
||||||
BASE_REVISION="bc78b98043438d8ee2727a483b6e10dedfda883f"
|
BASE_REVISION="5cfa81898f6eef8fb1abe463e5253cea5bc17f3f"
|
||||||
|
|
|
@ -393,7 +393,7 @@ class PageTarget {
|
||||||
this._videoRecordingInfo = undefined;
|
this._videoRecordingInfo = undefined;
|
||||||
this._screencastRecordingInfo = undefined;
|
this._screencastRecordingInfo = undefined;
|
||||||
this._dialogs = new Map();
|
this._dialogs = new Map();
|
||||||
this.forcedColors = 'no-override';
|
this.forcedColors = 'none';
|
||||||
this.disableCache = false;
|
this.disableCache = false;
|
||||||
this.mediumOverride = '';
|
this.mediumOverride = '';
|
||||||
this.crossProcessCookie = {
|
this.crossProcessCookie = {
|
||||||
|
@ -635,7 +635,8 @@ class PageTarget {
|
||||||
}
|
}
|
||||||
|
|
||||||
updateForcedColorsOverride(browsingContext = undefined) {
|
updateForcedColorsOverride(browsingContext = undefined) {
|
||||||
(browsingContext || this._linkedBrowser.browsingContext).forcedColorsOverride = (this.forcedColors !== 'no-override' ? this.forcedColors : this._browserContext.forcedColors) || 'no-override';
|
const isActive = this.forcedColors === 'active' || this._browserContext.forcedColors === 'active';
|
||||||
|
(browsingContext || this._linkedBrowser.browsingContext).forcedColorsOverride = isActive ? 'active' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
async setInterceptFileChooserDialog(enabled) {
|
async setInterceptFileChooserDialog(enabled) {
|
||||||
|
@ -858,8 +859,8 @@ function fromProtocolReducedMotion(reducedMotion) {
|
||||||
function fromProtocolForcedColors(forcedColors) {
|
function fromProtocolForcedColors(forcedColors) {
|
||||||
if (forcedColors === 'active' || forcedColors === 'none')
|
if (forcedColors === 'active' || forcedColors === 'none')
|
||||||
return forcedColors;
|
return forcedColors;
|
||||||
if (forcedColors === null)
|
if (!forcedColors)
|
||||||
return undefined;
|
return 'none';
|
||||||
throw new Error('Unknown forced colors: ' + forcedColors);
|
throw new Error('Unknown forced colors: ' + forcedColors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -893,7 +894,7 @@ class BrowserContext {
|
||||||
this.forceOffline = false;
|
this.forceOffline = false;
|
||||||
this.disableCache = false;
|
this.disableCache = false;
|
||||||
this.colorScheme = 'none';
|
this.colorScheme = 'none';
|
||||||
this.forcedColors = 'no-override';
|
this.forcedColors = 'none';
|
||||||
this.reducedMotion = 'none';
|
this.reducedMotion = 'none';
|
||||||
this.videoRecordingOptions = undefined;
|
this.videoRecordingOptions = undefined;
|
||||||
this.crossProcessCookie = {
|
this.crossProcessCookie = {
|
||||||
|
|
|
@ -105,7 +105,10 @@ class Juggler {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Force create hidden window here, otherwise its creation later closes the web socket!
|
// Force create hidden window here, otherwise its creation later closes the web socket!
|
||||||
Services.appShell.hiddenDOMWindow;
|
// Since https://phabricator.services.mozilla.com/D219834, hiddenDOMWindow is only available on MacOS.
|
||||||
|
if (Services.appShell.hasHiddenWindow) {
|
||||||
|
Services.appShell.hiddenDOMWindow;
|
||||||
|
}
|
||||||
|
|
||||||
let pipeStopped = false;
|
let pipeStopped = false;
|
||||||
let browserHandler;
|
let browserHandler;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +1,3 @@
|
||||||
REMOTE_URL="https://github.com/WebKit/WebKit.git"
|
REMOTE_URL="https://github.com/WebKit/WebKit.git"
|
||||||
BASE_BRANCH="main"
|
BASE_BRANCH="main"
|
||||||
BASE_REVISION="8ceb1da47e75a488ae4c12017a861636904acd4f"
|
BASE_REVISION="76c95d6131edd36775a5eac01e297926fc974be8"
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#import <WebKit/WKUserContentControllerPrivate.h>
|
#import <WebKit/WKUserContentControllerPrivate.h>
|
||||||
#import <WebKit/WKWebViewConfigurationPrivate.h>
|
#import <WebKit/WKWebViewConfigurationPrivate.h>
|
||||||
#import <WebKit/WKWebViewPrivate.h>
|
#import <WebKit/WKWebViewPrivate.h>
|
||||||
|
#import <WebKit/WKWebpagePreferencesPrivate.h>
|
||||||
#import <WebKit/WKWebsiteDataStorePrivate.h>
|
#import <WebKit/WKWebsiteDataStorePrivate.h>
|
||||||
#import <WebKit/WebNSURLExtras.h>
|
#import <WebKit/WebNSURLExtras.h>
|
||||||
#import <WebKit/WebKit.h>
|
#import <WebKit/WebKit.h>
|
||||||
|
@ -240,6 +241,8 @@ const NSActivityOptions ActivityOptions =
|
||||||
configuration.preferences._hiddenPageDOMTimerThrottlingAutoIncreases = NO;
|
configuration.preferences._hiddenPageDOMTimerThrottlingAutoIncreases = NO;
|
||||||
configuration.preferences._pageVisibilityBasedProcessSuppressionEnabled = NO;
|
configuration.preferences._pageVisibilityBasedProcessSuppressionEnabled = NO;
|
||||||
configuration.preferences._domTimersThrottlingEnabled = NO;
|
configuration.preferences._domTimersThrottlingEnabled = NO;
|
||||||
|
// Do not auto play audio and video with sound.
|
||||||
|
configuration.defaultWebpagePreferences._autoplayPolicy = _WKWebsiteAutoplayPolicyAllowWithoutSound;
|
||||||
_WKProcessPoolConfiguration *processConfiguration = [[[_WKProcessPoolConfiguration alloc] init] autorelease];
|
_WKProcessPoolConfiguration *processConfiguration = [[[_WKProcessPoolConfiguration alloc] init] autorelease];
|
||||||
processConfiguration.forceOverlayScrollbars = YES;
|
processConfiguration.forceOverlayScrollbars = YES;
|
||||||
configuration.processPool = [[[WKProcessPool alloc] _initWithConfiguration:processConfiguration] autorelease];
|
configuration.processPool = [[[WKProcessPool alloc] _initWithConfiguration:processConfiguration] autorelease];
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue