RESOLVED FIXED76425
[Internals] Should be able to access corresponding Document object.
https://bugs.webkit.org/show_bug.cgi?id=76425
Summary [Internals] Should be able to access corresponding Document object.
Hajime Morrita
Reported 2012-01-16 21:03:59 PST
window.internals.foo(document....) looks too verbose. we can omit the first document parameter.
Attachments
Patch (6.73 KB, patch)
2012-01-17 00:15 PST, Hajime Morrita
no flags
Patch for landing (11.84 KB, patch)
2012-01-17 02:27 PST, Hajime Morrita
no flags
Patch for landing (11.74 KB, patch)
2012-01-17 17:24 PST, Hajime Morrita
no flags
Patch (10.17 KB, patch)
2012-01-17 20:56 PST, Hajime Morrita
no flags
Patch for landing (11.74 KB, patch)
2012-01-17 21:29 PST, Hajime Morrita
no flags
Hajime Morrita
Comment 1 2012-01-17 00:15:17 PST
Hajime Morrita
Comment 2 2012-01-17 00:17:42 PST
Hi Dimitri, could you take a look? Using FrameDestructionObserver allows us to access Frame (and Document) without affecting their lifetime. It doesn't touch the reference counts.
Adam Barth
Comment 3 2012-01-17 01:25:54 PST
Comment on attachment 122723 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=122723&action=review > Source/WebCore/page/FrameDestructionObserver.cpp:42 > + Looks like you've got an extra blank line here. > Source/WebCore/page/FrameDestructionObserver.h:37 > + void observe(Frame*); I wonder if we should pick a longer name for this function given that this class will be used as a base class for many other classes. Maybe "observeFrame" ? I leave that up to your judgement. (Please fix the Windows build before landing.)
Adam Barth
Comment 4 2012-01-17 01:26:12 PST
Nice idea, by the way.
Hajime Morrita
Comment 5 2012-01-17 02:27:37 PST
Created attachment 122738 [details] Patch for landing
Hajime Morrita
Comment 6 2012-01-17 02:29:19 PST
Comment on attachment 122738 [details] Patch for landing Clearing cq?, waiting for the win bot being green.
Hajime Morrita
Comment 7 2012-01-17 02:32:34 PST
> Nice idea, by the way. Yeah, such kind of extensibility like FrameDestructionObserver is helpful, not only for testing, but also for the Modules system you are working on. I hope "client" objects for modularized API could be attached to WebCore objects without touching the core part by similar manner.
Early Warning System Bot
Comment 8 2012-01-17 02:42:50 PST
Comment on attachment 122738 [details] Patch for landing Attachment 122738 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/11117146
Adam Barth
Comment 9 2012-01-17 02:52:38 PST
Comment on attachment 122738 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=122738&action=review > Source/WebCore/page/FrameDestructionObserver.h:37 > + void observeFrame(Frame*); One more thought: should this method be protected? It's probably something that will be called by subclasses but not exposed to others, right?
Gyuyoung Kim
Comment 10 2012-01-17 02:53:14 PST
Comment on attachment 122738 [details] Patch for landing Attachment 122738 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/11111162
WebKit Review Bot
Comment 11 2012-01-17 02:56:11 PST
Comment on attachment 122738 [details] Patch for landing Attachment 122738 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11267133
Collabora GTK+ EWS bot
Comment 12 2012-01-17 06:39:44 PST
Comment on attachment 122738 [details] Patch for landing Attachment 122738 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/11267180
Hajime Morrita
Comment 13 2012-01-17 16:55:17 PST
(In reply to comment #9) > > Source/WebCore/page/FrameDestructionObserver.h:37 > > + void observeFrame(Frame*); > > One more thought: should this method be protected? It's probably something that will be called by subclasses but not exposed to others, right? Right. Will do before landing.
Hajime Morrita
Comment 14 2012-01-17 17:24:09 PST
Created attachment 122846 [details] Patch for landing
Hajime Morrita
Comment 15 2012-01-17 20:56:40 PST
Hajime Morrita
Comment 16 2012-01-17 21:29:29 PST
Created attachment 122870 [details] Patch for landing
WebKit Review Bot
Comment 17 2012-01-17 22:55:17 PST
Comment on attachment 122870 [details] Patch for landing Clearing flags on attachment: 122870 Committed r105245: <http://trac.webkit.org/changeset/105245>
WebKit Review Bot
Comment 18 2012-01-17 22:55:23 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.