Bug 89532 - [V8] Fix issue where a callback got a null calling context
Summary: [V8] Fix issue where a callback got a null calling context
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Erik Arvidsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-19 16:54 PDT by Erik Arvidsson
Modified: 2012-06-19 18:04 PDT (History)
5 users (show)

See Also:


Attachments
Patch (3.77 KB, patch)
2012-06-19 16:56 PDT, Erik Arvidsson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Arvidsson 2012-06-19 16:54:20 PDT
[V8] Fix issue where a callback got a null calling context
Comment 1 Erik Arvidsson 2012-06-19 16:56:04 PDT
Created attachment 148459 [details]
Patch
Comment 2 Erik Arvidsson 2012-06-19 16:57:18 PDT
See http://code.google.com/p/chromium/issues/detail?id=130462 for more details
Comment 3 Kentaro Hara 2012-06-19 17:06:52 PDT
Comment on attachment 148459 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=148459&action=review

The change looks OK.

> Source/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp:309
> +        return V8Proxy::throwTypeError(0, args.GetIsolate());

0 will output "Type error". What error message does JSC throw? (We want to keep the error message consistent between JSC and V8.)
Comment 4 Erik Arvidsson 2012-06-19 17:30:08 PDT
(In reply to comment #3)
> (From update of attachment 148459 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=148459&action=review
> 
> The change looks OK.
> 
> > Source/WebCore/bindings/v8/custom/V8DOMWindowCustom.cpp:309
> > +        return V8Proxy::throwTypeError(0, args.GetIsolate());
> 
> 0 will output "Type error". What error message does JSC throw? (We want to keep the error message consistent between JSC and V8.)

Yup. I wanted to use 0 to match JSC.
Comment 5 Kentaro Hara 2012-06-19 17:30:45 PDT
Comment on attachment 148459 [details]
Patch

Thanks for the clarification.
Comment 6 WebKit Review Bot 2012-06-19 18:04:16 PDT
Comment on attachment 148459 [details]
Patch

Clearing flags on attachment: 148459

Committed r120783: <http://trac.webkit.org/changeset/120783>
Comment 7 WebKit Review Bot 2012-06-19 18:04:20 PDT
All reviewed patches have been landed.  Closing bug.