RESOLVED FIXED130119
Web Inspector: OS X View Indication
https://bugs.webkit.org/show_bug.cgi?id=130119
Summary Web Inspector: OS X View Indication
Joseph Pecoraro
Reported 2014-03-12 00:09:17 PDT
Implement the WebView indication for OS X. This way, a debugger can indicates a WebView when choosing a debug target. E.g. the WebView can visibly get a blue highlight like a node highlight.
Attachments
[PATCH] Proposed Fix (8.81 KB, patch)
2014-03-12 00:15 PDT, Joseph Pecoraro
timothy: review+
Joseph Pecoraro
Comment 1 2014-03-12 00:09:53 PDT
Joseph Pecoraro
Comment 2 2014-03-12 00:15:40 PDT
Created attachment 226480 [details] [PATCH] Proposed Fix
Antoine Quint
Comment 3 2014-03-12 01:14:43 PDT
Comment on attachment 226480 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=226480&action=review > Source/WebCore/inspector/InspectorOverlayPage.js:648 > +function showPageIndication() > +{ > + document.body.classList.add("indicate"); > +} > + > +function hidePageIndication() > +{ > + document.body.classList.remove("indicate"); > +} > + Why not use a property a "showsPageIndication" property here? Is it because it's simpler to call a JS method from C++ code?
Joseph Pecoraro
Comment 4 2014-03-12 11:08:12 PDT
(In reply to comment #3) > Why not use a "showsPageIndication" property here? Is it because it's simpler to call a JS method from C++ code? Correct. I was just being consistent with existing code, which keeps things simple. Also, this means that the "dispatch" function is a nice funnel for all incoming messages to the overlay page.
Timothy Hatcher
Comment 5 2014-03-12 12:07:28 PDT
Comment on attachment 226480 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=226480&action=review > Source/WebCore/inspector/InspectorOverlay.cpp:330 > + return m_highlightNode || m_highlightNode || m_indicating || !m_pausedInDebuggerMessage.isNull(); We could remove m_pausedInDebuggerMessage (and friends), it is dead code to us.
Joseph Pecoraro
Comment 6 2014-03-12 16:40:41 PDT
Note You need to log in before you can comment on or make changes to this bug.