| OLD | NEW |
| 1 (function() | 1 (function() |
| 2 { | 2 { |
| 3 let server = null; | 3 let server = null; |
| 4 let frame = null; | 4 let frame = null; |
| 5 let requestNotifier = null; | 5 let requestNotifier = null; |
| 6 let httpProtocol = null; | 6 let httpProtocol = null; |
| 7 | 7 |
| 8 module("Content policy", { | 8 module("Content policy", { |
| 9 setup: function() | 9 setup: function() |
| 10 { | 10 { |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 dispatchReadyEvent + | 229 dispatchReadyEvent + |
| 230 '};' + | 230 '};' + |
| 231 '}' + | 231 '}' + |
| 232 'catch (e)' + | 232 'catch (e)' + |
| 233 '{' + | 233 '{' + |
| 234 dispatchReadyEvent + | 234 dispatchReadyEvent + |
| 235 '}' + | 235 '}' + |
| 236 '</script>', | 236 '</script>', |
| 237 "http://127.0.0.1:1234/test.js", "script", false, true | 237 "http://127.0.0.1:1234/test.js", "script", false, true |
| 238 ], | 238 ], |
| 239 [ |
| 240 "Beacon", |
| 241 '<script>' + |
| 242 'try' + |
| 243 '{' + |
| 244 'navigator.sendBeacon("test.cgi");' + |
| 245 'setTimeout(function() {' + dispatchReadyEvent + '}, 500)' + |
| 246 '}' + |
| 247 'catch (e)' + |
| 248 '{' + |
| 249 dispatchReadyEvent + |
| 250 '}' + |
| 251 '</script>', |
| 252 "http://127.0.0.1:1234/test.cgi", "ping", false, true |
| 253 ], |
| 239 ]; | 254 ]; |
| 240 | 255 |
| 241 if (window.navigator.mimeTypes["application/x-shockwave-flash"] && window.navi
gator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) | 256 if (window.navigator.mimeTypes["application/x-shockwave-flash"] && window.navi
gator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) |
| 242 { | 257 { |
| 243 tests.push([ | 258 tests.push([ |
| 244 "HTML embed (Flash)", | 259 "HTML embed (Flash)", |
| 245 '<embed type="application/x-shockwave-flash" src="test.swf"></embed>' + | 260 '<embed type="application/x-shockwave-flash" src="test.swf"></embed>' + |
| 246 '<script>var r = new XMLHttpRequest();r.open("GET", "", false);r.send(nu
ll);</script>', | 261 '<script>var r = new XMLHttpRequest();r.open("GET", "", false);r.send(nu
ll);</script>', |
| 247 "http://127.0.0.1:1234/test.swf", "object", false, false | 262 "http://127.0.0.1:1234/test.swf", "object", false, false |
| 248 ], | 263 ], |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 for (let stage = 1; stage in stageDescriptions; stage++) | 444 for (let stage = 1; stage in stageDescriptions; stage++) |
| 430 { | 445 { |
| 431 let stageDescription = stageDescriptions[stage]; | 446 let stageDescription = stageDescriptions[stage]; |
| 432 if (stageDescription.indexOf("%S") >= 0) | 447 if (stageDescription.indexOf("%S") >= 0) |
| 433 stageDescription = stageDescription.replace("%S", expectedURL); | 448 stageDescription = stageDescription.replace("%S", expectedURL); |
| 434 | 449 |
| 435 asyncTest(name + " (" + stageDescription + ")", runTest.bind(null, tests[t
est], stage)); | 450 asyncTest(name + " (" + stageDescription + ")", runTest.bind(null, tests[t
est], stage)); |
| 436 } | 451 } |
| 437 } | 452 } |
| 438 })(); | 453 })(); |
| OLD | NEW |