Bug 111578

Summary: Web Inspector: split Console into two entities, a web-facing bound object and page console.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Sergey Ryazanov <serya>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, apavlov, buildbot, dglazkov, esprehn+autocc, gyuyoung.kim, haraken, japhet, keishi, loislo, mkwst+watchlist, ojan.autocc, pfeldman, pmuellr, rakuco, rego+ews, rniwa, serya, vsevik, web-inspector-bugs, webkit-ews, webkit.review.bot, xan.lopez, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Pavel Feldman
Reported 2013-03-06 07:10:14 PST
Otherwise, a lot of logging in WebCore needs to go through the DOMWindow which is unnecessary.
Attachments
Patch (41.81 KB, patch)
2013-03-06 08:52 PST, Pavel Feldman
no flags
Patch (42.96 KB, patch)
2013-03-06 10:30 PST, Pavel Feldman
no flags
Patch (41.40 KB, patch)
2013-03-14 11:01 PDT, Sergey Ryazanov
no flags
Patch (41.40 KB, patch)
2013-03-15 01:40 PDT, Sergey Ryazanov
no flags
Patch (41.42 KB, patch)
2013-03-15 02:26 PDT, Sergey Ryazanov
no flags
Patch (43.64 KB, patch)
2013-03-15 03:53 PDT, Sergey Ryazanov
no flags
Patch (46.17 KB, patch)
2013-03-15 05:19 PDT, Sergey Ryazanov
no flags
Patch (47.69 KB, patch)
2013-03-16 02:03 PDT, Sergey Ryazanov
no flags
Patch (47.97 KB, patch)
2013-03-16 15:30 PDT, Sergey Ryazanov
no flags
Patch (48.41 KB, patch)
2013-03-18 23:38 PDT, Sergey Ryazanov
no flags
Patch (48.41 KB, patch)
2013-03-19 00:19 PDT, Sergey Ryazanov
no flags
Patch (48.21 KB, patch)
2013-03-19 04:45 PDT, Sergey Ryazanov
no flags
Patch (48.25 KB, patch)
2013-03-19 05:56 PDT, Sergey Ryazanov
no flags
Patch (48.11 KB, patch)
2013-03-19 08:13 PDT, Sergey Ryazanov
no flags
Pavel Feldman
Comment 1 2013-03-06 08:52:34 PST
Early Warning System Bot
Comment 2 2013-03-06 09:05:32 PST
Build Bot
Comment 3 2013-03-06 09:16:37 PST
Early Warning System Bot
Comment 4 2013-03-06 09:18:26 PST
EFL EWS Bot
Comment 5 2013-03-06 09:28:09 PST
WebKit Review Bot
Comment 6 2013-03-06 09:49:50 PST
Comment on attachment 191760 [details] Patch Attachment 191760 [details] did not pass chromium-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17073145 New failing tests: fast/xsl/xslt-mismatched-tags-in-xslt.xml fast/xsl/xslt-missing-namespace-in-xslt.xml
Pavel Feldman
Comment 7 2013-03-06 10:30:46 PST
Build Bot
Comment 8 2013-03-06 11:15:38 PST
Sergey Ryazanov
Comment 9 2013-03-14 11:01:04 PDT
Early Warning System Bot
Comment 10 2013-03-14 11:11:52 PDT
Early Warning System Bot
Comment 11 2013-03-14 11:19:48 PDT
Build Bot
Comment 12 2013-03-14 11:44:14 PDT
WebKit Review Bot
Comment 13 2013-03-14 12:20:36 PDT
Comment on attachment 193152 [details] Patch Attachment 193152 [details] did not pass chromium-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/16996290 New failing tests: fast/xsl/xslt-mismatched-tags-in-xslt.xml fast/xsl/xslt-missing-namespace-in-xslt.xml
Build Bot
Comment 14 2013-03-14 12:29:26 PDT
Build Bot
Comment 15 2013-03-14 12:32:26 PDT
EFL EWS Bot
Comment 16 2013-03-14 12:51:32 PDT
WebKit Review Bot
Comment 17 2013-03-14 13:18:55 PDT
Comment on attachment 193152 [details] Patch Attachment 193152 [details] did not pass chromium-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17176167 New failing tests: fast/xsl/xslt-mismatched-tags-in-xslt.xml fast/xsl/xslt-missing-namespace-in-xslt.xml
Sergey Ryazanov
Comment 18 2013-03-15 01:40:10 PDT
Early Warning System Bot
Comment 19 2013-03-15 01:53:45 PDT
Early Warning System Bot
Comment 20 2013-03-15 01:56:44 PDT
EFL EWS Bot
Comment 21 2013-03-15 02:05:15 PDT
Build Bot
Comment 22 2013-03-15 02:19:26 PDT
Sergey Ryazanov
Comment 23 2013-03-15 02:26:34 PDT
WebKit Review Bot
Comment 24 2013-03-15 03:35:41 PDT
Comment on attachment 193261 [details] Patch Attachment 193261 [details] did not pass chromium-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17060887 New failing tests: fast/xsl/xslt-mismatched-tags-in-xslt.xml fast/xsl/xslt-missing-namespace-in-xslt.xml
Sergey Ryazanov
Comment 25 2013-03-15 03:53:07 PDT
Mike West
Comment 26 2013-03-15 04:05:16 PDT
Comment on attachment 193275 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=193275&action=review > Source/WebCore/bindings/js/JSCustomXPathNSResolver.cpp:82 > + if (console) Nit: I believe the accepted WebKit style here would be to inline the assignment. That is `if (PageConsole* console = m_globalObject->impl()->pageConsole())`. > Source/WebCore/dom/Document.cpp:4819 > + if (p) Nit: Inline the assignment, and prefer complete words for variable names: 'page' rather than 'p'. > Source/WebCore/dom/Document.cpp:4831 > + if (p) Nit: Same as above. > Source/WebCore/page/DOMWindow.h:236 > Console* console() const; Do we still need access to the Console from DOMWindow, or will PageConsole fill the external requirements? It would be nice if external callers only had one option; otherwise they'll likely make the wrong choice. If possible, I'd suggest removing DOMWindow::console, or making it private.
Build Bot
Comment 27 2013-03-15 04:42:52 PDT
WebKit Review Bot
Comment 28 2013-03-15 04:43:19 PDT
Comment on attachment 193275 [details] Patch Attachment 193275 [details] did not pass chromium-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17145279 New failing tests: fast/xsl/xslt-mismatched-tags-in-xslt.xml fast/xsl/xslt-missing-namespace-in-xslt.xml
Sergey Ryazanov
Comment 29 2013-03-15 05:19:17 PDT
WebKit Review Bot
Comment 30 2013-03-15 06:10:02 PDT
Comment on attachment 193285 [details] Patch Attachment 193285 [details] did not pass chromium-ews (chromium-xvfb): Output: http://webkit-commit-queue.appspot.com/results/17207241 New failing tests: fast/xsl/xslt-mismatched-tags-in-xslt.xml fast/xsl/xslt-missing-namespace-in-xslt.xml
Build Bot
Comment 31 2013-03-15 06:41:12 PDT
Build Bot
Comment 32 2013-03-15 07:18:27 PDT
Build Bot
Comment 33 2013-03-15 09:50:56 PDT
Sergey Ryazanov
Comment 34 2013-03-16 02:03:40 PDT
Sergey Ryazanov
Comment 35 2013-03-16 15:30:49 PDT
Vsevolod Vlasov
Comment 36 2013-03-18 06:46:23 PDT
Comment on attachment 193448 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=193448&action=review > Source/WebCore/ChangeLog:10 > + No new tests (OOPS!). Please remove this line, otherwise commit queue won't let you commit the patch. > Source/WebCore/bindings/js/JSCustomXPathNSResolver.cpp:-80 > - // FIXME: Pass actual line number and source URL. Please keep FIXME here. > Source/WebCore/dom/Document.cpp:127 > +#include "PageConsole.h" Do we still need to include Console.h here? > Source/WebCore/dom/Document.cpp:4848 > + Page* p = page(); Page* page = ... > Source/WebCore/dom/Document.cpp:4861 > + if (p) Ditto > Source/WebCore/page/Console.h:81 > static void mute(); Should be removed. > Source/WebCore/page/Console.h:82 > static void unmute(); Ditto > Source/WebCore/page/Console.h:-99 > - inline Page* page() const; Why did you remove this? > Source/WebCore/xml/XSLStyleSheetLibxslt.cpp:27 > #include "DOMWindow.h" Could be removed now. > Source/WebCore/xml/XSLTProcessorLibxslt.cpp:30 > #include "DOMWindow.h" Could be removed now.
Sergey Ryazanov
Comment 37 2013-03-18 23:38:10 PDT
Vsevolod Vlasov
Comment 38 2013-03-18 23:53:32 PDT
Comment on attachment 193743 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=193743&action=review > Source/WebCore/WebCore.vcxproj/WebCore.vcxproj:13641 > \ No newline at end of file I am not sure if newline is expected here. Please revert this change. > Source/WebCore/dom/Document.cpp:4847 > + if (page()) if (Page* page = page()) page->console()->addMessage(source, level, message, requestIdentifier, this); > Source/WebCore/dom/Document.cpp:4858 > + if (page()) Ditto > Source/WebCore/xml/XSLStyleSheetLibxslt.cpp:27 > #include "DOMWindow.h" I still think you don't need to include DOMWindow.h here. > Source/WebCore/xml/XSLTProcessorLibxslt.cpp:30 > #include "DOMWindow.h" Ditto
Sergey Ryazanov
Comment 39 2013-03-19 00:19:01 PDT
Sergey Ryazanov
Comment 40 2013-03-19 04:45:47 PDT
Sergey Ryazanov
Comment 41 2013-03-19 04:50:12 PDT
Comment on attachment 193743 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=193743&action=review >> Source/WebCore/WebCore.vcxproj/WebCore.vcxproj:13641 >> \ No newline at end of file > > I am not sure if newline is expected here. Please revert this change. done >> Source/WebCore/dom/Document.cpp:4847 >> + if (page()) > > if (Page* page = page()) > page->console()->addMessage(source, level, message, requestIdentifier, this); It is not valid C++ code. 'page' on the both sides of the expressions refer to the same variable. It is a pointer and the () operation is not applicable to it. >> Source/WebCore/xml/XSLStyleSheetLibxslt.cpp:27 >> #include "DOMWindow.h" > > I still think you don't need to include DOMWindow.h here. done >> Source/WebCore/xml/XSLTProcessorLibxslt.cpp:30 >> #include "DOMWindow.h" > > Ditto done
Sergey Ryazanov
Comment 42 2013-03-19 05:56:25 PDT
Sergey Ryazanov
Comment 43 2013-03-19 08:13:14 PDT
WebKit Review Bot
Comment 44 2013-03-19 08:56:36 PDT
Comment on attachment 193833 [details] Patch Clearing flags on attachment: 193833 Committed r146208: <http://trac.webkit.org/changeset/146208>
WebKit Review Bot
Comment 45 2013-03-19 08:56:43 PDT
All reviewed patches have been landed. Closing bug.
Vsevolod Vlasov
Comment 46 2013-03-19 09:42:15 PDT
Comment on attachment 193743 [details] Patch Clearing obsolete r?
Note You need to log in before you can comment on or make changes to this bug.