Checking Pale Moon's version of this file, I find there is a member called isApp but marked as readonly.
Code: Select all
829 /**
830 * Returns true iff the docshell corresponds to an <iframe mozapp>.
831 */
832 [infallible] readonly attribute boolean isApp;
Is there a way to workaround the lack of this API here? For reference, I've included the function in the extension that calls this. If I comment out the call, it doesn't seem to do anything in terms of loading a webpage into a sandbox.
Code: Select all
configureWindow: function(aTab, aWindow, aId) {
this._sessionStore.setTabValue(aTab, this.TAB_DATA_IDENTIFIER,
JSON.stringify({ appId: aId }));
let docShell = aWindow.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDocShell);
if (docShell.appId == aId) {
return false;
}
debug("ID is "+aId);
// docShell.setIsApp(aId);
return true;
}