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 76913
Web Inspector: should be possible to open function declaration from script popover
https://bugs.webkit.org/show_bug.cgi?id=76913
Summary
Web Inspector: should be possible to open function declaration from script po...
Yury Semikhatsky
Reported
2012-01-24 07:21:34 PST
Original Chromium bug report:
http://code.google.com/p/chromium/issues/detail?id=100157
Attachments
Patch
(13.85 KB, patch)
2012-01-24 07:51 PST
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Screenshot with the patch applied
(210.55 KB, image/png)
2012-01-25 03:35 PST
,
Yury Semikhatsky
no flags
Details
Patch
(37.23 KB, patch)
2012-01-25 09:25 PST
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Patch
(38.09 KB, patch)
2012-01-25 10:16 PST
,
Yury Semikhatsky
pfeldman
: review+
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
Patch for landing
(37.07 KB, patch)
2012-01-26 03:40 PST
,
Yury Semikhatsky
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2012-01-24 07:51:24 PST
Created
attachment 123732
[details]
Patch
Yury Semikhatsky
Comment 2
2012-01-24 07:52:19 PST
(In reply to
comment #1
)
> Created an attachment (id=123732) [details] > Patch
This patch depends on changes in V8 API.
WebKit Review Bot
Comment 3
2012-01-24 08:18:26 PST
Comment on
attachment 123732
[details]
Patch
Attachment 123732
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/11334398
Pavel Feldman
Comment 4
2012-01-25 01:32:39 PST
Is there a screenshot?
Yury Semikhatsky
Comment 5
2012-01-25 03:35:29 PST
Created
attachment 123914
[details]
Screenshot with the patch applied
Yury Semikhatsky
Comment 6
2012-01-25 03:35:53 PST
(In reply to
comment #4
)
> Is there a screenshot?
Yes, see attachment.
Pavel Feldman
Comment 7
2012-01-25 04:08:25 PST
Comment on
attachment 123732
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=123732&action=review
> Source/WebCore/inspector/InjectedScriptHost.idl:48 > + [Custom] DOMString functionInferredName(in DOMObject object);
I would combine these into a single getter. I.e. extended location would contain function name. As a result, the protocol would have Runtime.getFunctionInfo returning location, name, displayName and inferredName as separate optional properties.
> Source/WebCore/inspector/InjectedScriptSource.js:502 > + var name = object.name;
You should use object.displayName || object.name.
Yury Semikhatsky
Comment 8
2012-01-25 09:25:38 PST
Created
attachment 123956
[details]
Patch
Yury Semikhatsky
Comment 9
2012-01-25 09:26:12 PST
(In reply to
comment #7
)
> (From update of
attachment 123732
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=123732&action=review
> > > Source/WebCore/inspector/InjectedScriptHost.idl:48 > > + [Custom] DOMString functionInferredName(in DOMObject object); > > I would combine these into a single getter. I.e. extended location would contain function name. As a result, the protocol would have
Done.
> > Runtime.getFunctionInfo returning location, name, displayName and inferredName as separate optional properties. > > > Source/WebCore/inspector/InjectedScriptSource.js:502 > > + var name = object.name; > > You should use object.displayName || object.name.
Done.
WebKit Review Bot
Comment 10
2012-01-25 09:28:00 PST
Attachment 123956
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/insp..." exit_code: 1 Source/WebCore/inspector/InjectedScript.cpp:91: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.h:81: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 2 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 11
2012-01-25 09:52:22 PST
Comment on
attachment 123956
[details]
Patch
Attachment 123956
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/11242849
Yury Semikhatsky
Comment 12
2012-01-25 10:16:17 PST
Created
attachment 123968
[details]
Patch
Yury Semikhatsky
Comment 13
2012-01-25 10:17:18 PST
(In reply to
comment #12
)
> Created an attachment (id=123968) [details] > Patch
Fixed Win build, Source/JavaScriptCore/JavaScriptCore.exp still needs to be changed for the patch to compile on Mac.
WebKit Review Bot
Comment 14
2012-01-25 10:19:58 PST
Attachment 123968
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/insp..." exit_code: 1 Source/WebCore/inspector/InjectedScript.cpp:91: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.h:81: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 2 in 22 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 15
2012-01-25 11:00:57 PST
Comment on
attachment 123968
[details]
Patch
Attachment 123968
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/11242878
Yury Semikhatsky
Comment 16
2012-01-26 03:40:11 PST
Created
attachment 124096
[details]
Patch for landing Fixed Mac compilation.
WebKit Review Bot
Comment 17
2012-01-26 03:41:43 PST
Attachment 124096
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/insp..." exit_code: 1 Source/JavaScriptCore/ChangeLog:11: Need whitespace between colon and description [changelog/filechangedescriptionwhitespace] [5] Source/WebCore/inspector/InjectedScript.cpp:91: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/inspector/InjectedScript.h:81: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 3 in 23 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Review Bot
Comment 18
2012-01-26 04:01:29 PST
Comment on
attachment 124096
[details]
Patch for landing
Attachment 124096
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/11163302
Yury Semikhatsky
Comment 19
2012-01-27 01:53:53 PST
Committed
r106101
: <
http://trac.webkit.org/changeset/106101
>
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