WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
86847
Web Inspector: Support hierarchical context menus
https://bugs.webkit.org/show_bug.cgi?id=86847
Summary
Web Inspector: Support hierarchical context menus
Alexander Pavlov (apavlov)
Reported
2012-05-18 05:46:48 PDT
This is required to implement the pseudo-state emulation on non-selected elements
Attachments
Patch
(14.66 KB, patch)
2012-05-22 10:10 PDT
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
Patch
(21.78 KB, patch)
2012-05-23 05:09 PDT
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
Patch
(36.47 KB, patch)
2012-05-24 04:56 PDT
,
Alexander Pavlov (apavlov)
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Alexander Pavlov (apavlov)
Comment 1
2012-05-22 10:10:23 PDT
Created
attachment 143321
[details]
Patch
Pavel Feldman
Comment 2
2012-05-23 02:03:28 PDT
Comment on
attachment 143321
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=143321&action=review
> Source/WebCore/ChangeLog:9 > + in the Web Inspector's context menu. ContextMenuItems are also passed/stored by reference/value rather than pointer
I vaguely remember that when it was initially implemented, not all the platforms allowed treating ContextMenuItem as value type. Did this change?
Alexander Pavlov (apavlov)
Comment 3
2012-05-23 02:12:39 PDT
(In reply to
comment #2
)
> (From update of
attachment 143321
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=143321&action=review
> > > Source/WebCore/ChangeLog:9 > > + in the Web Inspector's context menu. ContextMenuItems are also passed/stored by reference/value rather than pointer > > I vaguely remember that when it was initially implemented, not all the platforms allowed treating ContextMenuItem as value type. Did this change?
Offline, we discovered that the platform objects represented by description are managed by the platform-specific code through the releasePlatformDescription() method.
Alexander Pavlov (apavlov)
Comment 4
2012-05-23 05:09:11 PDT
Created
attachment 143538
[details]
Patch
Pavel Feldman
Comment 5
2012-05-23 09:32:36 PDT
Comment on
attachment 143538
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=143538&action=review
Make sure you implement SoftContextMenu based on the new descriptor.
> Source/WebCore/inspector/front-end/ContextMenu.js:45 > + this._topLevelMenu = topLevelMenu;
this._contextMenu
> Source/WebCore/inspector/front-end/ContextMenu.js:51 > + get id()
id: function()
> Source/WebCore/inspector/front-end/ContextMenu.js:56 > + get type()
type: function()
> Source/WebCore/inspector/front-end/ContextMenu.js:95 > + this._topLevelMenu.setHandler(item.id, handler);
Make it all private.
> Source/WebCore/inspector/front-end/ContextMenu.js:143 > + toProtocol: function()
_buildDescriptor:
Alexander Pavlov (apavlov)
Comment 6
2012-05-24 04:56:31 PDT
Created
attachment 143788
[details]
Patch
Pavel Feldman
Comment 7
2012-05-24 07:13:10 PDT
Comment on
attachment 143788
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=143788&action=review
> Source/WebCore/bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:80 > + v8::Local<v8::Value> subItems = item->Get(v8::String::New("subItems"));
subItems -> items ?
Alexander Pavlov (apavlov)
Comment 8
2012-05-24 07:53:30 PDT
Committed
r118374
: <
http://trac.webkit.org/changeset/118374
>
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