Skip to content

Commit

Permalink
Merge m-c to inbound. a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rvandermeulen committed Oct 21, 2016
2 parents 0043925 + e990049 commit 9ec9bb8
Show file tree
Hide file tree
Showing 452 changed files with 5,923 additions and 44,444 deletions.
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Allow linting of .eslintrc.js files.
!**/.eslintrc.js

# Always ignore node_modules.
**/node_modules/**/*.*

Expand Down
3 changes: 0 additions & 3 deletions b2g/app/b2g.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,6 @@ pref("dom.ipc.browser_frames.oop_by_default", false);
pref("dom.meta-viewport.enabled", true);
#endif

// SMS/MMS
pref("dom.sms.enabled", true);

//The waiting time in network manager.
pref("network.gonk.ms-release-mms-connection", 30000);

Expand Down
2 changes: 1 addition & 1 deletion browser/base/content/aboutNetError.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
}

function toggleDisplay(node) {
toggle = {
const toggle = {
"": "block",
"none": "block",
"block": "none"
Expand Down
2 changes: 2 additions & 0 deletions browser/base/content/abouthome/aboutHome.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

"use strict";

/* import-globals-from ../contentSearchUI.js */

// The process of adding a new default snippet involves:
// * add a new entity to aboutHome.dtd
// * add a <span/> for it in aboutHome.xhtml
Expand Down
2 changes: 1 addition & 1 deletion browser/base/content/tabbrowser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5675,7 +5675,7 @@
<method name="_notifyBackgroundTab">
<parameter name="aTab"/>
<body><![CDATA[
if (aTab.pinned)
if (aTab.pinned || aTab.hidden)
return;
var scrollRect = this.mTabstrip.scrollClientRect;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
module.exports = {
"extends": [
"../../../../../testing/mochitest/browser.eslintrc.js"
]
],

"rules": {
"no-undef": 2
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ add_task(function* test() {

// Let's try to open a window from tab1 with a name 'tab-2'.
info("Opening a window from the first tab...");
yield ContentTask.spawn(browser1, { url: BASE_URI + '?new' }, function(opts) {
yield ContentTask.spawn(browser1, { url: BASE_URI + '?new' }, function* (opts) {
yield (new content.window.wrappedJSObject.Promise(resolve => {
let w = content.window.wrappedJSObject.open(opts.url, 'tab-2');
w.onload = function() { resolve(); }
Expand Down
5 changes: 3 additions & 2 deletions browser/components/customizableui/CustomizableWidgets.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -1259,8 +1259,9 @@ if (AppConstants.E10S_TESTING_ONLY) {
id: "e10s-button",
defaultArea: CustomizableUI.AREA_PANEL,
onBuild: function(aDocument) {
node.setAttribute("label", CustomizableUI.getLocalizedProperty(this, "label"));
node.setAttribute("tooltiptext", CustomizableUI.getLocalizedProperty(this, "tooltiptext"));
let node = aDocument.createElementNS(kNSXUL, "toolbarbutton");
node.setAttribute("label", CustomizableUI.getLocalizedProperty(this, "label"));
node.setAttribute("tooltiptext", CustomizableUI.getLocalizedProperty(this, "tooltiptext"));
},
onCommand: function(aEvent) {
let win = aEvent.view;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,85 +137,85 @@ function add_sidebar_task(description, setup, teardown) {
add_sidebar_task(
"Check that a sidebar that uses a command event listener works",
function*() {
gTestSidebarItem.addEventListener("command", sawEvent);
gTestSidebarItem.addEventListener("command", window.sawEvent);
}, function*() {
checkExpectedEvents({ command: 1 });
});

add_sidebar_task(
"Check that a sidebar that uses a click event listener works",
function*() {
gTestSidebarItem.addEventListener("click", sawEvent);
gTestSidebarItem.addEventListener("click", window.sawEvent);
}, function*() {
checkExpectedEvents({ click: 1 });
});

add_sidebar_task(
"Check that a sidebar that uses both click and command event listeners works",
function*() {
gTestSidebarItem.addEventListener("command", sawEvent);
gTestSidebarItem.addEventListener("click", sawEvent);
gTestSidebarItem.addEventListener("command", window.sawEvent);
gTestSidebarItem.addEventListener("click", window.sawEvent);
}, function*() {
checkExpectedEvents({ command: 1, click: 1 });
});

add_sidebar_task(
"Check that a sidebar that uses an oncommand attribute works",
function*() {
gTestSidebarItem.setAttribute("oncommand", "sawEvent(event, true)");
gTestSidebarItem.setAttribute("oncommand", "window.sawEvent(event, true)");
}, function*() {
checkExpectedEvents({ oncommand: 1 });
});

add_sidebar_task(
"Check that a sidebar that uses an onclick attribute works",
function*() {
gTestSidebarItem.setAttribute("onclick", "sawEvent(event, true)");
gTestSidebarItem.setAttribute("onclick", "window.sawEvent(event, true)");
}, function*() {
checkExpectedEvents({ onclick: 1 });
});

add_sidebar_task(
"Check that a sidebar that uses both onclick and oncommand attributes works",
function*() {
gTestSidebarItem.setAttribute("onclick", "sawEvent(event, true)");
gTestSidebarItem.setAttribute("oncommand", "sawEvent(event, true)");
gTestSidebarItem.setAttribute("onclick", "window.sawEvent(event, true)");
gTestSidebarItem.setAttribute("oncommand", "window.sawEvent(event, true)");
}, function*() {
checkExpectedEvents({ onclick: 1, oncommand: 1 });
});

add_sidebar_task(
"Check that a sidebar that uses an onclick attribute and a command listener works",
function*() {
gTestSidebarItem.setAttribute("onclick", "sawEvent(event, true)");
gTestSidebarItem.addEventListener("command", sawEvent);
gTestSidebarItem.setAttribute("onclick", "window.sawEvent(event, true)");
gTestSidebarItem.addEventListener("command", window.sawEvent);
}, function*() {
checkExpectedEvents({ onclick: 1, command: 1 });
});

add_sidebar_task(
"Check that a sidebar that uses an oncommand attribute and a click listener works",
function*() {
gTestSidebarItem.setAttribute("oncommand", "sawEvent(event, true)");
gTestSidebarItem.addEventListener("click", sawEvent);
gTestSidebarItem.setAttribute("oncommand", "window.sawEvent(event, true)");
gTestSidebarItem.addEventListener("click", window.sawEvent);
}, function*() {
checkExpectedEvents({ click: 1, oncommand: 1 });
});

add_sidebar_task(
"A sidebar with both onclick attribute and click listener sees only one event :(",
function*() {
gTestSidebarItem.setAttribute("onclick", "sawEvent(event, true)");
gTestSidebarItem.addEventListener("click", sawEvent);
gTestSidebarItem.setAttribute("onclick", "window.sawEvent(event, true)");
gTestSidebarItem.addEventListener("click", window.sawEvent);
}, function*() {
checkExpectedEvents({ onclick: 1 });
});

add_sidebar_task(
"A sidebar with both oncommand attribute and command listener sees only one event :(",
function*() {
gTestSidebarItem.setAttribute("oncommand", "sawEvent(event, true)");
gTestSidebarItem.addEventListener("command", sawEvent);
gTestSidebarItem.setAttribute("oncommand", "window.sawEvent(event, true)");
gTestSidebarItem.addEventListener("command", window.sawEvent);
}, function*() {
checkExpectedEvents({ oncommand: 1 });
});
Expand All @@ -225,7 +225,7 @@ add_sidebar_task(
function*() {
let broadcaster = document.createElement("broadcaster");
broadcaster.setAttribute("id", "testbroadcaster");
broadcaster.setAttribute("oncommand", "sawEvent(event, true)");
broadcaster.setAttribute("oncommand", "window.sawEvent(event, true)");
broadcaster.setAttribute("label", "Test Sidebar");
document.getElementById("mainBroadcasterSet").appendChild(broadcaster);

Expand All @@ -240,7 +240,7 @@ add_sidebar_task(
function*() {
let broadcaster = document.createElement("broadcaster");
broadcaster.setAttribute("id", "testbroadcaster");
broadcaster.setAttribute("onclick", "sawEvent(event, true)");
broadcaster.setAttribute("onclick", "window.sawEvent(event, true)");
broadcaster.setAttribute("label", "Test Sidebar");
document.getElementById("mainBroadcasterSet").appendChild(broadcaster);

Expand All @@ -255,8 +255,8 @@ add_sidebar_task(
function*() {
let broadcaster = document.createElement("broadcaster");
broadcaster.setAttribute("id", "testbroadcaster");
broadcaster.setAttribute("onclick", "sawEvent(event, true)");
broadcaster.setAttribute("oncommand", "sawEvent(event, true)");
broadcaster.setAttribute("onclick", "window.sawEvent(event, true)");
broadcaster.setAttribute("oncommand", "window.sawEvent(event, true)");
broadcaster.setAttribute("label", "Test Sidebar");
document.getElementById("mainBroadcasterSet").appendChild(broadcaster);

Expand All @@ -271,12 +271,12 @@ add_sidebar_task(
function*() {
let broadcaster = document.createElement("broadcaster");
broadcaster.setAttribute("id", "testbroadcaster");
broadcaster.setAttribute("oncommand", "sawEvent(event, true)");
broadcaster.setAttribute("oncommand", "window.sawEvent(event, true)");
broadcaster.setAttribute("label", "Test Sidebar");
document.getElementById("mainBroadcasterSet").appendChild(broadcaster);

gTestSidebarItem.setAttribute("observes", "testbroadcaster");
gTestSidebarItem.addEventListener("click", sawEvent);
gTestSidebarItem.addEventListener("click", window.sawEvent);
}, function*() {
checkExpectedEvents({ click: 1, oncommand: 1 });
document.getElementById("testbroadcaster").remove();
Expand All @@ -287,12 +287,12 @@ add_sidebar_task(
function*() {
let broadcaster = document.createElement("broadcaster");
broadcaster.setAttribute("id", "testbroadcaster");
broadcaster.setAttribute("onclick", "sawEvent(event, true)");
broadcaster.setAttribute("onclick", "window.sawEvent(event, true)");
broadcaster.setAttribute("label", "Test Sidebar");
document.getElementById("mainBroadcasterSet").appendChild(broadcaster);

gTestSidebarItem.setAttribute("observes", "testbroadcaster");
gTestSidebarItem.addEventListener("command", sawEvent);
gTestSidebarItem.addEventListener("command", window.sawEvent);
}, function*() {
checkExpectedEvents({ onclick: 1, command: 1 });
document.getElementById("testbroadcaster").remove();
Expand All @@ -304,12 +304,12 @@ add_sidebar_task(
function*() {
let broadcaster = document.createElement("broadcaster");
broadcaster.setAttribute("id", "testbroadcaster");
broadcaster.setAttribute("onclick", "sawEvent(event, true)");
broadcaster.setAttribute("onclick", "window.sawEvent(event, true)");
broadcaster.setAttribute("label", "Test Sidebar");
document.getElementById("mainBroadcasterSet").appendChild(broadcaster);

gTestSidebarItem.setAttribute("observes", "testbroadcaster");
gTestSidebarItem.addEventListener("click", sawEvent);
gTestSidebarItem.addEventListener("click", window.sawEvent);
}, function*() {
checkExpectedEvents({ onclick: 1 });
document.getElementById("testbroadcaster").remove();
Expand All @@ -321,12 +321,12 @@ add_sidebar_task(
function*() {
let broadcaster = document.createElement("broadcaster");
broadcaster.setAttribute("id", "testbroadcaster");
broadcaster.setAttribute("oncommand", "sawEvent(event, true)");
broadcaster.setAttribute("oncommand", "window.sawEvent(event, true)");
broadcaster.setAttribute("label", "Test Sidebar");
document.getElementById("mainBroadcasterSet").appendChild(broadcaster);

gTestSidebarItem.setAttribute("observes", "testbroadcaster");
gTestSidebarItem.addEventListener("command", sawEvent);
gTestSidebarItem.addEventListener("command", window.sawEvent);
}, function*() {
checkExpectedEvents({ oncommand: 1 });
document.getElementById("testbroadcaster").remove();
Expand All @@ -338,7 +338,7 @@ function*() {
let command = document.createElement("command");
command.setAttribute("id", "testcommand");
document.getElementById("mainCommandSet").appendChild(command);
command.addEventListener("command", sawEvent);
command.addEventListener("command", window.sawEvent);

gTestSidebarItem.setAttribute("command", "testcommand");
}, function*() {
Expand All @@ -351,7 +351,7 @@ add_sidebar_task(
function*() {
let command = document.createElement("command");
command.setAttribute("id", "testcommand");
command.setAttribute("oncommand", "sawEvent(event, true)");
command.setAttribute("oncommand", "window.sawEvent(event, true)");
document.getElementById("mainCommandSet").appendChild(command);

gTestSidebarItem.setAttribute("command", "testcommand");
Expand All @@ -365,9 +365,9 @@ add_sidebar_task("Check that a sidebar that uses a command element with a " +
function*() {
let command = document.createElement("command");
command.setAttribute("id", "testcommand");
command.setAttribute("oncommand", "sawEvent(event, true)");
command.setAttribute("oncommand", "window.sawEvent(event, true)");
document.getElementById("mainCommandSet").appendChild(command);
command.addEventListener("command", sawEvent);
command.addEventListener("command", window.sawEvent);

gTestSidebarItem.setAttribute("command", "testcommand");
}, function*() {
Expand All @@ -380,12 +380,12 @@ add_sidebar_task(
function*() {
let command = document.createElement("command");
command.setAttribute("id", "testcommand");
command.setAttribute("oncommand", "sawEvent(event, true)");
command.setAttribute("oncommand", "window.sawEvent(event, true)");
document.getElementById("mainCommandSet").appendChild(command);
command.addEventListener("command", sawEvent);
command.addEventListener("command", window.sawEvent);

gTestSidebarItem.setAttribute("command", "testcommand");
gTestSidebarItem.addEventListener("click", sawEvent);
gTestSidebarItem.addEventListener("click", window.sawEvent);
}, function*() {
checkExpectedEvents({ click: 1, command: 1, oncommand: 1 });
document.getElementById("testcommand").remove();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
self.randomValue = Math.random();

/* global onconnect:true */

onconnect = function (e) {
let port = e.ports[0];
port.postMessage(self.randomValue);
Expand Down
2 changes: 2 additions & 0 deletions browser/components/preferences/applicationManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// 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/.

/* import-globals-from in-content/applications.js */

var Cc = Components.classes;
var Ci = Components.interfaces;

Expand Down
3 changes: 2 additions & 1 deletion browser/components/preferences/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* 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/. */

/* import-globals-from ../../../toolkit/mozapps/preferences/fontbuilder.js */

// browser.display.languageList LOCK ALL when LOCKED

const kDefaultFontType = "font.default.%LANG%";
Expand Down Expand Up @@ -101,4 +103,3 @@ var gFontsDialog = {
return buttonChosen == 0;
},
};

1 change: 1 addition & 0 deletions browser/components/preferences/handlers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- 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/. -->
<!-- import-globals-from in-content/applications.js -->

<!DOCTYPE overlay [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
Expand Down
12 changes: 12 additions & 0 deletions browser/components/preferences/in-content/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
- 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/. */

// Import globals from the files imported by the .xul files.
/* import-globals-from subdialogs.js */
/* import-globals-from advanced.js */
/* import-globals-from main.js */
/* import-globals-from search.js */
/* import-globals-from content.js */
/* import-globals-from privacy.js */
/* import-globals-from applications.js */
/* import-globals-from security.js */
/* import-globals-from sync.js */
/* import-globals-from ../../../base/content/utilityOverlay.js */

"use strict";

var Cc = Components.classes;
Expand Down
Loading

0 comments on commit 9ec9bb8

Please sign in to comment.