зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1381771 - Part 1: fix mc1 failures in devtools/ when data: URI is unique origin. r=pbro
This commit is contained in:
Родитель
b0af7fe549
Коммит
ac1cdfa157
|
@ -3,10 +3,13 @@ tags = devtools
|
|||
skip-if = os == 'android'
|
||||
support-files =
|
||||
animation-data.html
|
||||
doc_Debugger.Source.prototype.introductionType.xul
|
||||
Debugger.Source.prototype.element.js
|
||||
Debugger.Source.prototype.element-2.js
|
||||
Debugger.Source.prototype.element.html
|
||||
hello-actor.js
|
||||
iframe1_makeGlobalObjectReference.html
|
||||
iframe2_makeGlobalObjectReference.html
|
||||
inspector_css-properties.html
|
||||
inspector_getImageData.html
|
||||
inspector_getOffsetParent.html
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0"?>
|
||||
<window xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'>
|
||||
<script id='xulie'>function xulScriptFunc() { debugger; }</script>
|
||||
</window>
|
|
@ -0,0 +1 @@
|
|||
<html>The word 'smorgasbord' spoken by an adorably plump child, symbolizing prosperity</html>
|
|
@ -0,0 +1 @@
|
|||
<html>Her retrospection, in hindsight, was prescient.</html>
|
|
@ -33,9 +33,8 @@ window.onload = function () {
|
|||
addTest(function setup() {
|
||||
// Create an iframe to debug.
|
||||
let iframe = document.createElement("iframe");
|
||||
iframe.src = "data:text/html," +
|
||||
"<div id='Tootles' onclick='debugger;'>I'm a DIV!</div>" +
|
||||
"<script id='Auddie'>function auddie() { debugger; }<\/script>";
|
||||
iframe.srcdoc = "<div id='Tootles' onclick='debugger;'>I'm a DIV!</div>" +
|
||||
"<script id='Auddie'>function auddie() { debugger; }<\/script>";
|
||||
iframe.onload = onLoadHandler;
|
||||
document.body.appendChild(iframe);
|
||||
|
||||
|
@ -140,11 +139,7 @@ addTest(function InsertRover() {
|
|||
// Create a XUL document with a script element, and check its introduction type.
|
||||
addTest(function XULDocumentScript() {
|
||||
let xulFrame = document.createElement("iframe");
|
||||
xulFrame.src = "data:application/vnd.mozilla.xul+xml;charset=utf-8," +
|
||||
"<?xml version=\"1.0\"?>" +
|
||||
"<window xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul'>" +
|
||||
"<script id='xulie'>function xulScriptFunc() { debugger; }<\/script>" +
|
||||
"</window>";
|
||||
xulFrame.src = "doc_Debugger.Source.prototype.introductionType.xul";
|
||||
xulFrame.onload = xulLoaded;
|
||||
info("Appending iframe containing XUL document");
|
||||
document.body.appendChild(xulFrame);
|
||||
|
|
|
@ -24,8 +24,7 @@ window.onload = function () {
|
|||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
let iframe = document.createElement("iframe");
|
||||
iframe.src = "data:text/html,<html>The word 'smorgasbord'," +
|
||||
" spoken by an adorably plump child, symbolizing prosperity</html>";
|
||||
iframe.src = "iframe1_makeGlobalObjectReference.html";
|
||||
iframe.onload = iframeOnLoad;
|
||||
document.body.appendChild(iframe);
|
||||
|
||||
|
@ -66,8 +65,7 @@ window.onload = function () {
|
|||
"hasDebuggee can take a D.O referring to the outer window");
|
||||
|
||||
let iframe2 = document.createElement("iframe");
|
||||
iframe2.src = "data:text/html,<html>Her retrospection," +
|
||||
" in hindsight, was prescient.</html>";
|
||||
iframe2.src = "iframe2_makeGlobalObjectReference.html";
|
||||
iframe2.onload = iframe2OnLoad;
|
||||
document.body.appendChild(iframe2);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче