Bug 1915045 Ensure decode tasks are scheduled on BufferingState::Enter() r=media...
[gecko.git] / js / xpconnect / tests / mochitest / file_bug650273.html
blob5fe33e9695f30635c0671faa2e0c025abc87a074
1 <!-- test by moz_bug_r_a4@yahoo.com -->
2 <body onload="a()">
3 <script>
4 var targetUrl = "http://example.com/";
5 var l;
7 function a() {
8 var o = {};
9 o.toString = function() {
10 l();
11 return "a";
13 var f = Object.getOwnPropertyDescriptor(Document.prototype, "title").set;
14 setTimeout(f.bind(document), 0, o);
17 function l() {
18 var l = false;
19 onunload = function() {
20 l = true;
22 location = targetUrl;
23 do {
24 var r = new XMLHttpRequest();
25 r.open("GET", location.href, false);
26 r.overrideMimeType("text/plain");
27 try { r.send(null); }
28 catch (e) {}
29 } while (!l);
31 </script>