Open Bug 1192797 Opened 6 years ago Updated 6 years ago

[e10s] getCurrentPosition returning <unavailable>

Categories

(Core :: DOM: Content Processes, defect)

defect
Not set
normal

Tracking

()

Tracking Status
e10s - ---
firefox43 --- affected

People

(Reporter: adalucinet, Unassigned)

References

()

Details

Reproducible with latest Developer Edition 41 and Nightly 42, both from 2015-08-09
Affected platforms: Windows 7 64-bit, Ubuntu 14.04 32-bit and Mac OS X 10.10.4

Steps to reproduce:
1. Launch Firefox with e10s enabled.
2. Enable the Browser Console (Cmd/Ctrl + Shift + J).
3. Navigate to http://davidwalsh.name/demo/geolocation.php
4. Click on 'Get My Location' button and Share your location when prompted.

Expected result: Current position is displayed in Browser Console.
Actual result: 'Your position:  <unavailable>' thrown by geolocation.php:26 in Browser Console.

Additional notes:
1. Works with e10s disabled.
2. Not a regression - reproduces back to Nightly 2014-11-07 when electrolysis was first enabled by default.
The simplest testing method I know of is to load http://www.example.com, open the dev tools (option-cmd-i on the mac) and do a manual js request of the current position.
The output looks like this on e10s with mac 10.10.4 for me:

> navigator.geolocation.getCurrentPosition(function(position) {
					console.log('Your position: ', position);
				});
> undefined
> Your position:  Position { coords: Coordinates, timestamp: 1439214551006 }
Summary: [e10s] Unable to get location via http://davidwalsh.name/demo/geolocation.php → [e10s] getCurrentPosition returning <unavailable>
What's curious to me that the web console shows an actual position, while the browser console gets a `<unavailable>` error. I'm not even sure how that error is reaching the browser console; I would expect it to go to the web console.
Oh, this is a limitation of serializing data over e10s: http://mxr.mozilla.org/mozilla-central/source/toolkit/components/processsingleton/ContentProcessSingleton.js#47 . Fascinating!
Component: Geolocation → DOM: Content Processes
tracking-e10s: --- → -
You need to log in before you can comment on or make changes to this bug.