Bug 81126 - [Qt] Geolocation not working
Summary: [Qt] Geolocation not working
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-14 09:43 PDT by jingdow
Modified: 2014-02-03 03:20 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jingdow 2012-03-14 09:43:42 PDT
qtwebkit compiled from WebKit-r110695 (with --geolocation build flag). Qtmobility is installed. Geolocation is reported on html5test.com (and other sites). However, it is not working, tested browsers do not send a request for disclosure of location. For example, this site here:

http://alvinwoon.com/source/javascript%20geolocation%20api/

produces this prompt: http://s8.postimage.org/xts2p783n/geolprompt.png

If any other information is needed, I'm willing to cooperate.
Comment 1 jingdow 2012-03-14 09:56:16 PDT
Note: In my test browser, in slot connected to  featurePermissionRequested  signal, setFeaturePermission(frame, feature, PermissionGrantedByUser);  is called (permission is thus granted correctly in app).
Comment 2 Martin Leutelt 2012-07-19 07:05:42 PDT
Setup:
OS: OpenSuse 11.4
Qt Version: Qt5 (7e062e)
WebKit built from 5ceee4

It looks like the only way to get any kind of positioning data on the desktop would be to have the geoclue package installed. However geoclue doesn't seem to work at all on OpenSuse 11.4 but I also tested on Ubuntu 12.04 and there it worked fine (tested with geoclue-test-ui).

Regarding qtmobility: there is a wrapper (qgeopositioninfosource_geocluemaster) in the locations module to access geoclue but that is only built for meego, not for the desktop. So, you're out of luck with qtmobility on desktop.

For qt5 it looks a little bit different. The location stuff has moved from qtmobility to its own qt module called QtLocation. With the geoclue package installed I was able to compile the plugin. When starting the QtTestBrowser the
plugin gets loaded but it ultimately failes since geoclue doesn't run on OpenSuse. On Ubuntu it would probably work but I didn't try that.

So as far as I can see this isn't actually a bug.
Comment 3 Jocelyn Turcotte 2014-02-03 03:20:21 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.