Commit d6484f7d authored by Wladimir Palant's avatar Wladimir Palant

Issue 3814 - Opening sharing pop-up fails starting with Firefox 47

parent 52f6a930
...@@ -73,10 +73,20 @@ ...@@ -73,10 +73,20 @@
try try
{ {
var Ci = Components.interfaces; var Ci = Components.interfaces;
iframe.contentWindow var docShell = iframe.contentWindow
.QueryInterface(Ci.nsIInterfaceRequestor) .QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDocShell) .getInterface(Ci.nsIDocShell);
.setIsBrowserInsideApp(Ci.nsIScriptSecurityManager.UNKNOWN_APP_ID);
if (typeof docShell.frameType != "undefined")
{
// Gecko 47+
docShell.frameType = docShell.FRAME_TYPE_BROWSER;
}
else
{
// Legacy branch
docShell.setIsBrowserInsideApp(Ci.nsIScriptSecurityManager.UNKNOWN_APP_ID);
}
} }
catch(ex) catch(ex)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment