| Summary: | [WK2] Crash when accessing window.localStorage after calling window.close() | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||||
| Component: | WebCore Misc. | Assignee: | Daniel Bates <dbates> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | aestes, ap, beidson, ddkilzer, sam | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Daniel Bates
2014-07-27 15:49:15 PDT
Created attachment 235583 [details]
Patch
Comment on attachment 235583 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=235583&action=review > Source/WebCore/page/Page.h:329 > + bool willCloseWindowSoon() const { return m_willCloseWindowSoon && isInWindow(); } Does this work for background tabs? I'm not clear on what the isInWindow() case is trying to achieve. > Source/WebCore/page/Page.h:597 > + bool m_willCloseWindowSoon; I think a better name would be something along the lines of m_isClosing. (In reply to comment #3) > (From update of attachment 235583 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=235583&action=review > > > Source/WebCore/page/Page.h:329 > > + bool willCloseWindowSoon() const { return m_willCloseWindowSoon && isInWindow(); } > > Does this work for background tabs? I'm not clear on what the isInWindow() case is trying to achieve. As per our in-person conversation, it's sufficient to remove the isInWindow() conjunct. I will also remove the ASSERT(isInWindow()) from the corresponding getter function. > > > Source/WebCore/page/Page.h:597 > > + bool m_willCloseWindowSoon; > > I think a better name would be something along the lines of m_isClosing. Will rename. Created attachment 235585 [details]
Patch
Committed r171661: <http://trac.webkit.org/changeset/171661> Filed bug #135330 to consider allowing access/modification to window.localStorage after calling window.close(). |