WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
69924
Web Inspector: add "Add to Watch" option to context menu on selection in source frame
https://bugs.webkit.org/show_bug.cgi?id=69924
Summary
Web Inspector: add "Add to Watch" option to context menu on selection in sour...
Andrey Kosyakov
Reported
2011-10-12 06:18:30 PDT
- add "Add to Watch" option to context menu in the source frame while debugger is paused - add a flag to platform context menu to enable both custom and default items be displayed
Attachments
patch
(23.00 KB, patch)
2011-10-12 06:20 PDT
,
Andrey Kosyakov
pfeldman
: review-
Details
Formatted Diff
Diff
patch
(8.15 KB, patch)
2011-10-17 07:48 PDT
,
Andrey Kosyakov
pfeldman
: review+
pfeldman
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andrey Kosyakov
Comment 1
2011-10-12 06:20:50 PDT
Created
attachment 110676
[details]
patch
Yury Semikhatsky
Comment 2
2011-10-12 07:01:48 PDT
Comment on
attachment 110676
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=110676&action=review
> Source/WebCore/page/ContextMenuController.h:56 > + void showContextMenu(Event*, PassRefPtr<ContextMenuProvider>, bool includeDefaultItems);
nit: WebKit coding style guide recommends to use enum instead of boolean for parameters.
Yury Semikhatsky
Comment 3
2011-10-12 07:02:28 PDT
Comment on
attachment 110676
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=110676&action=review
> Source/WebCore/inspector/front-end/TextViewer.js:300 > + }
style nit: else should go on the same line
Pavel Feldman
Comment 4
2011-10-16 10:48:26 PDT
Comment on
attachment 110676
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=110676&action=review
> Source/WebCore/bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:114 > + bool includeDefaultItems = args.Length() > 2 && args[2]->ToBoolean()->Value();
what if it is not boolean?
> Source/WebCore/inspector/front-end/ContextMenu.js:91 > + this._includeDefaultItems = !!value;
make it = value and annotate as @param {boolean} instead!
> Source/WebCore/inspector/front-end/SourceFrame.js:657 > + if (!this._delegate.debuggerPaused())
Is there a reason you want it to be only enabled while paused?
>> Source/WebCore/page/ContextMenuController.h:56 >> + void showContextMenu(Event*, PassRefPtr<ContextMenuProvider>, bool includeDefaultItems); > > nit: WebKit coding style guide recommends to use enum instead of boolean for parameters.
It sounds like you are adding this flag for the sake of chromium port only. Could we do a better job in detecting the 'input' or 'selection' context menus instead and show standard menu items for those by default?
Andrey Kosyakov
Comment 5
2011-10-17 07:48:18 PDT
Created
attachment 111262
[details]
patch - removed explicit flag for including both custom and default items, just do this if we have selection
WebKit Review Bot
Comment 6
2011-10-17 07:50:33 PDT
Attachment 111262
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/update-webkit', '--chromium']" exit_code: 2 Updating OpenSource Current branch master is up to date. Updating chromium port dependencies using gclient... Error: Can't switch the checkout to
http://v8.googlecode.com/svn/branches/3.6@9637
; UUID don't match and there is local changes in /mnt/git/webkit-style-queue/Source/WebKit/chromium/v8. Delete the directory and try again. Re-trying 'depot_tools/gclient sync' Error: Can't switch the checkout to
http://v8.googlecode.com/svn/branches/3.6@9637
; UUID don't match and there is local changes in /mnt/git/webkit-style-queue/Source/WebKit/chromium/v8. Delete the directory and try again. Re-trying 'depot_tools/gclient sync' Error: Can't switch the checkout to
http://v8.googlecode.com/svn/branches/3.6@9637
; UUID don't match and there is local changes in /mnt/git/webkit-style-queue/Source/WebKit/chromium/v8. Delete the directory and try again. Error: 'depot_tools/gclient sync' failed 3 tries and returned 256 at Tools/Scripts/update-webkit-chromium line 107. Re-trying 'depot_tools/gclient sync' No such file or directory at Tools/Scripts/update-webkit line 104. If any of these errors are false positives, please file a bug against check-webkit-style.
Pavel Feldman
Comment 7
2011-10-17 09:06:37 PDT
Comment on
attachment 111262
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=111262&action=review
> Source/WebCore/inspector/front-end/TextViewer.js:300 > + this._delegate.populateTextAreaContextMenu(contextMenu);
Nit: I'd simply pass selection in.
Roland Takacs
Comment 8
2013-05-29 01:49:51 PDT
This patch is already in the trunk.
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