RESOLVED FIXED 138690
Support multiple signatures of diagnostic logging.
https://bugs.webkit.org/show_bug.cgi?id=138690
Summary Support multiple signatures of diagnostic logging.
Jer Noble
Reported 2014-11-13 01:02:04 PST
Support multiple signatures of diagnostic logging.
Attachments
Patch (39.25 KB, patch)
2014-11-13 01:11 PST, Jer Noble
no flags
Patch (71.77 KB, patch)
2014-11-14 09:01 PST, Jer Noble
no flags
Patch (72.54 KB, patch)
2014-11-14 13:26 PST, Jer Noble
no flags
Patch (44.25 KB, patch)
2014-11-14 14:18 PST, Jer Noble
no flags
Patch (73.87 KB, patch)
2014-11-14 15:06 PST, Jer Noble
no flags
Patch (74.55 KB, patch)
2014-11-14 15:38 PST, Jer Noble
no flags
Patch (76.93 KB, patch)
2014-11-17 11:24 PST, Jer Noble
no flags
Patch (76.97 KB, patch)
2014-11-21 15:58 PST, Jer Noble
andersca: review+
Patch (77.31 KB, patch)
2014-11-21 16:43 PST, Jer Noble
no flags
Jer Noble
Comment 1 2014-11-13 01:11:31 PST
Anders Carlsson
Comment 2 2014-11-13 08:26:44 PST
I think this client should live on MainFrame instead of Page. Darin, what do you think?
Darin Adler
Comment 3 2014-11-13 20:30:36 PST
I agree. Almost anything new we think about adding to Page we could instead add to MainFrame.
Jer Noble
Comment 4 2014-11-13 21:31:32 PST
Frame/MainFrame doesn't seem to have the same kind of "client" infrastructure as page does. In fact, it looks like Page passes its own loaderClientForMainFrame into MainFrame when it creates it. Should MainFrame take a MainFrameClients struct (I guess passed into it inside of or part of PageClients) in its constructor? And what makes this all weirder is that WebPage is created first, then Page, then MainFrame, then WebFrame. So if a client is going to exist at construction time, it's got to be WebPage which creates it. We could have WebFrame set its client on MainFrame after they're all constructed, but that might result in logging messages getting dropped if we add logs which fire in between when Page is constructed and when WebFrame sets its clients on it. And WebFrame currently doesn't have any of its own clients. It's given a client by WebPage. So I guess I don't understand what makes MainFrame the best place to put these new clients?
Jer Noble
Comment 5 2014-11-13 21:42:51 PST
// FIXME: Rename this to PageConfiguration and move it to its own class. struct PageClients { ... }; This would be a lot easier if that FIXME was fixed. As it is, the class-member-class PageClients can't be forward declared.
Jer Noble
Comment 6 2014-11-14 09:01:44 PST
Jer Noble
Comment 7 2014-11-14 13:26:57 PST
WebKit Commit Bot
Comment 8 2014-11-14 13:29:05 PST
Attachment 241619 [details] did not pass style-queue: ERROR: Source/WebCore/WebCore.exp.in:0: Source/WebCore/WebCore.exp.in should be sorted, use Tools/Scripts/sort-export-file script [list/order] [5] Total errors found: 1 in 27 files If any of these errors are false positives, please file a bug against check-webkit-style.
Jer Noble
Comment 9 2014-11-14 14:18:52 PST
Jer Noble
Comment 10 2014-11-14 15:06:29 PST
Jer Noble
Comment 11 2014-11-14 15:38:31 PST
Jer Noble
Comment 12 2014-11-17 11:24:18 PST
Radar WebKit Bug Importer
Comment 13 2014-11-19 09:25:50 PST
Jer Noble
Comment 14 2014-11-21 15:58:23 PST
Jer Noble
Comment 15 2014-11-21 16:43:00 PST
Jer Noble
Comment 16 2014-11-21 21:27:05 PST
Note You need to log in before you can comment on or make changes to this bug.