"Unparseable host permission" error displayed in the browser console

VERIFIED FIXED in Firefox 58

Status

defect
P3
normal
VERIFIED FIXED
2 years ago
Last year

People

(Reporter: cbadescu, Assigned: aswan)

Tracking

57 Branch
mozilla58
All
Android
Dependency tree / graph

Firefox Tracking Flags

(firefox55 unaffected, firefox56 unaffected, firefox57 wontfix, firefox58 verified)

Details

Attachments

(3 attachments)

Posted image mozextension.gif
[Affected versions]:
- Firefox 57.0a1 (2017-09-10) 

[Affected platforms]:
- Android 6.0.1

[Prerequisites]
- set xpinstall.signatures.dev-root to true
- set xpinstall.signatures.required to false
- set extensions.webapi.testing to true
- set extensions.webextPermissionPrompts to true

[Steps to reproduce]:
1.Tap the toggle button from https://addons-dev.allizom.org/en-US/firefox/addon/testingstorage/ 
2.Look at the browser console.

[Expected results]:
- No error is displayed.

[Actual results]:
- The Unparseable host permission moz-extension://2068d18d-b2ce-4a73-a3fc-cc24ab3cf2f2/*
Extension.jsm:838 error is displayed.

Please see the attached video.
I've investigated this issue a bit and it seems that it is related to an implicit "moz-extension://" host permission that any extension gets on its own extension URL:

- http://searchfox.org/mozilla-central/rev/00fa5dacedb925022f53d025121f1a919508e7ce/toolkit/components/extensions/Extension.jsm#602-604

Which is then is logged as an error when ExtensionData.formatPermissionStrings helper function checks the extension host permissions:

- http://searchfox.org/mozilla-central/rev/00fa5dacedb925022f53d025121f1a919508e7ce/toolkit/components/extensions/Extension.jsm#836-840
Assignee: nobody → aswan
Priority: -- → P3
Component: WebExtensions: Android → WebExtensions: General
Summary: moz-extension error displayed in the browser console for Android → "Unparseable host permission" error displayed in the browser console
Attachment #8925739 - Flags: review?(mixedpuppy)
Comment on attachment 8925739 [details]
Bug 1398762 Fix unparseable host permission warning

https://reviewboard.mozilla.org/r/196886/#review202348
Attachment #8925739 - Flags: review?(mixedpuppy) → review+
Pushed by aswan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f3fe7b47cdac
Fix unparseable host permission warning r=mixedpuppy
https://hg.mozilla.org/mozilla-central/rev/f3fe7b47cdac
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Posted file Bug1398762.zip
This issue is verified as fixed on Firefox 58.0a1 (2017-11-08) under Wind 7 64-bit, Mac OS X 10.13 and Android 7.1.2. 

The unparseable host permission warning is not displayed in the browser console.  

Please see the attached video.
Status: RESOLVED → VERIFIED
Depends on: 1426363
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.