зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1486630 - Remove _manifestURI field and handling of the MozApplicationManifest message. r=mconley
Remove the _manifestURI field and handling of the MozApplicationManifest message. Differential Revision: https://phabricator.services.mozilla.com/D5336 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
3d83d6e742
Коммит
960d3048f8
|
@ -32,15 +32,6 @@ class OfflineAppsChild extends ActorChild {
|
||||||
|
|
||||||
handleEvent(event) {
|
handleEvent(event) {
|
||||||
if (event.type == "MozApplicationManifest") {
|
if (event.type == "MozApplicationManifest") {
|
||||||
let doc = event.target;
|
|
||||||
let info = {
|
|
||||||
uri: doc.documentURI,
|
|
||||||
characterSet: doc.characterSet,
|
|
||||||
manifest: doc.documentElement.getAttribute("manifest"),
|
|
||||||
principal: doc.nodePrincipal,
|
|
||||||
};
|
|
||||||
this.mm.sendAsyncMessage("MozApplicationManifest", info);
|
|
||||||
|
|
||||||
this.offlineAppRequested(event.originalTarget.defaultView);
|
this.offlineAppRequested(event.originalTarget.defaultView);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,6 @@ const SWAPPED_BROWSER_STATE = [
|
||||||
"_textZoom",
|
"_textZoom",
|
||||||
"_isSyntheticDocument",
|
"_isSyntheticDocument",
|
||||||
"_innerWindowID",
|
"_innerWindowID",
|
||||||
"_manifestURI",
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1360,7 +1360,6 @@
|
||||||
"_textZoom",
|
"_textZoom",
|
||||||
"_isSyntheticDocument",
|
"_isSyntheticDocument",
|
||||||
"_innerWindowID",
|
"_innerWindowID",
|
||||||
"_manifestURI",
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -400,7 +400,6 @@
|
||||||
this.messageManager.addMessageListener("FullZoomChange", this);
|
this.messageManager.addMessageListener("FullZoomChange", this);
|
||||||
this.messageManager.addMessageListener("TextZoomChange", this);
|
this.messageManager.addMessageListener("TextZoomChange", this);
|
||||||
this.messageManager.addMessageListener("ZoomChangeUsingMouseWheel", this);
|
this.messageManager.addMessageListener("ZoomChangeUsingMouseWheel", this);
|
||||||
this.messageManager.addMessageListener("MozApplicationManifest", this);
|
|
||||||
|
|
||||||
// browser-child messages, such as Content:LocationChange, are handled in
|
// browser-child messages, such as Content:LocationChange, are handled in
|
||||||
// RemoteWebProgress, ensure it is loaded and ready.
|
// RemoteWebProgress, ensure it is loaded and ready.
|
||||||
|
@ -529,10 +528,6 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case "MozApplicationManifest":
|
|
||||||
this._manifestURI = aMessage.data.manifest;
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Delegate to browser.xml.
|
// Delegate to browser.xml.
|
||||||
return this._receiveMessage(aMessage);
|
return this._receiveMessage(aMessage);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче