Summary: | HistoryController should point back to FrameLoader not Frame | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adam Barth <abarth> | ||||||
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED WORKSFORME | ||||||||
Severity: | Normal | CC: | eric | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 29947 | ||||||||
Attachments: |
|
Description
Adam Barth
2009-10-10 02:27:09 PDT
Created attachment 40987 [details]
Patch v1
Created attachment 40988 [details]
HistoryController back pointer
Comment on attachment 40988 [details]
HistoryController back pointer
I think this is OK either way.
Pointing back to the frame is OK because everybody points back to the frame. It's all one big frame-lifetime-associated family of objects.
Pointing back to the frame loader is OK because the frame loader is the immediate owner of the history controller, and it's the thing the creates and destroys the history controller.
I have a hard time getting strong feelings either way.
The part I don't like is functions that are only needed once per page on the main frame that exist here on a pre-frame object.
r=me, and you can decide whether or not to land this. I really have no preference.
I think I'm going to leave this as-is. Thanks for your comments. |