Applications with permission for location claim they don't

Bug #1588500 reported by Bob Harvey
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
webbrowser-app (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

OTA11 - same problem on BQ4.5phone & M10 tablet.

Hurray! Location works on the tablet at last.. HERE maps can get a position.

But I can't use the location in the browser or a browser-like web app.. It used to work on the phone in OTA10.1

Revision history for this message
Bob Harvey (bobharvey) wrote :
Revision history for this message
Bob Harvey (bobharvey) wrote :
Revision history for this message
Bob Harvey (bobharvey) wrote :
Revision history for this message
Bob Harvey (bobharvey) wrote :
Revision history for this message
Bob Harvey (bobharvey) wrote :
Revision history for this message
Bob Harvey (bobharvey) wrote :
Revision history for this message
Bob Harvey (bobharvey) wrote :

Non-browser based app is absolutely fine (Réaltai)

Revision history for this message
Bob Harvey (bobharvey) wrote :

Tried the metvoffice example in Firefox.. Had to grant 'always' permission in the dialogue, but then it worked.. Going back to the app permissions for location I could not find Firefox listed.

Revision history for this message
Alberto Mardegan (mardy) wrote :

Reassigning to webbrowser-app for investigation.

affects: location-service (Ubuntu) → webbrowser-app (Ubuntu)
Revision history for this message
Olivier Tilloy (osomon) wrote :

This message, from the browser log, is relevant:

qml: [JS] (:0) getCurrentPosition() and watchPosition() are deprecated on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

This is enforced by chromium: websites and webapps that want to access the device’s location will need to do so over HTTPS.

Changed in webbrowser-app (Ubuntu):
status: New → Invalid
Revision history for this message
Bob Harvey (bobharvey) wrote :

Invalid, you say.
Well, the UK Met office is a government body outside my control, and the bundled web app for it in the Ubuntu store certainly is. I suppose that will have to be removed.

I have passed your comments on to the UK met office via their technical fault form on the web site.

Changed in webbrowser-app (Ubuntu):
status: Invalid → New
Revision history for this message
Bob Harvey (bobharvey) wrote :

Anyway, I don't see how this can be an invalid bug. Why did I not get an appropriate dialogue on the tablet explainging what was wrong? why did I have to come to Launchpad for an explanation (lucid and sensible though it be)?

Surely if Ubuntu's implimentation of the browser is enforcing this security issue, it is incumbent upon Ubuntu to say so when it does?

So the bug has become "No dialogue explaining security enforcement for non-secure urls asking for location".

Revision history for this message
Olivier Tilloy (osomon) wrote :

I understand this is not great UX, from a user perspective some sites used to work and they don’t anymore. There is not much we can do about it though: the web engine the browser app uses is based on chromium, and chromium is intentionally denying geolocation requests on insecure origins starting with version 50. See https://bugs.chromium.org/p/chromium/issues/detail?id=561641 for a detailed discussion.

I verified that chromium on desktop and chrome on android behave exactly the same: they deny the geolocation request.
Firefox currently accepts them, but I read somewhere that they are considering deprecating the feature in the same manner, so it’s only a matter of time before the feature stops working there too.

Note that before blocking the feature, it had been marked deprecated long in advance, and web developers would get a message in the javascript console warning that the feature would eventually be blocked. metoffice.gov.uk and streetmap.co.uk have ignored that warning, and that results in bad UX. This is unfortunate, but again there is not much we can do about it (nothing really), as we’re not getting a signal from chromium that a request has been denied because it originated from an insecure origin.

Thanks for forwarding the info to the UK met office, I’m sure they’ll consider addressing it asap.

Changed in webbrowser-app (Ubuntu):
status: New → Won't Fix
Revision history for this message
Bob Harvey (bobharvey) wrote :

Thanks, at least, for the thoughtful reply.

Revision history for this message
Bob Harvey (bobharvey) wrote :

Response today from the UK met office:
========================================
Hi Robert,

Thanks for your feedback and investigation into our use of http over https. We are aware of a requirement to move over to https. There would be many systems which might be impacted during a change to https so naturally this may take a long time to implement.

Thanks

Henry Ford

Internet Applications

Revision history for this message
Olivier Tilloy (osomon) wrote :

One would expect they would have seen it coming, but at least all hope is not lost, it will eventually work again…

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.