window.navigator.geolocation.getCurrentPosition() gets http 400 response - Not clear that Dartium doesn't support geolocation #15866
Labels
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
This issue was originally filed by @terrasea
What steps will reproduce the problem?
window.navigator
.geolocation.getCurrentPosition()
..then((pos) {
window.alert(pos.toString());
})
..catchError((PositionError error) {
window.alert("Error code: ${error.code}, Error message: ${error.message}");
})
..whenComplete(() => window.alert("complete"))
2. run it in Dartium launched from DartEditor
What is the expected output?
I expect to see a window alert with my current position as the message
What do you see instead?
"Error code: 2, Error message: Network location provider at 'https://www.googleapis.com/' : Returned error code 400."
Dartium version info
Chromium 31.0.1650.48 (Developer Build 240209)
OS Linux
Blink 537.36 (@164190)
JavaScript V8 3.21.18.2
Dart 1.1.0-dev.5.0
Flash (Disabled)
User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.48 (Dart) Safari/537.36
Command Line /home/terrasea/share/dart/chromium/chrome --remote-debugging-port=42085 --user-data-dir=/home/terrasea/.dartium --enable-experimental-webkit-features --enable-devtools-experiments --no-first-run --no-default-browser-check --no-process-singleton-dialog --flag-switches-begin --enable-devtools-experiments --flag-switches-end chrome://version/
Executable Path /home/terrasea/share/dart/chromium/chrome
Profile Path /home/terrasea/.dartium/Default
Variations b178bdde-887f97ea
b03ddc1f-2d9ef0cc
f9b252d0-fd526c81
262f996f-eeefeb17
24dca50e-837c4893
ca65a9fe-91ac3782
5e29d81-cf4f6ead
246fb659-a90023b1
f296190c-24dd8f80
4442aae2-a90023b1
ed1d377-e1cc0f14
75f0f0a0-d7f6b13c
e2b18481-cdc3d902
e7e71889-e1cc0f14
OS and machine details.
Linux james-laptop 3.8.0-rc2 #11 SMP PREEMPT Thu Jan 2 18:05:49 NZDT 2014 x86_64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz GenuineIntel GNU/Linux
Additional information.
This same code, when run through "pub serve" or "pub build" works perfectly fine on Google Chrome and Firefox.
The text was updated successfully, but these errors were encountered: