Bug 108432

Summary: [V8] 'new MouseEvent("click", {relatedTarget: window}).window' should return window
Product: WebKit Reporter: Kentaro Hara <haraken>
Component: WebCore JavaScriptAssignee: Kentaro Hara <haraken>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, japhet, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Kentaro Hara 2013-01-30 22:58:23 PST
In V8 'new MouseEvent("click", {relatedTarget: window}).window' returns null. In JSC it returns window, which is a correct behavior. V8 should also return window.
Comment 1 Kentaro Hara 2013-01-30 23:06:04 PST
Created attachment 185681 [details]
Patch
Comment 2 Adam Barth 2013-01-31 00:02:44 PST
Comment on attachment 185681 [details]
Patch

Interesting.
Comment 3 WebKit Review Bot 2013-01-31 00:13:53 PST
Comment on attachment 185681 [details]
Patch

Clearing flags on attachment: 185681

Committed r141383: <http://trac.webkit.org/changeset/141383>
Comment 4 WebKit Review Bot 2013-01-31 00:13:57 PST
All reviewed patches have been landed.  Closing bug.