mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Certain tests load data: URIs, blob: URIs, or otherwise do unusual things that mean we need to disable the restriction for them. Differential Revision: https://phabricator.services.mozilla.com/D46501
21 lines
603 B
JavaScript
21 lines
603 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
const URI =
|
|
"chrome://mochitests/content/browser/devtools/client" +
|
|
"/shared/sourceeditor/test/codemirror/vimemacs.html";
|
|
loadHelperScript("helper_codemirror_runner.js");
|
|
|
|
async function test() {
|
|
requestLongerTimeout(4);
|
|
waitForExplicitFinish();
|
|
|
|
// Needed for a loadFrameScript(data:) call in helper_codemirror_runner.js
|
|
await pushPref("security.allow_parent_unrestricted_js_loads", true);
|
|
|
|
const tab = await addTab(URI);
|
|
runCodeMirrorTest(tab.linkedBrowser);
|
|
}
|