Bug 45351 - pushstate-clears-forward-history.html crashes with Chromium DRT
Summary: pushstate-clears-forward-history.html crashes with Chromium DRT
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Mihai Parparita
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 18:27 PDT by Mihai Parparita
Modified: 2010-09-08 22:18 PDT (History)
3 users (show)

See Also:


Attachments
Patch (3.17 KB, patch)
2010-09-07 18:35 PDT, Mihai Parparita
no flags Details | Formatted Diff | Diff
Patch (3.22 KB, patch)
2010-09-08 08:56 PDT, Mihai Parparita
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mihai Parparita 2010-09-07 18:27:33 PDT
pushstate-clears-forward-history.html crashes with Chromium DRT
Comment 1 Mihai Parparita 2010-09-07 18:35:44 PDT
Created attachment 66821 [details]
Patch
Comment 2 Mihai Parparita 2010-09-07 18:37:47 PDT
Dimitri, since you suggested that I look at this, perhaps you can review too :)

Darin, this is mostly a FYI, in case I'm misunderstanding something about popstate firing synchronously and bad things that happen because of that.
Comment 3 Darin Fisher (:fishd, Google) 2010-09-07 22:33:48 PDT
Comment on attachment 66821 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=66821&action=prettypatch

> LayoutTests/fast/loader/stateobjects/popstate-fires-with-page-cache.html:50
> +            setTimeout(function() { testWindow.close(); finishJSTest(); }, 0);
readability nit:

setTimeout(function() {
    testWindow.close();
    finishJSTest();
}, 0);

That way it is easy to set breakpoints too in the JS debugger.
Comment 4 Mihai Parparita 2010-09-08 08:56:53 PDT
Created attachment 66902 [details]
Patch
Comment 5 Mihai Parparita 2010-09-08 08:57:17 PDT
(In reply to comment #3)
> readability nit:
> setTimeout(function() {
>     testWindow.close();
>     finishJSTest();
> }, 0);

Fixed in new version of the patch.
Comment 6 Dimitri Glazkov (Google) 2010-09-08 09:10:46 PDT
Comment on attachment 66902 [details]
Patch

k.
Comment 7 WebKit Commit Bot 2010-09-08 22:18:54 PDT
Comment on attachment 66902 [details]
Patch

Clearing flags on attachment: 66902

Committed r67060: <http://trac.webkit.org/changeset/67060>
Comment 8 WebKit Commit Bot 2010-09-08 22:18:58 PDT
All reviewed patches have been landed.  Closing bug.