diff --git a/CLOBBER b/CLOBBER
index e0e8a2acfe89..d7ecd607a4e4 100644
--- a/CLOBBER
+++ b/CLOBBER
@@ -22,4 +22,4 @@
# changes to stick? As of bug 928195, this shouldn't be necessary! Please
# don't change CLOBBER for WebIDL changes any more.
-Bug 1182727 - Changed toolchain, needs clobber again :(
+Bug 1210755 - Android build: Switch to Android 6.0 SDK / API 23
diff --git a/b2g/config/aries/sources.xml b/b2g/config/aries/sources.xml
index a96a0edf5067..fa381995fd49 100644
--- a/b2g/config/aries/sources.xml
+++ b/b2g/config/aries/sources.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/b2g/config/dolphin/sources.xml b/b2g/config/dolphin/sources.xml
index 10cdafad50bc..e6d93db6e115 100644
--- a/b2g/config/dolphin/sources.xml
+++ b/b2g/config/dolphin/sources.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/b2g/config/emulator-ics/sources.xml b/b2g/config/emulator-ics/sources.xml
index 336dfb217181..17ed8e3480e2 100644
--- a/b2g/config/emulator-ics/sources.xml
+++ b/b2g/config/emulator-ics/sources.xml
@@ -19,7 +19,7 @@
-
+
diff --git a/b2g/config/emulator-jb/sources.xml b/b2g/config/emulator-jb/sources.xml
index d9a4164648e6..b85821e6120e 100644
--- a/b2g/config/emulator-jb/sources.xml
+++ b/b2g/config/emulator-jb/sources.xml
@@ -17,7 +17,7 @@
-
+
diff --git a/b2g/config/emulator-kk/sources.xml b/b2g/config/emulator-kk/sources.xml
index c16aa4cea85c..e07de16b1559 100644
--- a/b2g/config/emulator-kk/sources.xml
+++ b/b2g/config/emulator-kk/sources.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/b2g/config/emulator-l/sources.xml b/b2g/config/emulator-l/sources.xml
index 2d2312c45092..1baf3418253a 100644
--- a/b2g/config/emulator-l/sources.xml
+++ b/b2g/config/emulator-l/sources.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/b2g/config/emulator/sources.xml b/b2g/config/emulator/sources.xml
index 336dfb217181..17ed8e3480e2 100644
--- a/b2g/config/emulator/sources.xml
+++ b/b2g/config/emulator/sources.xml
@@ -19,7 +19,7 @@
-
+
diff --git a/b2g/config/flame-kk/sources.xml b/b2g/config/flame-kk/sources.xml
index 66ddcceb7e4e..af584905fa3f 100644
--- a/b2g/config/flame-kk/sources.xml
+++ b/b2g/config/flame-kk/sources.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/b2g/config/gaia.json b/b2g/config/gaia.json
index fd5de42ec3f2..a72fcf6cc665 100644
--- a/b2g/config/gaia.json
+++ b/b2g/config/gaia.json
@@ -1,9 +1,9 @@
{
"git": {
- "git_revision": "1f226126dcba8af16c8db08556130b0bb04bb8d3",
+ "git_revision": "60cdaa3d3424db3432dc903e7f9c6c8fa099c06d",
"remote": "https://git.mozilla.org/releases/gaia.git",
"branch": ""
},
- "revision": "44cf4f0a2b14c88e117d9c8cf76779d0a7c26999",
+ "revision": "1de2dfa13b0b91c293111198011353c7bb86242d",
"repo_path": "integration/gaia-central"
}
diff --git a/b2g/config/nexus-4-kk/sources.xml b/b2g/config/nexus-4-kk/sources.xml
index a1d5d70afcf9..cc6f720cd2d8 100644
--- a/b2g/config/nexus-4-kk/sources.xml
+++ b/b2g/config/nexus-4-kk/sources.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/b2g/config/nexus-4/sources.xml b/b2g/config/nexus-4/sources.xml
index 43ff2a237328..671e16d0af60 100644
--- a/b2g/config/nexus-4/sources.xml
+++ b/b2g/config/nexus-4/sources.xml
@@ -18,7 +18,7 @@
-
+
diff --git a/b2g/config/nexus-5-l/sources.xml b/b2g/config/nexus-5-l/sources.xml
index b82a14bb05f8..5ae9e0c3c5d5 100644
--- a/b2g/config/nexus-5-l/sources.xml
+++ b/b2g/config/nexus-5-l/sources.xml
@@ -15,7 +15,7 @@
-
+
diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul
index 8bc6179edbd9..69a4914e0906 100644
--- a/browser/base/content/browser.xul
+++ b/browser/base/content/browser.xul
@@ -713,7 +713,6 @@
-
diff --git a/browser/base/content/popup-notifications.inc b/browser/base/content/popup-notifications.inc
index b50ff5e6fb30..44fd8e2cdb8e 100644
--- a/browser/base/content/popup-notifications.inc
+++ b/browser/base/content/popup-notifications.inc
@@ -6,6 +6,7 @@
position="after_start"
hidden="true"
orient="vertical"
+ noautofocus="true"
role="alert"/>
diff --git a/browser/base/content/test/alerts/browser.ini b/browser/base/content/test/alerts/browser.ini
new file mode 100644
index 000000000000..cde60ad06a94
--- /dev/null
+++ b/browser/base/content/test/alerts/browser.ini
@@ -0,0 +1,7 @@
+[DEFAULT]
+support-files =
+ file_dom_notifications.html
+
+[browser_notification_open_settings.js]
+[browser_notification_tab_switching.js]
+skip-if = buildapp == 'mulet' || e10s # Bug 1100662 - content access causing uncaught exception - Error: cannot ipc non-cpow object at chrome://mochitests/content/browser/browser/base/content/test/general/browser_notification_tab_switching.js:32 (or in RemoteAddonsChild.jsm)
diff --git a/browser/base/content/test/alerts/browser_notification_open_settings.js b/browser/base/content/test/alerts/browser_notification_open_settings.js
new file mode 100644
index 000000000000..f339af140fb1
--- /dev/null
+++ b/browser/base/content/test/alerts/browser_notification_open_settings.js
@@ -0,0 +1,18 @@
+"use strict";
+
+add_task(function* test_settingsOpen() {
+ info("Opening a dummy tab so openPreferences=>switchToTabHavingURI doesn't use the blank tab.");
+ yield BrowserTestUtils.withNewTab({
+ gBrowser,
+ url: "about:robots"
+ }, function* dummyTabTask(aBrowser) {
+ let tabPromise = BrowserTestUtils.waitForNewTab(gBrowser, "about:preferences#content");
+ info("simulate a notifications-open-settings notification");
+ let uri = NetUtil.newURI("https://example.com");
+ let principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
+ Services.obs.notifyObservers(principal, "notifications-open-settings", null);
+ let tab = yield tabPromise;
+ ok(tab, "The notification settings tab opened");
+ BrowserTestUtils.removeTab(tab);
+ });
+});
diff --git a/browser/base/content/test/general/browser_notification_tab_switching.js b/browser/base/content/test/alerts/browser_notification_tab_switching.js
similarity index 95%
rename from browser/base/content/test/general/browser_notification_tab_switching.js
rename to browser/base/content/test/alerts/browser_notification_tab_switching.js
index 161e4e14958d..482b54fbb63a 100644
--- a/browser/base/content/test/general/browser_notification_tab_switching.js
+++ b/browser/base/content/test/alerts/browser_notification_tab_switching.js
@@ -6,7 +6,7 @@
var tab;
var notification;
-var notificationURL = "http://example.org/browser/browser/base/content/test/general/file_dom_notifications.html";
+var notificationURL = "http://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html";
var newWindowOpenedFromTab;
function test () {
@@ -58,7 +58,7 @@ function onAlertShowing() {
info("Notification alert showing");
notification.removeEventListener("show", onAlertShowing);
- let alertWindow = findChromeWindowByURI("chrome://global/content/alerts/alert.xul");
+ let alertWindow = Services.wm.getMostRecentWindow("alert:alert");
if (!alertWindow) {
todo(false, "Notifications don't use XUL windows on all platforms.");
notification.close();
diff --git a/browser/base/content/test/general/file_dom_notifications.html b/browser/base/content/test/alerts/file_dom_notifications.html
similarity index 97%
rename from browser/base/content/test/general/file_dom_notifications.html
rename to browser/base/content/test/alerts/file_dom_notifications.html
index 078c94a42d18..7cbdebdd48e0 100644
--- a/browser/base/content/test/general/file_dom_notifications.html
+++ b/browser/base/content/test/alerts/file_dom_notifications.html
@@ -1,5 +1,6 @@
+
diff --git a/dom/push/test/test_has_permissions.html b/dom/push/test/test_has_permissions.html
index db54a1ffb577..72337f91fcf1 100644
--- a/dom/push/test/test_has_permissions.html
+++ b/dom/push/test/test_has_permissions.html
@@ -65,7 +65,7 @@ http://creativecommons.org/licenses/publicdomain/
}).then(SimpleTest.finish);
}
- SpecialPowers.addPermission('push', false, document);
+ SpecialPowers.addPermission("desktop-notification", false, document);
SpecialPowers.pushPrefEnv({"set": [
["dom.push.enabled", true],
["dom.serviceWorkers.exemptFromPerDomainMax", true],
diff --git a/dom/push/test/test_multiple_register.html b/dom/push/test/test_multiple_register.html
index be7bb574a87a..34df563a755c 100644
--- a/dom/push/test/test_multiple_register.html
+++ b/dom/push/test/test_multiple_register.html
@@ -125,7 +125,7 @@ http://creativecommons.org/licenses/publicdomain/
["dom.serviceWorkers.enabled", true],
["dom.serviceWorkers.testing.enabled", true]
]}, runTest);
- SpecialPowers.addPermission('push', true, document);
+ SpecialPowers.addPermission("desktop-notification", true, document);
SimpleTest.waitForExplicitFinish();
diff --git a/dom/push/test/test_multiple_register_different_scope.html b/dom/push/test/test_multiple_register_different_scope.html
index 3915c54b8d7a..5cfafdb66873 100644
--- a/dom/push/test/test_multiple_register_different_scope.html
+++ b/dom/push/test/test_multiple_register_different_scope.html
@@ -119,7 +119,7 @@ http://creativecommons.org/licenses/publicdomain/
["dom.serviceWorkers.enabled", true],
["dom.serviceWorkers.testing.enabled", true]
]}, runTest);
- SpecialPowers.addPermission('push', true, document);
+ SpecialPowers.addPermission("desktop-notification", true, document);
SimpleTest.waitForExplicitFinish();