Bug 1220324 - Remove old debugging code and reenable test_x-frame-options.html. r=mrbkap

This commit is contained in:
Andrew McCreight 2015-11-03 08:34:00 +01:00
parent 81295a7fcb
commit 280819c55e
2 changed files with 0 additions and 35 deletions

View File

@ -802,7 +802,6 @@ skip-if = buildapp == 'b2g' || toolkit == 'android'
[test_websocket_permessage_deflate.html]
skip-if = buildapp == 'b2g' || toolkit == 'android'
[test_x-frame-options.html]
skip-if = buildapp == 'b2g' || toolkit == 'android' || e10s # b2g(observerservice issue) b2g-debug(observerservice issue) b2g-desktop(observerservice issue)
[test_xbl_userdata.xhtml]
[test_xhr_abort_after_load.html]
skip-if = toolkit == 'android'

View File

@ -14,38 +14,6 @@
<iframe style="width:100%;height:300px;" id="harness"></iframe>
<script class="testbody" type="text/javascript">
function examiner() {
SpecialPowers.addObserver(this, "http-on-examine-response", false);
}
examiner.prototype = {
observe: function(subject, topic, data) {
subject = SpecialPowers.wrap(subject);
if(!subject.QueryInterface)
return;
if (topic == "http-on-examine-response") {
var chan = subject.QueryInterface(SpecialPowers.Ci.nsIHttpChannel);
var uri = chan.URI
if (!uri.path.match(/^\/tests\/content\/base\/test\/file_x-frame-options_page\.sjs/))
return;
dump(">>>> PATH: "+uri.path+"\n");
dump(">>> REQUEST:\n>>> "+chan.requestMethod+" "+uri.asciiSpec+"\n");
dump(">>> RESPONSE HEADERS:\n");
chan.visitResponseHeaders({
visitHeader: function(header, value) {
dump(">>> "+header+": "+value+"\n");
}
});
}
},
remove: function() {
SpecialPowers.removeObserver(this, "http-on-examine-response");
}
}
window.examiner = new examiner();
var path = "/tests/dom/base/test/";
var testFramesLoaded = function() {
@ -171,8 +139,6 @@ var testFrameInDataURI = function() {
ok(test != null, "frame under data: URL should have loaded.");
win.close();
// finalize test
window.examiner.remove();
SimpleTest.finish();
}
win.location.href = "data:text/html,"+html;