Bug 165051

Summary: Fix exception scope verification failures in ObjectConstructor.cpp and ObjectPrototype.cpp.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, fpizlo, ggaren, jfbastien, keith_miller, msaboff, saam, ysuzuki
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 162351    
Attachments:
Description Flags
proposed patch.
buildbot: commit-queue-
Archive of layout-test-results from ews114 for mac-yosemite
none
proposed patch + EWS failure fixed.
mark.lam: review-
proposed patch. saam: review+

Description Mark Lam 2016-11-23 13:53:23 PST
Patch coming.
Comment 1 Mark Lam 2016-11-23 14:00:48 PST
Created attachment 295378 [details]
proposed patch.
Comment 2 Build Bot 2016-11-23 15:08:24 PST
Comment on attachment 295378 [details]
proposed patch.

Attachment 295378 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/2562237

New failing tests:
http/tests/security/cross-frame-access-object-prototype.html
Comment 3 Build Bot 2016-11-23 15:08:27 PST
Created attachment 295380 [details]
Archive of layout-test-results from ews114 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 4 Mark Lam 2016-11-23 15:14:08 PST
Comment on attachment 295378 [details]
proposed patch.

Taking out of review while I investigate the test failure.
Comment 5 Mark Lam 2016-11-23 16:20:36 PST
Created attachment 295383 [details]
proposed patch + EWS failure fixed.
Comment 6 Mark Lam 2016-11-24 13:38:50 PST
Comment on attachment 295383 [details]
proposed patch + EWS failure fixed.

It is invalid to replace returning encodedJSValue() with returning { }.  On 32-bit builds, the former is non-zero, while the latter is 0.  Will fix this patch.
Comment 7 Mark Lam 2016-11-25 07:56:27 PST
Created attachment 295423 [details]
proposed patch.
Comment 8 Saam Barati 2016-11-28 14:04:53 PST
Comment on attachment 295423 [details]
proposed patch.

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

> Source/WebCore/bindings/js/JSDOMWindowCustom.cpp:137
> +        return false;

good catch
Comment 9 Mark Lam 2016-11-28 14:30:44 PST
Thanks for the review.  Landed in r209020: <http://trac.webkit.org/r209020>.