Skip to content

Commit

Permalink
Merge inbound to mozilla-central. a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Oana Pop Rus committed Feb 21, 2019
2 parents b9a80cb + 45bbf62 commit b36e97f
Show file tree
Hide file tree
Showing 137 changed files with 1,965 additions and 1,524 deletions.
22 changes: 22 additions & 0 deletions browser/actors/RFPHelperChild.jsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

var EXPORTED_SYMBOLS = ["RFPHelperChild"];

const {ActorChild} = ChromeUtils.import("resource://gre/modules/ActorChild.jsm");
const {XPCOMUtils} = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");

const kPrefLetterboxing = "privacy.resistFingerprinting.letterboxing";

XPCOMUtils.defineLazyPreferenceGetter(this, "isLetterboxingEnabled",
kPrefLetterboxing, false);

class RFPHelperChild extends ActorChild {
handleEvent() {
if (isLetterboxingEnabled) {
this.mm.sendAsyncMessage("Letterboxing:ContentSizeUpdated");
}
}
}
1 change: 1 addition & 0 deletions browser/actors/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ FINAL_TARGET_FILES.actors += [
'PageInfoChild.jsm',
'PageStyleChild.jsm',
'PluginChild.jsm',
'RFPHelperChild.jsm',
'SearchTelemetryChild.jsm',
'URIFixupChild.jsm',
'WebRTCChild.jsm',
Expand Down
4 changes: 1 addition & 3 deletions browser/base/content/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ XPCOMUtils.defineLazyModuleGetters(this, {
E10SUtils: "resource://gre/modules/E10SUtils.jsm",
ExtensionsUI: "resource:///modules/ExtensionsUI.jsm",
FormValidationHandler: "resource:///modules/FormValidationHandler.jsm",
LanguagePrompt: "resource://gre/modules/LanguagePrompt.jsm",
HomePage: "resource:///modules/HomePage.jsm",
LightweightThemeConsumer: "resource://gre/modules/LightweightThemeConsumer.jsm",
LightweightThemeManager: "resource://gre/modules/LightweightThemeManager.jsm",
Expand All @@ -50,6 +49,7 @@ XPCOMUtils.defineLazyModuleGetters(this, {
ProcessHangMonitor: "resource:///modules/ProcessHangMonitor.jsm",
PromiseUtils: "resource://gre/modules/PromiseUtils.jsm",
ReaderParent: "resource:///modules/ReaderParent.jsm",
RFPHelper: "resource://gre/modules/RFPHelper.jsm",
SafeBrowsing: "resource://gre/modules/SafeBrowsing.jsm",
Sanitizer: "resource:///modules/Sanitizer.jsm",
SessionStartup: "resource:///modules/sessionstore/SessionStartup.jsm",
Expand Down Expand Up @@ -1948,8 +1948,6 @@ var gBrowserInit = {
ToolbarKeyboardNavigator.uninit();
}

LanguagePrompt.uninit();

BrowserSearch.uninit();

// Now either cancel delayedStartup, or clean up the services initialized from
Expand Down
15 changes: 13 additions & 2 deletions browser/components/BrowserGlue.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,16 @@ let ACTORS = {
},
},

RFPHelper: {
child: {
module: "resource:///actors/RFPHelperChild.jsm",
group: "browsers",
events: {
"resize": {},
},
},
},

SearchTelemetry: {
child: {
module: "resource:///actors/SearchTelemetryChild.jsm",
Expand Down Expand Up @@ -397,7 +407,6 @@ XPCOMUtils.defineLazyModuleGetters(this, {
HybridContentTelemetry: "resource://gre/modules/HybridContentTelemetry.jsm",
Integration: "resource://gre/modules/Integration.jsm",
L10nRegistry: "resource://gre/modules/L10nRegistry.jsm",
LanguagePrompt: "resource://gre/modules/LanguagePrompt.jsm",
LightweightThemeManager: "resource://gre/modules/LightweightThemeManager.jsm",
LiveBookmarkMigrator: "resource:///modules/LiveBookmarkMigrator.jsm",
NewTabUtils: "resource://gre/modules/NewTabUtils.jsm",
Expand All @@ -415,6 +424,7 @@ XPCOMUtils.defineLazyModuleGetters(this, {
PrivateBrowsingUtils: "resource://gre/modules/PrivateBrowsingUtils.jsm",
ProcessHangMonitor: "resource:///modules/ProcessHangMonitor.jsm",
RemoteSettings: "resource://services-settings/remote-settings.js",
RFPHelper: "resource://gre/modules/RFPHelper.jsm",
SafeBrowsing: "resource://gre/modules/SafeBrowsing.jsm",
Sanitizer: "resource:///modules/Sanitizer.jsm",
SaveToPocket: "chrome://pocket/content/SaveToPocket.jsm",
Expand Down Expand Up @@ -1461,6 +1471,7 @@ BrowserGlue.prototype = {
DateTimePickerParent.uninit();

Normandy.uninit();
RFPHelper.uninit();
},

// Set up a listener to enable/disable the screenshots extension
Expand Down Expand Up @@ -1674,7 +1685,7 @@ BrowserGlue.prototype = {
}

Services.tm.idleDispatchToMainThread(() => {
LanguagePrompt.init();
RFPHelper.init();
});

Services.tm.idleDispatchToMainThread(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ support-files =
head.js

[browser_block_mozAddonManager.js]
[browser_dynamical_window_rounding.js]
[browser_navigator.js]
[browser_netInfo.js]
[browser_performanceAPI.js]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ add_task(async function() {

isnot(tab3Zoom, tab1Zoom, "privacy.resistFingerprinting is true, site-specific zoom level should be disabled");

await FullZoom.reset();

BrowserTestUtils.removeTab(tab1);
BrowserTestUtils.removeTab(tab2);
BrowserTestUtils.removeTab(tab3);
Expand Down
Loading

0 comments on commit b36e97f

Please sign in to comment.