Open Bug 1945285 Opened 1 year ago Updated 1 year ago

Rapid repeated Geolocation requests freeze browser

Categories

(Core :: DOM: Geolocation, defect)

Firefox 134
defect

Tracking

()

Tracking Status
firefox136 --- affected

People

(Reporter: austin.donisan, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: hang)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0

Steps to reproduce:

Go to a site that makes infinite geolocation requests.

Real site:
https://www.servpro.com/

Test case:
https://cloud.hideaway-hotel.com/location.html

Actual results:

The permission requests banner flickers and is impossible to click. Trying to navigate to another tab freezes the entire browser and and you have to kill Firefox with Task Manager.

Expected results:

You should get a single prompt for location permissions. Chrome handles this edge case fine.

Attached video bug.mp4
Component: Untriaged → DOM: Geolocation
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: hang

I can repro that the prompt is not usable, however at least on my dev machine using Ubuntu 24.10 I don't see a parent process hang, therefore setting to S3.

David, is this something you are familiar with?

Severity: -- → S3
Flags: needinfo?(davidp99)

On Windows it does hang. And it's basically bug 1912721. We need some backpressure.

Not duping to bug 1912721 because that one can also be fixed by returning different permission state.

See Also: → 1912721

This is really a permission manager thing.

Component: DOM: Geolocation → Permission Manager
Flags: needinfo?(davidp99)

Back to Geolocation as it turns out that the IPC itself happens elsewhere via PContentPermissionRequest.

Component: Permission Manager → DOM: Geolocation
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: