[Bug] Geolocation watchPosition is able to flood alerts
Categories
(Firefox for Android :: Browser Engine, defect, P5)
Tracking
()
People
(Reporter: cpeterson, Unassigned)
Details
Attachments
(1 obsolete file)
From github: https://github.com/mozilla-mobile/android-components/issues/7342.
Taken from https://bugzilla.mozilla.org/show_bug.cgi?id=1627597
More discussions in Bugzilla
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
Steps to reproduce:
Call navigator.geolocation.watchPosition() with an error function that alerts the user and the option to timeout after a short period of time (250ms, in my case). A minimum page to reproduce this is pasted below. I had to run a webserver to open this on my phone.
<html>
<script>
navigator.geolocation.watchPosition(
function(){},
function() {
alert("error");
},
{"timeout": 250}
);
</script>
</html>Actual results:
The client is flooded with alerts at a speed where clicking "Prevent this page from making additional dialogs" and the "Ok" button are not possible. This forces the user to completely exit the application or the browser will crash.
Expected results:
I expected one alert to appear at a time, or for Firefox to have prevented this in some way.
┆Issue is synchronized with this Jira Task
Change performed by the Move to Bugzilla add-on.
Comment 1•3 years ago
|
||
The severity field is not set for this bug.
:cpeterson, could you have a look please?
For more information, please visit auto_nag documentation.
| Reporter | ||
Updated•3 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•