Bug 1515992 - change account provisioner's dummy URL for storage to be compatible with NGLS. r=mkmelin,BenB
This commit is contained in:
Родитель
802921201b
Коммит
b6de359332
|
@ -450,9 +450,6 @@ pref("browser.safebrowsing.reportPhishURL", "https://%LOCALE%.phish-report.mozil
|
||||||
// prevent status-bar spoofing even if people are foolish enough to turn on JS
|
// prevent status-bar spoofing even if people are foolish enough to turn on JS
|
||||||
pref("dom.disable_window_status_change", true);
|
pref("dom.disable_window_status_change", true);
|
||||||
|
|
||||||
// Disable Next Generation Local Storage Implementation, see bug 1515992.
|
|
||||||
pref("dom.storage.next_gen", false);
|
|
||||||
|
|
||||||
// If a message is opened using Enter or a double click, what should we do?
|
// If a message is opened using Enter or a double click, what should we do?
|
||||||
// 0 - open it in a new window
|
// 0 - open it in a new window
|
||||||
// 1 - open it in an existing window
|
// 1 - open it in an existing window
|
||||||
|
|
|
@ -24,16 +24,13 @@ function isAccel(event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the localstorage for this page in a way that works in chrome.
|
* Get fixed localstorage.
|
||||||
*
|
|
||||||
* Cribbed from
|
|
||||||
* mozilla/dom/tests/mochitest/localstorage/test_localStorageFromChrome.xhtml
|
|
||||||
*
|
*
|
||||||
* @param {String} page The page to get the localstorage for.
|
* @param {String} page The page to get the localstorage for.
|
||||||
* @return {nsIDOMStorage} The localstorage for this page.
|
* @return {nsIDOMStorage} The localstorage for this page.
|
||||||
*/
|
*/
|
||||||
function getLocalStorage(page) {
|
function getLocalStorage() {
|
||||||
var url = "chrome://content/messenger/accountProvisionerStorage/" + page;
|
var url = "https://accountprovisioner.thunderbird.invalid";
|
||||||
|
|
||||||
var uri = Services.io.newURI(url);
|
var uri = Services.io.newURI(url);
|
||||||
var principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
|
var principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
|
||||||
|
@ -1009,7 +1006,7 @@ var EmailAccountProvisioner = {
|
||||||
|
|
||||||
|
|
||||||
XPCOMUtils.defineLazyGetter(EmailAccountProvisioner, "storage", function() {
|
XPCOMUtils.defineLazyGetter(EmailAccountProvisioner, "storage", function() {
|
||||||
return getLocalStorage("accountProvisioner");
|
return getLocalStorage();
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener("online",
|
window.addEventListener("online",
|
||||||
|
|
|
@ -1201,7 +1201,7 @@ function subtest_provider_language_wildcard(aController) {
|
||||||
function test_search_button_disabled_if_no_query_on_init() {
|
function test_search_button_disabled_if_no_query_on_init() {
|
||||||
// We have to do a little bit of gymnastics to access the local storage
|
// We have to do a little bit of gymnastics to access the local storage
|
||||||
// for the accountProvisioner dialog...
|
// for the accountProvisioner dialog...
|
||||||
let url = "chrome://content/messenger/accountProvisionerStorage/accountProvisioner";
|
let url = "https://accountprovisioner.thunderbird.invalid";
|
||||||
let dsm = Services.domStorageManager;
|
let dsm = Services.domStorageManager;
|
||||||
|
|
||||||
let uri = Services.io.newURI(url);
|
let uri = Services.io.newURI(url);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче