Skip to content

Commit 0f4d50f

Browse files
committed
Merge inbound to mozilla-central. a=merge
2 parents 12a50f2 + 7786b35 commit 0f4d50f

File tree

245 files changed

+2495
-12704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

245 files changed

+2495
-12704
lines changed

Cargo.lock

Lines changed: 11 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

browser/base/content/browser-ctrlTab.js

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@
99
* Tab previews utility, produces thumbnails
1010
*/
1111
var tabPreviews = {
12-
init: function tabPreviews_init() {
13-
if (this._selectedTab)
14-
return;
15-
this._selectedTab = gBrowser.selectedTab;
16-
17-
gBrowser.tabContainer.addEventListener("TabSelect", this);
18-
gBrowser.tabContainer.addEventListener("SSTabRestored", this);
19-
},
20-
2112
get aspectRatio() {
2213
let { PageThumbUtils } = ChromeUtils.import("resource://gre/modules/PageThumbUtils.jsm", {});
2314
let [ width, height ] = PageThumbUtils.getThumbnailSize(window);
@@ -70,33 +61,6 @@ var tabPreviews = {
7061
});
7162
return canvas;
7263
},
73-
74-
handleEvent: function tabPreviews_handleEvent(event) {
75-
switch (event.type) {
76-
case "TabSelect":
77-
if (this._selectedTab &&
78-
this._selectedTab.parentNode &&
79-
!this._pendingUpdate) {
80-
// Generate a thumbnail for the tab that was selected.
81-
// The timeout keeps the UI snappy and prevents us from generating thumbnails
82-
// for tabs that will be closed. During that timeout, don't generate other
83-
// thumbnails in case multiple TabSelect events occur fast in succession.
84-
this._pendingUpdate = true;
85-
setTimeout(function(self, aTab) {
86-
self._pendingUpdate = false;
87-
if (aTab.parentNode &&
88-
!aTab.hasAttribute("busy") &&
89-
!aTab.hasAttribute("pending"))
90-
self.capture(aTab, true);
91-
}, 2000, this, this._selectedTab);
92-
}
93-
this._selectedTab = event.target;
94-
break;
95-
case "SSTabRestored":
96-
this.capture(event.target, true);
97-
break;
98-
}
99-
}
10064
};
10165

