|
|
|
|
Quelle test_bug292789.html
Sprache: HTML
|
|
| products/Sources/formale Sprachen/C/Firefox/caps/tests/mochitest/test_bug292789.html |
 |
<! DOCTYPE HTML>
< html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=292789
-->
< head>
< title>Test for Bug 292789</ title>
< script src= "/tests/SimpleTest/SimpleTest.js"></ script>
< link rel= "stylesheet" type= "text/css" href= "/tests/SimpleTest/test.css" />
</ head>
< body>
<a target= "_blank" href= "https://bugzilla.mozilla.org/show_bug.cgi?id=292789">Mozill a Bug 292789</a>
<p id="display"></p>
<div id="content" style="display: none">
<script src="chrome://global/content/treeUtils.js"></script>
<script type="application/javascript" src="chrome://mozapps/content/update/history.js"></script>
<script id="resjs" type="application/javascript"></script>
</div>
<pre id="test">
<script class="testbody" type="text/javascript">
/** Test for Bug 292789
*
* Selectively allow access to allowlisted chrome packages
* even for ALLOW_CHROME mechanisms (<script>, <img> etc)
*/
/* import-globals-from ../../../toolkit/content/treeUtils.js */
/* import-globals-from ../../../toolkit/mozapps/update/content/history.js */
SimpleTest.waitForExplicitFinish();
let ChromeUtils = {
import() { return {}; },
};
/** <script src=""> test */
function testScriptSrc(aCallback) {
is(typeof gTreeUtils.sort, "function",
"content can still load
|
2026-04-04
|
|
|
|
|