Bug 93307

Summary: JSC should use BindingState to determine the activeDOMWindow
Product: WebKit Reporter: Adam Barth <abarth>
Component: WebCore JavaScriptAssignee: Adam Barth <abarth>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, eric, gustavo, gyuyoung.kim, haraken, japhet, rakuco, sam, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 93339    
Bug Blocks: 75793    
Attachments:
Description Flags
Patch
none
work in progress
none
Patch for landing
none
Patch for landing
none
Patch
none
resolve project.pbxproj merge conflict none

Adam Barth
Reported 2012-08-06 16:25:38 PDT
JSC should use BindingState to determine the activeDOMWindow
Attachments
Patch (26.24 KB, patch)
2012-08-06 16:28 PDT, Adam Barth
no flags
work in progress (30.54 KB, patch)
2012-08-06 16:28 PDT, Adam Barth
no flags
Patch for landing (31.33 KB, patch)
2012-08-06 16:49 PDT, Adam Barth
no flags
Patch for landing (31.32 KB, patch)
2012-08-06 16:50 PDT, Adam Barth
no flags
Patch (31.36 KB, patch)
2012-08-06 17:00 PDT, Adam Barth
no flags
resolve project.pbxproj merge conflict (32.29 KB, patch)
2012-08-06 17:22 PDT, Adam Barth
no flags
Adam Barth
Comment 1 2012-08-06 16:28:17 PDT
Adam Barth
Comment 2 2012-08-06 16:28:54 PDT
Created attachment 156789 [details] work in progress
Gustavo Noronha (kov)
Comment 3 2012-08-06 16:35:05 PDT
Comment on attachment 156789 [details] work in progress Attachment 156789 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/13436956
Adam Barth
Comment 4 2012-08-06 16:49:50 PDT
Created attachment 156796 [details] Patch for landing
Adam Barth
Comment 5 2012-08-06 16:50:08 PDT
Created attachment 156797 [details] Patch for landing
Adam Barth
Comment 6 2012-08-06 17:00:34 PDT
Eric Seidel (no email)
Comment 7 2012-08-06 17:09:13 PDT
Comment on attachment 156803 [details] Patch LGTM.
Adam Barth
Comment 8 2012-08-06 17:22:49 PDT
Created attachment 156808 [details] resolve project.pbxproj merge conflict
Adam Barth
Comment 9 2012-08-06 19:04:44 PDT
Darin Adler
Comment 10 2012-08-07 13:45:51 PDT
Comment on attachment 156808 [details] resolve project.pbxproj merge conflict View in context: https://bugs.webkit.org/attachment.cgi?id=156808&action=review > Source/WebCore/bindings/js/JSDOMBinding.h:-414 > - // FIXME: Remove these functions in favor of activeContext and > - // firstContext, which return ScriptExecutionContext*. We prefer to use > - // ScriptExecutionContext* as the context object in the bindings. Adam: Is this comment obsolete? Did you intentionally delete it rather than moving it to BindingState.h?
Adam Barth
Comment 11 2012-08-07 14:08:20 PDT
(In reply to comment #10) > (From update of attachment 156808 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=156808&action=review > > > Source/WebCore/bindings/js/JSDOMBinding.h:-414 > > - // FIXME: Remove these functions in favor of activeContext and > > - // firstContext, which return ScriptExecutionContext*. We prefer to use > > - // ScriptExecutionContext* as the context object in the bindings. > > Adam: Is this comment obsolete? Did you intentionally delete it rather than moving it to BindingState.h? I added these comments the last time I tried to fix this problem (Bug 75793). I'm not 100% sure which approach will work. Replacing these functions with activeContext and firstContext is one promising approach. If I don't succeed this time around, I'll add comments explaining where we ended up.
Note You need to log in before you can comment on or make changes to this bug.