2

1637059 - add/move permission to optional_permissions caused error

 3 years ago
source link: https://bugzilla.mozilla.org/show_bug.cgi?id=1637059
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Reporter

Description

7 months ago

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0

Steps to reproduce:

Moved webRequest fro permission to optional permission

  1. on Firefox start
  2. addon disable/enable

Tried to reproduce this as a separate xpi testcase for this bug, but there was all working.

Actual results:

  1. on firefox start

can't access property "primeListener", api is undefined ExtensionCommon.jsm:2285
primeListeners resource://gre/modules/ExtensionCommon.jsm:2285
onManifestEntry chrome://extensions/content/parent/ext-backgroundPage.js:156
asyncEmitManifestEntry resource://gre/modules/ExtensionCommon.jsm:1546
AsyncFunctionNext self-hosted:693
(Async: async)
runManifest resource://gre/modules/Extension.jsm:2203
addStartupStatePromise resource://gre/modules/Extension.jsm:1905
addPromise resource://gre/modules/Extension.jsm:2197
runManifest resource://gre/modules/Extension.jsm:2202
startup resource://gre/modules/Extension.jsm:2504
addStartupStatePromise resource://gre/modules/Extension.jsm:1905
startup resource://gre/modules/Extension.jsm:2503
AsyncFunctionNext self-hosted:693
(Async: async)
startup resource://gre/modules/Extension.jsm:1699
callBootstrapMethod resource://gre/modules/addons/XPIProvider.jsm:1803
startup resource://gre/modules/addons/XPIProvider.jsm:1907
startup resource://gre/modules/addons/XPIProvider.jsm:2506
callProvider resource://gre/modules/AddonManager.jsm:212
_startProvider resource://gre/modules/AddonManager.jsm:583
startup resource://gre/modules/AddonManager.jsm:807
startup resource://gre/modules/AddonManager.jsm:3440
observe resource://gre/modules/addonManager.js:87
1589219456752 addons.xpi WARN Exception running bootstrap method startup on xxx-xxx@xxxxxxxx: TypeError: can't access property "primeListener", api is undefined(resource://gre/modules/ExtensionCommon.jsm:2285:11) JS Stack trace: [email protected]:2285:11
[email protected]:156:18
[email protected]:1546:18
async_runManifest/<@Extension.jsm:2203:[email protected]:1905:[email protected]:2197:[email protected]:2202:19startup/<@Extension.jsm:2504:[email protected]:1905:[email protected]:2503:[email protected]:1699:27
[email protected]:1803:33
[email protected]:1907:32
[email protected]:2506:39
[email protected]:212:31
[email protected]:583:17
[email protected]:807:14
[email protected]:3440:26
[email protected]:87:29

  1. addon disable/enable
    no failure

Expected results:

  1. on Firefox start
    no failure

  2. addon disable/enable
    no failure


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK