Bug 51076
| Summary: | didClearWindowObject may be dispatched when window object is not cleared | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jon Honeycutt <jhoneycutt> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, cmarcelo |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Jon Honeycutt
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Jon Honeycutt
<rdar://problem/8770335>