зеркало из https://github.com/mozilla/gecko-dev.git
Remove <a ping> test from the content policies test as per bug 415168.
This commit is contained in:
Родитель
5adc019519
Коммит
a093dfef93
|
@ -77,7 +77,7 @@ var categoryManager = Cc["@mozilla.org/categorymanager;1"].getService(Ci.nsICate
|
||||||
categoryManager.addCategoryEntry("content-policy", policyName, policyName, false, true);
|
categoryManager.addCategoryEntry("content-policy", policyName, policyName, false, true);
|
||||||
|
|
||||||
// Try creating different request types
|
// Try creating different request types
|
||||||
var tests = ["SCRIPT", "IMAGE", "STYLESHEET", "OBJECT", "DOCUMENT", "SUBDOCUMENT", "XBL", "PING", "XMLHTTPREQUEST"];
|
var tests = ["SCRIPT", "IMAGE", "STYLESHEET", "OBJECT", "DOCUMENT", "SUBDOCUMENT", "XBL", "XMLHTTPREQUEST"];
|
||||||
var curTest = -1;
|
var curTest = -1;
|
||||||
|
|
||||||
SimpleTest.waitForExplicitFinish();
|
SimpleTest.waitForExplicitFinish();
|
||||||
|
@ -171,19 +171,6 @@ function request_xbl() {
|
||||||
document.addBinding(div, testURL);
|
document.addBinding(div, testURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
function request_ping() {
|
|
||||||
var content = $("content");
|
|
||||||
|
|
||||||
var a = document.createElement("a");
|
|
||||||
a.setAttribute("href", "javascript:void(0)");
|
|
||||||
a.setAttribute("ping", testURL);
|
|
||||||
content.appendChild(a);
|
|
||||||
|
|
||||||
var event = document.createEvent("MouseEvents");
|
|
||||||
event.initMouseEvent("click", true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
|
|
||||||
a.dispatchEvent(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
function request_xmlhttprequest() {
|
function request_xmlhttprequest() {
|
||||||
var request = new XMLHttpRequest();
|
var request = new XMLHttpRequest();
|
||||||
request.open("GET", testURL, false);
|
request.open("GET", testURL, false);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче