Bug 93701 - Web Inspector: [Extensions API] - Exposing Geolocation override APIs as extension APIs
Summary: Web Inspector: [Extensions API] - Exposing Geolocation override APIs as exten...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 02:10 PDT by Vivek Galatage
Modified: 2014-12-12 14:36 PST (History)
11 users (show)

See Also:


Attachments
Geolocation extension APIs (47.80 KB, image/png)
2012-08-10 02:10 PDT, Vivek Galatage
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vivek Galatage 2012-08-10 02:10:56 PDT
Created attachment 157683 [details]
Geolocation extension APIs

It would be nice to have third party dev tools extensions built using location aware services.

Once the location override APIs are exposed (considering all the necesarry permissions/security considerations), it would provide intuitive interface through which the web developers can verify their location aware services/apps.

I am attaching the mock UI for demonstration purpose.
Comment 1 Vivek Galatage 2012-08-10 02:12:29 PDT
I would be glad to receive comments on the said feature before commencing actual work.
Comment 2 Pavel Feldman 2012-08-10 03:01:44 PDT
So we are essentially talking about the third party chooser for the location? I would be open to it. But it sounds like a minor feature to me, while the API will be there forever. I wonder if clients should use the protocol instead.
Comment 3 Vivek Galatage 2012-08-10 03:33:42 PDT
(In reply to comment #2)
> So we are essentially talking about the third party chooser for the location? 

Yes its about third party chooser.

> I would be open to it. But it sounds like a minor feature to me, while the API will be there forever. 

Are you referring to extension API or the one introduced by http://trac.webkit.org/browser/trunk/Source/WebCore/inspector/Inspector.json#L355 in 89365?

> I wonder if clients should use the protocol instead.

I was considering it on the similar lines of chrome devTools extensions API. Is there a different process followed within the webkit for the extension APIs?
Comment 4 Pavel Feldman 2012-08-10 06:29:41 PDT
Chrome's devtools extensibility is based on the front-end's one, it is leaving upstream. I was referring to the http://developer.chrome.com/extensions/debugger.html that exposes the function in json you are pointing to (many WebKit-based browsers expose inspector protocol these days).
Comment 5 Pavel Feldman 2012-08-10 06:30:27 PDT
I.e. there already is a way to implement such a chooser, but it is based on non-public protocol API.
Comment 6 Vivek Galatage 2012-08-10 08:28:37 PDT
(In reply to comment #4)
> Chrome's devtools extensibility is based on the front-end's one, it is leaving upstream. I was referring to the http://developer.chrome.com/extensions/debugger.html that exposes the function in json you are pointing to (many WebKit-based browsers expose inspector protocol these days).

Oh thats great. I was not aware of this. Thank you!

(In reply to comment #5)
> I.e. there already is a way to implement such a chooser, but it is based on non-public protocol API.
In that case we don't need to have this bug for exposing such an API. Only concern could be non-public API but considering the current experimental state of geolocation override, it would be difficult to draft a public API. Please let me know if you think otherwise.
Comment 7 Pavel Feldman 2012-08-10 08:43:07 PDT
> In that case we don't need to have this bug for exposing such an API. Only concern could be non-public API but considering the current experimental state of geolocation override, it would be difficult to draft a public API. Please let me know if you think otherwise.

I agree. One additional note is that there can only be one instance of the protocol client attached. So whenever your protocol client emulates the location, devtools / inspector window can't be used.
Comment 8 Brian Burg 2014-12-12 14:36:44 PST
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests.
Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.