Bug 51076 - didClearWindowObject may be dispatched when window object is not cleared
Summary: didClearWindowObject may be dispatched when window object is not cleared
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-12-14 17:06 PST by Jon Honeycutt
Modified: 2011-10-13 07:03 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Honeycutt 2010-12-14 17:06:23 PST
FrameLoader::receivedFirstData() calls DocumentWriter::begin(), which is responsible for clearing the window object before loading new content. If a frame is showing the initial empty document, and the URL we're transitioning to is in the same security origin, DocumentWriter::begin() will choose not to clear the window object.

After DocumentWriter::begin() returns, FrameLoader::receivedFirstData() dispatches the didClearWindowObject callback - whether or not the window object was cleared.
Comment 1 Jon Honeycutt 2010-12-14 17:52:40 PST
<rdar://problem/8770335>