diff --git a/accessible/tests/mochitest/tree/test_tabbrowser.xul b/accessible/tests/mochitest/tree/test_tabbrowser.xul index e957c10658f0..ce911acc9c74 100644 --- a/accessible/tests/mochitest/tree/test_tabbrowser.xul +++ b/accessible/tests/mochitest/tree/test_tabbrowser.xul @@ -180,7 +180,7 @@ children: [ { // #document ("about:newtab" preloaded) - role: ROLE_APPLICATION + role: ROLE_DOCUMENT // children: [ ... ] // Ignore document content. } ] diff --git a/b2g/config/aries/sources.xml b/b2g/config/aries/sources.xml index 8a9cd8bc63e5..23b3ef910f11 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 475003c9e7e9..526fb666732b 100644 --- a/b2g/config/dolphin/sources.xml +++ b/b2g/config/dolphin/sources.xml @@ -15,7 +15,7 @@ - + @@ -38,7 +38,7 @@ - + @@ -105,7 +105,7 @@ - + diff --git a/b2g/config/emulator-ics/sources.xml b/b2g/config/emulator-ics/sources.xml index a144a0dbd4cf..75b576080d3f 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 52c90c121bc1..37dc16c26f5e 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 85b03bcc6d1a..0dcdca799eae 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 8f1a4dc524bf..c8f95ae8f81c 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 a144a0dbd4cf..75b576080d3f 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 46394ddbaf80..31d9292997c2 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 2a4a8dc118e4..e1dcdfc0e635 100644 --- a/b2g/config/gaia.json +++ b/b2g/config/gaia.json @@ -1,9 +1,9 @@ { "git": { - "git_revision": "f04fdbfa1943dddeab8ecd1299a76ab56e590d00", + "git_revision": "aa1698251e86c820c50c045b0a3ff65fd6b0eee7", "remote": "https://git.mozilla.org/releases/gaia.git", "branch": "" }, - "revision": "01d6b677af341b70496c9ae304bd07b2697f9410", + "revision": "0cf27fd21b9b89578d2114bfd5a397e4352748f6", "repo_path": "integration/gaia-central" } diff --git a/b2g/config/nexus-4/sources.xml b/b2g/config/nexus-4/sources.xml index 42633e2b5dbe..067468e89ec2 100644 --- a/b2g/config/nexus-4/sources.xml +++ b/b2g/config/nexus-4/sources.xml @@ -17,7 +17,7 @@ - + diff --git a/b2g/config/nexus-5-l/sources.xml b/b2g/config/nexus-5-l/sources.xml index 36de9d30be39..b742419b5a56 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-fxaccounts.js b/browser/base/content/browser-fxaccounts.js index ba1519b57928..c4284d8f42ef 100644 --- a/browser/base/content/browser-fxaccounts.js +++ b/browser/base/content/browser-fxaccounts.js @@ -110,14 +110,7 @@ let gFxAccounts = { // notified of fxa-migration:state-changed in response if necessary. Services.obs.notifyObservers(null, "fxa-migration:state-request", null); - let contentUri = Services.urlFormatter.formatURLPref("identity.fxaccounts.remote.webchannel.uri"); - // The FxAccountsWebChannel listens for events and updates - // the state machine accordingly. - let fxAccountsWebChannel = new FxAccountsWebChannel({ - content_uri: contentUri, - channel_id: this.FxAccountsCommon.WEBCHANNEL_ID - }); - + EnsureFxAccountsWebChannel(); this._initialized = true; this.updateUI(); @@ -482,5 +475,5 @@ XPCOMUtils.defineLazyGetter(gFxAccounts, "FxAccountsCommon", function () { XPCOMUtils.defineLazyModuleGetter(gFxAccounts, "fxaMigrator", "resource://services-sync/FxaMigrator.jsm"); -XPCOMUtils.defineLazyModuleGetter(this, "FxAccountsWebChannel", +XPCOMUtils.defineLazyModuleGetter(this, "EnsureFxAccountsWebChannel", "resource://gre/modules/FxAccountsWebChannel.jsm"); diff --git a/browser/base/content/newtab/drag.js b/browser/base/content/newtab/drag.js index 8f0bf674ee92..aca20c576773 100644 --- a/browser/base/content/newtab/drag.js +++ b/browser/base/content/newtab/drag.js @@ -140,7 +140,7 @@ let gDrag = { // drag image with its default opacity. let dragElement = document.createElementNS(HTML_NAMESPACE, "div"); dragElement.classList.add("newtab-drag"); - let scrollbox = document.getElementById("newtab-scrollbox"); + let scrollbox = document.getElementById("newtab-vertical-margin"); scrollbox.appendChild(dragElement); dt.setDragImage(dragElement, 0, 0); diff --git a/browser/base/content/newtab/newTab.css b/browser/base/content/newtab/newTab.css index fe095bb30fef..9f694853c834 100644 --- a/browser/base/content/newtab/newTab.css +++ b/browser/base/content/newtab/newTab.css @@ -2,6 +2,25 @@ * 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/. */ +html { + width: 100%; + height: 100%; +} + +body { + font: message-box; + width: 100%; + height: 100%; + padding: 0; + margin: 0; + background-color: #F9F9F9; + display: -moz-box; + position: relative; + -moz-box-flex: 1; + -moz-user-focus: normal; + -moz-box-orient: vertical; +} + input { font: message-box !important; font-size: 16px !important; @@ -11,23 +30,9 @@ input[type=button] { cursor: pointer; } -/* SCROLLBOX */ -#newtab-scrollbox { - display: -moz-box; - position: relative; - -moz-box-flex: 1; - -moz-user-focus: normal; - -moz-box-orient: vertical; -} - -#newtab-scrollbox:not([page-disabled]) { - overflow: auto; -} - /* UNDO */ #newtab-undo-container { transition: opacity 100ms ease-out; - display: -moz-box; -moz-box-align: center; -moz-box-pack: center; } @@ -45,7 +50,7 @@ input[type=button] { z-index: 101; } -#newtab-customize-button:-moz-locale-dir(rtl) { +#newtab-customize-button:-moz-dir(rtl) { left: 20px; right: auto; } @@ -66,11 +71,15 @@ input[type=button] { z-index: 1; } -#newtab-margin-undo-container:-moz-locale-dir(rtl) { +#newtab-margin-undo-container:-moz-dir(rtl) { left: auto; right: 6px; } +#newtab-undo-close-button:-moz-dir(rtl) { + float:left; +} + #newtab-horizontal-margin { display: -moz-box; -moz-box-flex: 1; @@ -238,7 +247,7 @@ input[type=button] { background-color: #000000; } -.newtab-sponsored:-moz-locale-dir(rtl) { +.newtab-sponsored:-moz-dir(rtl) { right: 0; left: auto; } @@ -302,13 +311,13 @@ input[type=button] { } } -.newtab-control-pin:-moz-locale-dir(ltr), -.newtab-control-block:-moz-locale-dir(rtl) { +.newtab-control-pin:-moz-dir(ltr), +.newtab-control-block:-moz-dir(rtl) { left: 4px; } -.newtab-control-block:-moz-locale-dir(ltr), -.newtab-control-pin:-moz-locale-dir(rtl) { +.newtab-control-block:-moz-dir(ltr), +.newtab-control-pin:-moz-dir(rtl) { right: 4px; } @@ -442,6 +451,7 @@ input[type=button] { transition-duration: 0ms; } +/* CUSTOMIZE */ #newtab-customize-overlay { opacity: 0; display: none; @@ -456,6 +466,12 @@ input[type=button] { .newtab-customize-panel-container { position: absolute; margin-right: 40px; + right: 0; +} + +.newtab-customize-panel-container:-moz-dir(rtl) { + right: auto; + left: 0; } #newtab-customize-panel { @@ -471,12 +487,12 @@ input[type=button] { transform: translate(-30px, -20px) scale(0) translate(30px, 20px); } -#newtab-customize-panel:-moz-locale-dir(rtl) { +#newtab-customize-panel:-moz-dir(rtl) { transform-origin: 40px top 20px; } -#newtab-customize-panel:-moz-locale-dir(rtl), -#newtab-customize-panel-anchor:-moz-locale-dir(rtl) { +#newtab-customize-panel:-moz-dir(rtl), +#newtab-customize-panel-anchor:-moz-dir(rtl) { left: 15px; right: auto; } diff --git a/browser/base/content/newtab/newTab.js b/browser/base/content/newtab/newTab.js index aa4411c9f638..db956eea0f1b 100644 --- a/browser/base/content/newtab/newTab.js +++ b/browser/base/content/newtab/newTab.js @@ -44,7 +44,7 @@ function newTabString(name, args) { } function inPrivateBrowsingMode() { - return PrivateBrowsingUtils.isWindowPrivate(window); + return PrivateBrowsingUtils.isContentWindowPrivate(window); } const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml"; diff --git a/browser/base/content/newtab/newTab.xul b/browser/base/content/newtab/newTab.xhtml similarity index 64% rename from browser/base/content/newtab/newTab.xul rename to browser/base/content/newtab/newTab.xhtml index 06add8428c97..bf6eb3fb035a 100644 --- a/browser/base/content/newtab/newTab.xul +++ b/browser/base/content/newtab/newTab.xhtml @@ -4,21 +4,27 @@ - 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/. --> - - - - - - %newTabDTD; %browserDTD; + + %globalDTD; ]> - + + + &newtab.pageTitle; + + + + + + + + +
@@ -47,8 +53,6 @@
-
-
@@ -70,27 +74,18 @@
-
-
-
- -
-
- - - - +
+
+ + + +
-
@@ -112,13 +107,9 @@
- -
-
- - - - + + +