Bug 34335 - ScriptCallFrame's do not get line numbers/source id's if the caller is unkown.
Summary: ScriptCallFrame's do not get line numbers/source id's if the caller is unkown.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Ben Murdoch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-29 10:06 PST by Ben Murdoch
Modified: 2010-02-02 02:15 PST (History)
3 users (show)

See Also:


Attachments
Proposed patch and updated layout tests. (6.50 KB, patch)
2010-02-01 04:44 PST, Ben Murdoch
darin: review+
benm: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Murdoch 2010-01-29 10:06:33 PST
When we append a StackCallFrame to the ScriptCallStack, if the calling function is unknown we do not supply the CallFrame with any source id or line number information although this data is available. Instead, an empty source id and line number of 0 is supplied. I propose a patch to add the correct line number and source ID to the callframe.

Patch and updates to layout tests to follow.
Comment 1 Ben Murdoch 2010-02-01 04:44:16 PST
Created attachment 47829 [details]
Proposed patch and updated layout tests.
Comment 2 Darin Adler 2010-02-01 10:00:54 PST
Comment on attachment 47829 [details]
Proposed patch and updated layout tests.

> +        * platform/gtk/inspector/console-log-before-inspector-open-expected.txt: Removed.
> +        * platform/mac/inspector/console-log-before-inspector-open-expected.txt: Removed.
> +        * platform/win/inspector/console-log-before-inspector-open-expected.txt: Removed.

Change log doesn't say why you did this. I presume that these platform-specific results were actually just working around the bug?
Comment 3 Ben Murdoch 2010-02-01 10:03:56 PST
Thanks for the review!

(In reply to comment #2)
> (From update of attachment 47829 [details])
> > +        * platform/gtk/inspector/console-log-before-inspector-open-expected.txt: Removed.
> > +        * platform/mac/inspector/console-log-before-inspector-open-expected.txt: Removed.
> > +        * platform/win/inspector/console-log-before-inspector-open-expected.txt: Removed.
> 
> Change log doesn't say why you did this. I presume that these platform-specific
> results were actually just working around the bug?

Precisely - I can update the ChangeLog and land manually, if you like?

Thanks, Ben
Comment 4 Ben Murdoch 2010-02-01 10:29:57 PST
Comment on attachment 47829 [details]
Proposed patch and updated layout tests.

Will land manually.
Comment 5 Ben Murdoch 2010-02-02 02:15:21 PST
Landed as r54138. Closing bug.