Bug 40065 - Geolocation callbacks should make use of new callback generation mechanism
Summary: Geolocation callbacks should make use of new callback generation mechanism
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Steve Block
URL:
Keywords:
Depends on: 39879
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-02 08:24 PDT by Steve Block
Modified: 2011-05-24 03:55 PDT (History)
7 users (show)

See Also:


Attachments
Patch (55.27 KB, patch)
2011-04-13 03:57 PDT, Steve Block
no flags Details | Formatted Diff | Diff
Patch (68.99 KB, patch)
2011-04-13 08:47 PDT, Steve Block
no flags Details | Formatted Diff | Diff
Patch (52.04 KB, patch)
2011-05-23 15:36 PDT, Steve Block
no flags Details | Formatted Diff | Diff
Patch (65.94 KB, patch)
2011-05-24 02:38 PDT, Steve Block
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Block 2010-06-02 08:24:53 PDT
Geolocation callbacks should make use of new callback generation mechanism. This will remove the need for the Geolocation custom callback code. See the equivalent change for Database in http://trac.webkit.org/changeset/58801
Comment 1 Steve Block 2010-06-02 11:12:18 PDT
Bug 40071 is adding a weak pointer wrapper around ScriptExecutionContext. This is required for Bug 39879 which fixes a Geolocation crash. We should hold off on switching to the generated callbacks until this is complete and Geolocation tests are in place to check the behavior.
Comment 2 Steve Block 2011-03-24 03:55:46 PDT
The resolution of Bug 40071 was to not use a weak wrapper around ScriptExecutionContext, but instead to make callbacks inherit from ActiveDOMObject. The (hand written) Geolocation callbacks were updated to use this approach in http://trac.webkit.org/changeset/60840

http://trac.webkit.org/changeset/58801 updated the bindings script to automatically generate callbacks, and updated all DB callbacks to be automatically generated. The automatically generated callbacks were updated in http://trac.webkit.org/changeset/64537 to use ActiveDOMObject, similar to how the Geolocation callbacks do.

So we should now be able to switch to the automatically generated callbacks for Geolocation.

Note that there is ongoing discussion about a more fundamental refactoring of Geolocation - https://bugs.webkit.org/show_bug.cgi?id=40162 - but I think that eliminating custom bindings code still makes sense now.
Comment 3 Steve Block 2011-03-24 04:07:18 PDT
Adding Leandro as this will be relevant to Media Streaming. See Bug 56459.
Comment 4 Steve Block 2011-04-13 03:57:52 PDT
Created attachment 89361 [details]
Patch
Comment 5 Daniel Bates 2011-04-13 04:30:58 PDT
Attachment 89361 [details] did not build on mac:
Build output: http://queues.webkit.org/results/8404205
Comment 6 Build Bot 2011-04-13 05:20:30 PDT
Attachment 89361 [details] did not build on win:
Build output: http://queues.webkit.org/results/8401286
Comment 7 Steve Block 2011-04-13 08:47:33 PDT
Created attachment 89382 [details]
Patch
Comment 8 Eric Seidel (no email) 2011-05-23 15:15:48 PDT
Comment on attachment 89382 [details]
Patch

Um.  I like deleting code.  So rs=me.
Comment 9 Steve Block 2011-05-23 15:36:57 PDT
Created attachment 94505 [details]
Patch
Comment 10 Steve Block 2011-05-23 15:39:52 PDT
Not for review.

Rebased to account for deletion of android Makefiles. Will wait for bots to cycle before submitting.
Comment 11 WebKit Commit Bot 2011-05-23 22:45:03 PDT
Comment on attachment 94505 [details]
Patch

Attachment 94505 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/8727497
Comment 12 Steve Block 2011-05-24 02:38:49 PDT
Created attachment 94586 [details]
Patch
Comment 13 Steve Block 2011-05-24 03:54:48 PDT
Committed r87143: <http://trac.webkit.org/changeset/87143>