Bug 93101 - [V8] Add an IsExecutionTerminating() check to setDOMException()
Summary: [V8] Add an IsExecutionTerminating() check to setDOMException()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kentaro Hara
URL:
Keywords:
Depends on:
Blocks: 85330
  Show dependency treegraph
 
Reported: 2012-08-03 05:52 PDT by Kentaro Hara
Modified: 2012-08-03 11:54 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.17 KB, patch)
2012-08-03 05:54 PDT, Kentaro Hara
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from gce-cr-linux-07 (178.91 KB, application/zip)
2012-08-03 06:11 PDT, WebKit Review Bot
no flags Details
Patch (2.17 KB, patch)
2012-08-03 06:39 PDT, Kentaro Hara
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaro Hara 2012-08-03 05:52:19 PDT
In preparation for moving exception related code from V8Proxy to V8Binding, I am going to remove throwError(ExceptionCode, v8::Isolate*) from V8Proxy. throwError(ExceptionCode, v8::Isolate*) will be replaced with setDOMException(ExceptionCode, v8::Isolate*). By this refactoring, the way to throw JavaScript errors and DOM exceptions becomes simple: "Throw JavaScript errors by throwError(). Throw DOM exceptions by setDOMException()". (Currently, some DOM exceptions are thrown by throwError().)

To keep the current behavior of throwError(ExceptionCode, v8::Isolate*), before the replacement, we need to insert the IsExecutionTerminating() check to setDOMException(). This will add an extra check to the current setDOMException(), but I don't think it's a problem.
Comment 1 Kentaro Hara 2012-08-03 05:54:03 PDT
Created attachment 156339 [details]
Patch
Comment 2 WebKit Review Bot 2012-08-03 06:11:36 PDT
Comment on attachment 156339 [details]
Patch

Attachment 156339 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/13426596

New failing tests:
canvas/philip/tests/2d.drawImage.zerosource.html
canvas/philip/tests/2d.pattern.basic.zerocanvas.html
canvas/philip/tests/2d.missingargs.html
canvas/philip/tests/2d.imageData.get.nonfinite.html
http/tests/appcache/online-whitelist.html
canvas/philip/tests/2d.imageData.put.nonfinite.html
http/tests/appcache/manifest-parsing.html
http/tests/appcache/reload.html
canvas/philip/tests/2d.gradient.radial.negative.html
canvas/philip/tests/2d.gradient.object.invalidcolour.html
canvas/philip/tests/2d.gradient.linear.nonfinite.html
canvas/philip/tests/2d.imageData.create1.zero.html
http/tests/appcache/access-via-redirect.php
canvas/philip/tests/2d.drawImage.zerocanvas.html
canvas/philip/tests/2d.imageData.create2.zero.html
http/tests/appcache/disabled.html
canvas/philip/tests/2d.imageData.get.zero.html
http/tests/appcache/simple.html
canvas/philip/tests/2d.imageData.put.null.html
canvas/philip/tests/2d.path.arc.negative.html
canvas/philip/tests/2d.imageData.create2.nonfinite.html
canvas/philip/tests/2d.path.arcTo.negative.html
canvas/philip/tests/2d.gradient.object.invalidoffset.html
canvas/philip/tests/2d.gradient.radial.nonfinite.html
canvas/philip/tests/2d.drawImage.null.html
http/tests/appcache/remove-cache.html
canvas/philip/tests/2d.pattern.image.null.html
http/tests/appcache/xhr-foreign-resource.html
Comment 3 WebKit Review Bot 2012-08-03 06:11:41 PDT
Created attachment 156345 [details]
Archive of layout-test-results from gce-cr-linux-07

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: gce-cr-linux-07  Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'>  Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Comment 4 Kentaro Hara 2012-08-03 06:35:41 PDT
(In reply to comment #0)
> This will add an extra check to the current setDOMException(), but I don't think it's a problem.

Looks like it's a problem:)
Comment 5 Kentaro Hara 2012-08-03 06:39:38 PDT
Created attachment 156352 [details]
Patch
Comment 6 Kentaro Hara 2012-08-03 06:41:14 PDT
(In reply to comment #4)
> (In reply to comment #0)
> > This will add an extra check to the current setDOMException(), but I don't think it's a problem.
> 
> Looks like it's a problem:)

Sorry, the failures are just due to my typo.
Comment 7 WebKit Review Bot 2012-08-03 11:54:23 PDT
Comment on attachment 156352 [details]
Patch

Clearing flags on attachment: 156352

Committed r124634: <http://trac.webkit.org/changeset/124634>
Comment 8 WebKit Review Bot 2012-08-03 11:54:29 PDT
All reviewed patches have been landed.  Closing bug.