Bug 1381771 - Part 1: fix mc1 failures in devtools/ when data: URI is unique origin. r=pbro

This commit is contained in:
Yoshi Huang 2017-07-21 14:43:34 +08:00
Родитель b0af7fe549
Коммит ac1cdfa157
6 изменённых файлов: 14 добавлений и 12 удалений

Просмотреть файл

@ -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);