mirror of
https://github.com/Feodor2/Mypal68.git
synced 2025-06-19 07:15:36 -04:00
32 lines
728 B
JavaScript
32 lines
728 B
JavaScript
/* global SpecialPowers */
|
|
|
|
var gTestURL = "";
|
|
|
|
function addPermissions() {
|
|
SpecialPowers.pushPermissions(
|
|
[{ type: "browser", allow: true, context: document }],
|
|
addPreferences
|
|
);
|
|
}
|
|
|
|
function addPreferences() {
|
|
SpecialPowers.pushPrefEnv(
|
|
{ set: [["dom.mozBrowserFramesEnabled", true]] },
|
|
insertFrame
|
|
);
|
|
}
|
|
|
|
function insertFrame() {
|
|
SpecialPowers.nestedFrameSetup();
|
|
|
|
var iframe = document.createElement("iframe");
|
|
iframe.id = "nested-parent-frame";
|
|
iframe.width = "100%";
|
|
iframe.height = "100%";
|
|
iframe.scoring = "no";
|
|
iframe.setAttribute("remote", "true");
|
|
iframe.setAttribute("mozbrowser", "true");
|
|
iframe.src = gTestURL;
|
|
document.getElementById("holder-div").appendChild(iframe);
|
|
}
|