WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 59263
WebKit2: Web Inspector: Support highlighting page elements
https://bugs.webkit.org/show_bug.cgi?id=59263
Summary
WebKit2: Web Inspector: Support highlighting page elements
Brian Weinstein
Reported
2011-04-22 17:54:49 PDT
The Web Inspector in WebKit2 should support highlighting page elements when they are moused-over in the inspector. <
rdar://problem/8767659
>
Attachments
[PATCH] Fix
(4.97 KB, patch)
2011-04-22 17:59 PDT
,
Brian Weinstein
alice.barraclough
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brian Weinstein
Comment 1
2011-04-22 17:59:19 PDT
Created
attachment 90819
[details]
[PATCH] Fix
WebKit Review Bot
Comment 2
2011-04-22 18:01:24 PDT
Attachment 90819
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit..." exit_code: 1 Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.h:36: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Adam Roben (:aroben)
Comment 3
2011-04-24 23:32:23 PDT
Comment on
attachment 90819
[details]
[PATCH] Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=90819&action=review
> Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.h:73 > + PageOverlay* m_highlightOverlay;
Holding a bare pointer doesn't seem safe. If someone else calls WebPage::installPageOverlay when you aren't expecting it, m_highlightOverlay will then become a dangling pointer.
Brian Weinstein
Comment 4
2011-04-25 09:31:21 PDT
(In reply to
comment #3
)
> (From update of
attachment 90819
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=90819&action=review
> > > Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.h:73 > > + PageOverlay* m_highlightOverlay; > > Holding a bare pointer doesn't seem safe. If someone else calls WebPage::installPageOverlay when you aren't expecting it, m_highlightOverlay will then become a dangling pointer.
It looks like FindController does the same thing. Is that code wrong as well? It looks like WebPage.h holds a RefPtr to a single overlay.
Brian Weinstein
Comment 5
2011-04-25 10:03:22 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > (From update of
attachment 90819
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=90819&action=review
> > > > > Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.h:73 > > > + PageOverlay* m_highlightOverlay; > > > > Holding a bare pointer doesn't seem safe. If someone else calls WebPage::installPageOverlay when you aren't expecting it, m_highlightOverlay will then become a dangling pointer. > > It looks like FindController does the same thing. Is that code wrong as well? It looks like WebPage.h holds a RefPtr to a single overlay.
I'm going to land this with Alice's r+, and we can discuss a better way to clean this and FindController up.
Brian Weinstein
Comment 6
2011-04-25 10:13:13 PDT
Landed in
r84781
. Filed
http://webkit.org/b/59329
to track the raw PageOverlay pointers in WebInspectorClient and FindController.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug