Changeset 27435 in webkit


Ignore:
Timestamp:
Nov 5, 2007 6:30:59 AM (16 years ago)
Author:
ap
Message:

Reviewed by Darin.

http://bugs.webkit.org/show_bug.cgi?id=15841
fast/dom/Document/early-document-access.html crashes under GuardMalloc

  • fast/dom/Document/early-document-access.html: Don't check for open() timeout; wait for popup window to close as long as it takes.
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r27406 r27435  
     12007-11-05  Alexey Proskuryakov  <ap@webkit.org>
     2
     3        Reviewed by Darin.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=15841
     6        fast/dom/Document/early-document-access.html crashes under GuardMalloc
     7
     8        * fast/dom/Document/early-document-access.html: Don't check for open() timeout;
     9        wait for popup window to close as long as it takes.
     10
    1112007-11-03  Darin Adler  <darin@apple.com>
    212
  • trunk/LayoutTests/fast/dom/Document/early-document-access.html

    r25576 r27435  
    1212        if (newWindow) {
    1313            newWindow.document; // access the document
    14             setTimeout(fail, 5000); // fail if we take longer than 5 seconds
    1514        } else {
    1615            document.body.innerText = 'FAIL: window.open failed to make a window.';
    17             layoutTestController.notifyDone();
     16            if (window.layoutTestController)
     17                layoutTestController.notifyDone();
    1818        }
    1919    }
    2020
    2121    function done() {
    22         newWindow.close();
    2322        if (window.layoutTestController)
    24             setTimeout("layoutTestController.notifyDone()", 100);
     23            if (layoutTestController.windowCount() == 1)
     24                layoutTestController.notifyDone();
     25            else
     26                setTimeout("done()", 100);
    2527    }
    2628
    2729    function pass() {
    2830        document.body.innerText = 'PASS';
     31        newWindow.close();
    2932        done();
    3033    }
     
    3235    function fail() {
    3336        document.body.innerText = 'FAIL';
     37        newWindow.close();
    3438        done();
    3539    }
Note: See TracChangeset for help on using the changeset viewer.