| Index: chrome/content/tests/policy.js |
| =================================================================== |
| --- a/chrome/content/tests/policy.js |
| +++ b/chrome/content/tests/policy.js |
| @@ -231,16 +231,31 @@ |
| '}' + |
| 'catch (e)' + |
| '{' + |
| dispatchReadyEvent + |
| '}' + |
| '</script>', |
| "http://127.0.0.1:1234/test.js", "script", false, true |
| ], |
| + [ |
| + "Beacon", |
| + '<script>' + |
| + 'try' + |
| + '{' + |
| + 'navigator.sendBeacon("test.cgi");' + |
| + 'setTimeout(function() {' + dispatchReadyEvent + '}, 500)' + |
| + '}' + |
| + 'catch (e)' + |
| + '{' + |
| + dispatchReadyEvent + |
| + '}' + |
| + '</script>', |
| + "http://127.0.0.1:1234/test.cgi", "ping", false, true |
| + ], |
| ]; |
| if (window.navigator.mimeTypes["application/x-shockwave-flash"] && window.navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) |
| { |
| tests.push([ |
| "HTML embed (Flash)", |
| '<embed type="application/x-shockwave-flash" src="test.swf"></embed>' + |
| '<script>var r = new XMLHttpRequest();r.open("GET", "", false);r.send(null);</script>', |