Changeset 53055 in webkit


Ignore:
Timestamp:
Jan 10, 2010 4:38:16 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-10 Adam Barth <abarth@webkit.org>

Reviewed by Nikolas Zimmermann.

http/tests/security/xss-DENIED-window-open-javascript-url.html timed out on Windows Debug Bot
https://bugs.webkit.org/show_bug.cgi?id=33349

Previously we were using JavaScript URLs to return to the main event
loop, but that is potentially unreliable because there can be only one
scheduled redirect in flight per frame. Let's try using setTimeout
instead. Notice that there isn't a race condition here because the
event loop will always dispatch the actions in the proper order.

  • http/tests/security/xss-DENIED-window-open-javascript-url.html:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r53048 r53055  
     12010-01-10  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Nikolas Zimmermann.
     4
     5        http/tests/security/xss-DENIED-window-open-javascript-url.html timed out on Windows Debug Bot
     6        https://bugs.webkit.org/show_bug.cgi?id=33349
     7
     8        Previously we were using JavaScript URLs to return to the main event
     9        loop, but that is potentially unreliable because there can be only one
     10        scheduled redirect in flight per frame.  Let's try using setTimeout
     11        instead.  Notice that there isn't a race condition here because the
     12        event loop will always dispatch the actions in the proper order.
     13
     14        * http/tests/security/xss-DENIED-window-open-javascript-url.html:
     15
    1162010-01-09  Daniel Bates  <dbates@webkit.org>
    217
  • trunk/LayoutTests/http/tests/security/xss-DENIED-window-open-javascript-url.html

    r52401 r53055  
    88}
    99function runTest() {
     10    // Schedule a return to the main event loop so that the javascript: URL
     11    // has a chance to run.
     12    setTimeout(done, 0);
    1013    window.open("javascript:alert('FAIL')", "tg");
    11     window.open("javascript:done()", "_self");
    1214}
    1315function done() {
Note: See TracChangeset for help on using the changeset viewer.