Closed Bug 1398762 Opened 8 years ago Closed 8 years ago

"Unparseable host permission" error displayed in the browser console

Categories

(WebExtensions :: General, defect, P3)

57 Branch
All
Android
defect

Tracking

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

VERIFIED FIXED
mozilla58
Tracking Status
firefox55 --- unaffected
firefox56 --- unaffected
firefox57 --- wontfix
firefox58 --- verified

People

(Reporter: cbadescu, Assigned: aswan)

References

Details

Attachments

(3 files)

Attached 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)
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
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Attached 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
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: