Bug 589457 - remove delay from test_x-frame-options response, r=ehsan, a=testonly
authorBrandon Sterne <bsterne@mozilla.com>
Thu, 17 Mar 2011 09:21:13 -0700
changeset 63433 4c66d8ddc98905d2a9d0cc0b14e20aa655584525
parent 63432 d0e5ba1e0bbb490fd082ba90de4f8d5c33334bc3
child 63434 e6ce7ec66a236aa12677f6d424942de8b7106982
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersehsan, testonly
bugs589457
milestone2.0b13pre
Bug 589457 - remove delay from test_x-frame-options response, r=ehsan, a=testonly
content/base/test/file_x-frame-options_page.sjs
--- a/content/base/test/file_x-frame-options_page.sjs
+++ b/content/base/test/file_x-frame-options_page.sjs
@@ -7,17 +7,16 @@ function handleRequest(request, response
     query[name] = unescape(value);
   });
 
   response.setHeader("Cache-Control", "no-cache", false);
   response.setHeader("Content-Type", "text/html", false);
 
   // X-Frame-Options header value
   if (query['xfo'] == "deny") {
-    for (var i = 0 ; i < 0x7fffff ; i++) { }
     response.setHeader("X-Frame-Options", "DENY", false);
   }
   else if (query['xfo'] == "sameorigin") {
     response.setHeader("X-Frame-Options", "SAMEORIGIN", false);
   }
 
   // from the test harness we'll be checking for the presence of this element
   // to test if the page loaded