Bug 31414 - Replace worldIDs with world objects
Summary: Replace worldIDs with world objects
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Adam Roben (:aroben)
URL:
Keywords:
Depends on:
Blocks: 31124
  Show dependency treegraph
 
Reported: 2009-11-12 08:30 PST by Adam Roben (:aroben)
Modified: 2009-11-13 08:59 PST (History)
3 users (show)

See Also:


Attachments
Small clean-up in WebView's user content functions (6.39 KB, patch)
2009-11-12 08:31 PST, Adam Roben (:aroben)
no flags Details | Formatted Diff | Diff
Remove worldIDs from WebKit's SPI (77.98 KB, patch)
2009-11-12 11:33 PST, Adam Roben (:aroben)
no flags Details | Formatted Diff | Diff
Finish replacing worldIDs with world objects (13.07 KB, patch)
2009-11-13 08:54 PST, Adam Roben (:aroben)
mrowe: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2009-11-12 08:30:15 PST
In discussions with Sam Weinig, Dave Hyatt, and John Sullivan, I've come up with a new SPI for dealing with user scripts and stylesheets and isolated worlds. This bug covers implementing this SPI.
Comment 1 Adam Roben (:aroben) 2009-11-12 08:31:32 PST
Created attachment 43066 [details]
Small clean-up in WebView's user content functions
Comment 2 Dave Hyatt 2009-11-12 10:23:00 PST
Comment on attachment 43066 [details]
Small clean-up in WebView's user content functions

r=me
Comment 3 Adam Roben (:aroben) 2009-11-12 11:33:05 PST
Created attachment 43084 [details]
Remove worldIDs from WebKit's SPI
Comment 4 Timothy Hatcher 2009-11-12 12:13:01 PST
Comment on attachment 43084 [details]
Remove worldIDs from WebKit's SPI

I don't have time to do a full review.

But WebJSWorld is hard to read. This would have been better named WebScriptWorld. (To match WebScriptObject.)
Comment 5 Timothy Hatcher 2009-11-12 12:15:00 PST
Comment on attachment 43084 [details]
Remove worldIDs from WebKit's SPI

collectionWithWorld should be collectionWithScriptWorld if you take my WebScriptWorld suggestion. Same with initWithWorld.
Comment 6 Timothy Hatcher 2009-11-12 12:16:08 PST
- (JSGlobalContextRef)globalContextInWorld:(WebJSWorld *)world;

reads better as:

- (JSGlobalContextRef)globalContextForScriptWorld:(WebScriptWorld *)world;
Comment 7 Adam Roben (:aroben) 2009-11-12 14:35:22 PST
Thanks for the reviews, Sam and Hyatt! I'm going to make Tim's suggested renames and then land these two patches.
Comment 8 Adam Roben (:aroben) 2009-11-12 14:41:34 PST
Comment on attachment 43066 [details]
Small clean-up in WebView's user content functions

Landed in r50906 <http://trac.webkit.org/changeset/50906>
Comment 9 Adam Roben (:aroben) 2009-11-12 14:41:47 PST
Comment on attachment 43084 [details]
Remove worldIDs from WebKit's SPI

Landed in r50907 <http://trac.webkit.org/changeset/50907>
Comment 10 Adam Roben (:aroben) 2009-11-12 15:45:15 PST
This doesn't block bug 31124 anymore, now that the patch in attachment 43084 [details] has landed.
Comment 11 Adam Barth 2009-11-12 18:40:49 PST
These patches claim to have been landed.
Comment 12 Adam Roben (:aroben) 2009-11-12 20:40:12 PST
Yes, but there are more coming (eventually).
Comment 13 Adam Barth 2009-11-12 21:41:46 PST
Why not use one patch per bug?  It's hard to follow these bugs once they go epic.
Comment 14 Adam Barth 2009-11-12 21:42:03 PST
Comment on attachment 43084 [details]
Remove worldIDs from WebKit's SPI

Remove from pending-commit.
Comment 15 Adam Roben (:aroben) 2009-11-13 07:40:34 PST
(In reply to comment #13)
> Why not use one patch per bug?  It's hard to follow these bugs once they go
> epic.

OK, I'll do that.
Comment 16 Adam Roben (:aroben) 2009-11-13 07:57:27 PST
OK, I have one more teeny patch that really does belong in this bug. But then I'll move to a new one, I promise!
Comment 17 Adam Roben (:aroben) 2009-11-13 08:54:35 PST
Created attachment 43162 [details]
Finish replacing worldIDs with world objects
Comment 18 Mark Rowe (bdash) 2009-11-13 08:56:00 PST
Comment on attachment 43162 [details]
Finish replacing worldIDs with world objects

r=me
Comment 19 Adam Roben (:aroben) 2009-11-13 08:59:35 PST
Committed r50943: <http://trac.webkit.org/changeset/50943>