10266
var tabPreviewPanelHelper = {
@@ -206,8 +170,6 @@ var ctrlTab = {
206170

207171
init: function ctrlTab_init() {
208172
if (!this._recentlyUsedTabs) {
209-
tabPreviews.init();
210-
211173
this._initRecentlyUsedTabs();
212174
this._init(true);
213175
}

browser/base/content/test/general/browser_gZipOfflineChild.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ registerCleanupFunction(function() {
1818
// offline cache events.
1919
//
2020
function contentTask() {
21+
ChromeUtils.import("resource://gre/modules/Timer.jsm");
22+
2123
let resolve;
2224
let promise = new Promise(r => { resolve = r; });
2325

browser/base/content/test/performance/browser_startup_content.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ const whitelist = {
2424
]),
2525
modules: new Set([
2626
"chrome://mochikit/content/ShutdownLeaksCollector.jsm",
27+
"resource://specialpowers/specialpowers.js",
28+
"resource://specialpowers/specialpowersAPI.js",
2729

2830
// General utilities
2931
"resource://gre/modules/AppConstants.jsm",

browser/base/content/test/popupNotifications/browser_displayURI.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ add_task(async function test_displayURI_camera() {
9292

9393
add_task(async function test_displayURI_geo_blob() {
9494
await check(async function() {
95+
Cu.importGlobalProperties(["Blob"]);
9596
let text = "<script>navigator.geolocation.getCurrentPosition(() => {})</script>";
9697
let blob = new Blob([text], {type: "text/html"});
9798
let url = content.URL.createObjectURL(blob);
@@ -101,6 +102,7 @@ add_task(async function test_displayURI_geo_blob() {
101102

102103
add_task(async function test_displayURI_camera_blob() {
103104
await check(async function() {
105+
Cu.importGlobalProperties(["Blob"]);
104106
let text = "<script>navigator.mediaDevices.getUserMedia({video: true, fake: true})</script>";
105107
let blob = new Blob([text], {type: "text/html"});
106108
let url = content.URL.createObjectURL(blob);

browser/base/content/test/webrtc/get_user_media_content_script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
/* eslint-env mozilla/frame-script */
55

6+
ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
67
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
78
XPCOMUtils.defineLazyServiceGetter(this, "MediaManagerService",
89
"@mozilla.org/mediaManagerService;1",

browser/components/newtab/test/browser/browser_topsites_section.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ test_newtab({
6565
// it should be able to click the topsites edit button to reveal the edit topsites modal and overlay.
6666
test: async function topsites_add() {
6767
let nativeInputValueSetter = Object.getOwnPropertyDescriptor(content.window.HTMLInputElement.prototype, "value").set;
68-
let event = new Event("input", {bubbles: true});
68+
let event = new content.Event("input", {bubbles: true});
6969

7070
// Find the add topsites button
7171
content.document.querySelector(".top-sites .section-top-bar .context-menu-button").click();

browser/components/payments/content/paymentDialogFrameScript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ let PaymentFrameScript = {
9090
},
9191

9292
getDefaultPreferences() {
93-
let prefValues = {
93+
let prefValues = Cu.cloneInto({
9494
saveCreditCardDefaultChecked:
9595
Services.prefs.getBoolPref(SAVE_CREDITCARD_DEFAULT_PREF, false),
9696
saveAddressDefaultChecked:
9797
Services.prefs.getBoolPref(SAVE_ADDRESS_DEFAULT_PREF, false),
98-
};
98+
}, waivedContent);
9999
return prefValues;
100100
},
101101
};

browser/components/uitour/test/head.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function loadUITourTestPage(callback, host = "https://example.org/") {
323323
let callbacksCalled = 0;
324324
let resolveCallbackPromise;
325325
let allCallbacksCalledPromise = new Promise(resolve => resolveCallbackPromise = resolve);
326-
let argumentsWithFunctions = contentArgs.args.map((arg, index) => {
326+
let argumentsWithFunctions = Cu.cloneInto(contentArgs.args.map((arg, index) => {
327327
if (arg === "" && contentArgs.fnIndices.includes(index)) {
328328
return function() {
329329
callbacksCalled++;
@@ -334,9 +334,9 @@ function loadUITourTestPage(callback, host = "https://example.org/") {
334334
};
335335
}
336336
return arg;
337-
});
337+
}), content, {cloneFunctions: true});
338338
let rv = contentWin.Mozilla.UITour[contentArgs.methodName].apply(contentWin.Mozilla.UITour,
339-
argumentsWithFunctions);
339+
argumentsWithFunctions);
340340
if (contentArgs.fnIndices.length) {
341341
await allCallbacksCalledPromise;
342342
}

config/external/nspr/pr/moz.build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,12 @@ elif CONFIG['OS_TARGET'] == 'WINNT':
9393
DEFINES['DO_NOT_WAIT_FOR_CONNECT_OVERLAPPED_OPERATIONS'] = True
9494
if CONFIG['CPU_ARCH'] == 'x86_64':
9595
DEFINES['_AMD64_'] = True
96-
else:
96+
elif CONFIG['CPU_ARCH'] == 'x86':
9797
DEFINES['_X86_'] = True
98+
elif CONFIG['CPU_ARCH'] == 'aarch64':
99+
DEFINES['_ARM64_'] = True
100+
else:
101+
error('Unsupported CPU_ARCH value: %s' % CONFIG['CPU_ARCH'])
98102
else:
99103
error('Not a supported OS_TARGET for NSPR in moz.build: "%s". Use --with-system-nspr' % CONFIG['OS_TARGET'])
100104

devtools/client/debugger/new/README.mozilla

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
This is the debugger.html project output.
22
See https://github.com/devtools-html/debugger.html
33

4-
Version 78
4+
Version 79
55

6-
Comparison: https://github.com/devtools-html/debugger.html/compare/release-77...release-78
6+
Comparison: https://github.com/devtools-html/debugger.html/compare/release-78...release-79
77

88
Packages:
99
- babel-plugin-transform-es2015-modules-commonjs @6.26.2

0 commit comments

Comments
 (0)