RESOLVED FIXED 36117
Web Inspector: migrate to native styles inspector in order to inspect styles from foreighn domains.
https://bugs.webkit.org/show_bug.cgi?id=36117
Summary Web Inspector: migrate to native styles inspector in order to inspect styles ...
Pavel Feldman
Reported 2010-03-15 08:11:15 PDT
(This will be used for audits too)
Attachments
[PATCH] Proposed change. (63.97 KB, patch)
2010-03-15 08:13 PDT, Pavel Feldman
no flags
[PATCH] Patch to land. (67.44 KB, patch)
2010-03-15 14:45 PDT, Pavel Feldman
no flags
Pavel Feldman
Comment 1 2010-03-15 08:13:50 PDT
Created attachment 50708 [details] [PATCH] Proposed change.
WebKit Review Bot
Comment 2 2010-03-15 08:16:08 PDT
Attachment 50708 [details] did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebCore/inspector/InspectorDOMAgent.cpp:40: Alphabetical sorting problem. [build/include_order] [4] WebCore/inspector/InspectorDOMAgent.cpp:773: One line control clauses should not use braces. [whitespace/braces] [4] WebCore/inspector/InspectorDOMAgent.cpp:853: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] WebCore/inspector/InspectorDOMAgent.cpp:867: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Total errors found: 4 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Seidel (no email)
Comment 3 2010-03-15 08:18:00 PDT
WebKit Review Bot
Comment 4 2010-03-15 08:22:06 PDT
Timothy Hatcher
Comment 5 2010-03-15 08:45:31 PDT
Comment on attachment 50708 [details] [PATCH] Proposed change. > + for (unsigned i = 0; … Use size_t instead for for loops. > + bool isUserAgent = parentStyleSheet && !parentStyleSheet->ownerNode() && parentStyleSheet->href().isEmpty(); > + bool isUser = parentStyleSheet && parentStyleSheet->ownerNode() && parentStyleSheet->ownerNode()->nodeName() == "#document"; I suspect there is a more direct way to get this info now that we are in native code. I lament to loss of easier to write JavaScript…
Timothy Hatcher
Comment 6 2010-03-15 08:46:22 PDT
Make sure to fix the flagged style errors and the build errors.
Pavel Feldman
Comment 7 2010-03-15 14:45:07 PDT
Created attachment 50744 [details] [PATCH] Patch to land.
Eric Seidel (no email)
Comment 8 2010-03-15 15:55:13 PDT
Comment on attachment 50708 [details] [PATCH] Proposed change. Cleared Timothy Hatcher's review+ from obsolete attachment 50708 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Joseph Pecoraro
Comment 9 2010-03-15 21:13:02 PDT
(In reply to comment #6) > Make sure to fix the flagged style errors and the build errors. Also, is it really "foreighn" or should it be "foreign" or just "any domain"? It would be nice to update the bug + ChangeLog if that is a typo.
Pavel Feldman
Comment 10 2010-03-16 02:33:03 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ... M LayoutTests/inspector/styles-iframe.html M WebCore/ChangeLog M WebCore/bindings/js/ScriptValue.h M WebCore/bindings/v8/ScriptValue.h M WebCore/inspector/InspectorBackend.cpp M WebCore/inspector/InspectorBackend.h M WebCore/inspector/InspectorBackend.idl M WebCore/inspector/InspectorDOMAgent.cpp M WebCore/inspector/InspectorDOMAgent.h M WebCore/inspector/InspectorFrontend.cpp M WebCore/inspector/InspectorFrontend.h M WebCore/inspector/front-end/DOMAgent.js M WebCore/inspector/front-end/ElementsTreeOutline.js M WebCore/inspector/front-end/InjectedScript.js M WebCore/inspector/front-end/MetricsSidebarPane.js M WebCore/inspector/front-end/StylesSidebarPane.js M WebCore/inspector/front-end/inspector.js M WebKit/chromium/ChangeLog M WebKit/chromium/src/js/InspectorControllerImpl.js Committed r56049
Note You need to log in before you can comment on or make changes to this bug.