How to un-deny geolocation to a page?

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

20. August 2012, 19:58:57

rulatir

Posts: 21

How to un-deny geolocation to a page?

I cannot find any obvious UI to un-deny geolocation to a page after I have once denied it. How do I?

20. August 2012, 20:07:18

Frenzie

Posts: 14416

I assume site preferences (under right click or Alt+F12) should do the trick. There's a tab there named "web applications", but I don't know if that's the relevant one.
Intelligent alien life does exist, otherwise they would've contacted us. — CalendarExtend Opera

21. August 2012, 10:19:37

mochikun

Posts: 805

Right click page > Edit site preferences > Network > Let the website know my location
Opera 11.64, Puppy Linux 5.28

21. August 2012, 12:41:32

rif

Posts: 561

Originally posted by rulatir:

I cannot find any obvious UI to un-deny geolocation to a page after I have once denied it. How do I?

The only for sure way that I know of is...Tools, Delete Private Data, Check Delete Geolocation Data

When deleting private data make sure you only delete what you want deleted.

Originally posted by mochikun:

Right click page > Edit site preferences > Network > Let the website know my location

There is no option there for location.

21. August 2012, 12:47:41

rif

Posts: 561

Ok, I think I found another way. Ctrl-F12, Advanced, Storage, Delete the site you want to change your choice for.

Never mind, that doesn't do it! I guess the only way is to delete private data.

I will award one (1) "Atta Boy" to the first person who discovers what file Opera uses to store this info!

21. August 2012, 14:17:12 (edited)

mochikun

Posts: 805

Originally posted by rif:


Originally posted by mochikun:

Right click page > Edit site preferences > Network > Let the website know my location

There is no option there for location.


Did you really look? On the Network tab it's the second dropdown field from bottom, called "Let the website know my location". When geolocation is denied, Opera creates a section in override.ini (the file that stores site preferences) and sets this value to "No". In override.ini it then looks like this:
[html5demos.com]
User Prefs|Geolocation site state=0

In other words: Opera creates a site preference which you then can change with the normal site preference dialog
Opera 11.64, Puppy Linux 5.28

21. August 2012, 15:12:29 (edited)

rif

Posts: 561

Originally posted by mochikun:

Did you really look? On the Network tab it's the second dropdown field from bottom, called "Let the website know my location". When geolocation is denied, Opera creates a section in override.ini (the file that stores site preferences) and sets this value to "No". In override.ini

i really did look. Here's what mine looks like. I'm running 12.01 64bit on Win 7

Interesting. Even if I put the line User Prefs|Geolocation site state=1 into my override.ini file for a site its not recognized.

At html5demos.com/geo I don't get the popup box asking to allow, not allow, allow once that I do on my 32 bit installs of Opera. I get the below older style box.

Is this a 32 bit vs 64 bit issue???

21. August 2012, 15:48:03 (edited)

mochikun

Posts: 805

I tested with 11.64. Where you see "Use application cache" in 12.01 there used to be "Let the website know my location" in 11.64.
Both are different settings. It seems to me that Opera ASA simply forgot the latter.

Here is what happens in both Opera versions:
After you've globally enabled geolocation (Preferences > Advanced > Network >Enable geolocation) and go to the website http://html5demos.com/geo, Opera will ask you if you want to allow geolocation for this site. If you deny Opera will make an entry in override.ini as in my previous post.
In 11.64 you can later allow geolocation for this site by changing "Let the website know my location" in the Site Preferences dialog.
In 12.01 there is no such option in Site Preferences. You can however edit override.ini manually and set
User Prefs|Geolocation site state=1
Deleting the whole entry should also work.

Looks like a bug to me. Hard to believe that this GUI change was intentional. Here is a similar thread with the same problem. BTW: Deleting Private Data is not a solution.


Edit:
1) User Prefs|Geolocation site state=1 will work after restarting Opera
2) I see a sleek dialog box, not your ugly JavaScript dialog wink
Opera 11.64, Puppy Linux 5.28

21. August 2012, 16:09:57

rif

Posts: 561

Originally posted by mochikun:

Looks like a bug to me. Hard to believe that this GUI change was intentional. Here is a similar thread with the same problem.

I agree.

Well I figured out another problem. I had installed this along time ago, http://my.opera.com/XAntares/blog/xageolocationapi-html5-geolocation-api-emulation-layer-userjs

Thats what was giving me the weird js popup box.

Now all I have to figure out is why the laptop and the desktop give me different locations at html5demos.com/geo!!!!

21. August 2012, 18:57:06

Moderator

sgunhouse

Volunteer

Posts: 64791

Obviously, deleting site preferences for that site would work - but you'd lose your other preferences for that site as well. Manage Site Preferences can be found under Preferences > Advanced > Content.

22. August 2012, 04:59:59

rulatir

Posts: 21

Thanks everyone for your responses and suggestions. I too think this is a bug. IMO the best place to put the missing UI is in the (backtranslated) "Security and trust" pane under the globe icon on the left of the address bar.

Forums » Opera for Windows/Mac/Linux » Opera browser