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
|
||||
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?
|
||||
// 0 - open it in a new 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.
|
||||
*
|
||||
* Cribbed from
|
||||
* mozilla/dom/tests/mochitest/localstorage/test_localStorageFromChrome.xhtml
|
||||
* Get fixed localstorage.
|
||||
*
|
||||
* @param {String} page The page to get the localstorage for.
|
||||
* @return {nsIDOMStorage} The localstorage for this page.
|
||||
*/
|
||||
function getLocalStorage(page) {
|
||||
var url = "chrome://content/messenger/accountProvisionerStorage/" + page;
|
||||
function getLocalStorage() {
|
||||
var url = "https://accountprovisioner.thunderbird.invalid";
|
||||
|
||||
var uri = Services.io.newURI(url);
|
||||
var principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
|
||||
|
@ -1009,7 +1006,7 @@ var EmailAccountProvisioner = {
|
|||
|
||||
|
||||
XPCOMUtils.defineLazyGetter(EmailAccountProvisioner, "storage", function() {
|
||||
return getLocalStorage("accountProvisioner");
|
||||
return getLocalStorage();
|
||||
});
|
||||
|
||||
window.addEventListener("online",
|
||||
|
|
|
@ -1201,7 +1201,7 @@ function subtest_provider_language_wildcard(aController) {
|
|||
function test_search_button_disabled_if_no_query_on_init() {
|
||||
// We have to do a little bit of gymnastics to access the local storage
|
||||
// for the accountProvisioner dialog...
|
||||
let url = "chrome://content/messenger/accountProvisionerStorage/accountProvisioner";
|
||||
let url = "https://accountprovisioner.thunderbird.invalid";
|
||||
let dsm = Services.domStorageManager;
|
||||
|
||||
let uri = Services.io.newURI(url);
|
||||
|
|
Загрузка…
Ссылка в новой задаче