Closed
Bug 766281
Opened 13 years ago
Closed 8 years ago
ContentPermissionPrompt handleExistingPermission - handle null URIs
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: dougt, Assigned: fabrice)
Details
gaia wants to use device APIs from chrome. We don't have a URI for the document that is running that code and see this assertion:
[12:45:04] E/GeckoConsole( 116): [JavaScript Error: "[Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIPermissionManager.testExactPermission]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: jar:file:///system/b2g/omni.ja!/components/ContentPermissionPrompt.js :: handleExistingPermission :: line 18" data: no]"
We grab the uri from the document like this:
http://mxr.mozilla.org/mozilla-central/search?string=+//+Grab+the+uri+of+the+document
Maybe there is a better way to grab the document's uri for chrome -- or maybe we should just check to see if the request has a uri before using it.
Comment 1•13 years ago
|
||
This bug is blocking our ability to take screenshots (Home+Sleep) from Gaia.
If this is hard or unlikely to be fixed soon, please let me know so I can revert Gaia back to its crappy content-only screenshots, which are at least better than nothing.
Comment 2•13 years ago
|
||
If https://bugzilla.mozilla.org/show_bug.cgi?id=768701 lands, then I don't need this bug fixed for Gaia system screenshots.
Comment 3•8 years ago
|
||
FxOS has been removed, we can refile this if we need chrome access to APIs that need permission.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•