Bug 30239

Summary: V8NPObject and c_instance don't throw an exception into javascript if an invoke call fails
Product: WebKit Reporter: Nate Chapin <japhet>
Component: WebCore Misc.Assignee: Nate Chapin <japhet>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dglazkov, eric, ggaren
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 30528    
Attachments:
Description Flags
patch + layout test none

Description Nate Chapin 2009-10-08 16:43:38 PDT
If an NPObject invoke() call returns false, something went wrong and an exception should be thrown in V8.  Currently we fail silently.

Error message should probably match Firefox ("Error calling method on NPObject!").
Comment 1 Nate Chapin 2009-10-13 10:34:10 PDT
This issue appears to affect JSC also, so I'm fixing it there too.
Comment 2 Nate Chapin 2009-10-13 15:08:14 PDT
Created attachment 41132 [details]
patch + layout test
Comment 3 Dimitri Glazkov (Google) 2009-10-15 15:00:17 PDT
V8 part looks good.
Comment 4 Adam Barth 2009-10-18 23:15:55 PDT
Comment on attachment 41132 [details]
patch + layout test

Thanks for the patch.
Comment 5 Yong Li 2009-10-19 08:47:51 PDT
Comment on attachment 41132 [details]
patch + layout test

Let commit bot land it
Comment 6 WebKit Commit Bot 2009-10-19 11:50:36 PDT
Comment on attachment 41132 [details]
patch + layout test

Clearing flags on attachment: 41132

Committed r49796: <http://trac.webkit.org/changeset/49796>
Comment 7 WebKit Commit Bot 2009-10-19 11:50:40 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Eric Seidel (no email) 2009-10-19 12:24:46 PDT
Test fails on Snow Leopard:
http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r49797%20(1179)/results.html

We need to come up with a fix (or skip on SL) or roll this out.
Comment 9 Nate Chapin 2009-10-19 12:27:24 PDT
(In reply to comment #8)
> Test fails on Snow Leopard:
> http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r49797%20(1179)/results.html
> 
> We need to come up with a fix (or skip on SL) or roll this out.

I don't think I'm going to be able to fix this immediately (not least because I don't have SL), so I'm happy to either skip or roll out, whichever people prefer.
Comment 10 Nate Chapin 2009-10-19 12:58:27 PDT
(In reply to comment #9)
> (In reply to comment #8)
> > Test fails on Snow Leopard:
> > http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r49797%20(1179)/results.html
> > 
> > We need to come up with a fix (or skip on SL) or roll this out.
> 
> I don't think I'm going to be able to fix this immediately (not least because I
> don't have SL), so I'm happy to either skip or roll out, whichever people
> prefer.

Per conversation in #webkit, closing this bug.  See SL-specific issue at https://bugs.webkit.org/show_bug.cgi?id=30528.