Closed Bug 1748548 Opened 5 months ago Closed 3 months ago

privacy and browserSettings namespace persistent listeners

Categories

(WebExtensions :: General, enhancement, P2)

enhancement
Points:
1

Tracking

(firefox99 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: mixedpuppy, Assigned: mixedpuppy, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

Modifications to support non-persistent background scripts (event pages and/or service workers)

Duplicate of this bug: 1748560
Summary: browserSettings namespace persistent listeners → privacy and browserSettings namespace persistent listeners
Assignee: nobody → mixedpuppy
Status: NEW → ASSIGNED
Pushed by scaraveo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2f3db059a9d0
settings support for persistent listeners r=rpl

Backed out for Android xpcshell failures on test_ext_browserSettings.js.

Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Cusercancel&revision=2f3db059a9d05d44e265fb0430b162eb11a5cf0d&selectedTaskRun=ZerYJiHVRxCfNjO6RkEPJA.0

Failure log: https://treeherder.mozilla.org/logviewer?job_id=367457763&repo=autoland

Backout link: https://hg.mozilla.org/integration/autoland/rev/90590e379bf48e0248304c73552e20a25833952b

task 2022-02-10T20:35:48.996Z] 20:35:48     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js | test_bad_value - [test_bad_value : 181] Promise rejected, expecting rejection to match '/bad is not a valid value for zoomSiteSpecific/', got 'Error: bad is not a valid value for zoomSiteSpecific.': zoomSiteSpecific.set rejects with an invalid value. - true == true
[task 2022-02-10T20:35:48.996Z] 20:35:48     INFO -  (xpcshell/head.js) | test run_next_test 3 pending (2)
[task 2022-02-10T20:35:48.996Z] 20:35:48     INFO -  (xpcshell/head.js) | test test_bad_value finished (2)
[task 2022-02-10T20:35:48.996Z] 20:35:48     INFO -  xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js | Starting test_bad_value_android
[task 2022-02-10T20:35:48.996Z] 20:35:48     INFO -  (xpcshell/head.js) | test test_bad_value_android pending (2)
[task 2022-02-10T20:35:48.996Z] 20:35:48     INFO -  "Extension attached"
[task 2022-02-10T20:35:48.996Z] 20:35:48     INFO -  (xpcshell/head.js) | test run_next_test 3 finished (2)
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  "CONSOLE_MESSAGE: (info) ExtensionPreferencesManager API ftpProtocolEnabled created but addSetting was not called."
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "[Exception... "AddonManager is not initialized"  nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)"  location: "JS frame :: resource://gre/modules/AddonManager.jsm :: getAddonByID :: line 2590"  data: no]"]
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  getAddonByID@resource://gre/modules/AddonManager.jsm:2590:24
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  getAddonByID@resource://gre/modules/AddonManager.jsm:3991:33
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  addSetting@resource://gre/modules/ExtensionSettingsStore.jsm:412:38
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  _do_main@/data/local/tmp/test_root/xpc/head.js:240:6
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:604:5
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  @-e:1:1
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  "
[task 2022-02-10T20:35:48.997Z] 20:35:48  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js | test_bad_value_android - [test_bad_value_android : 181] Promise rejected, expecting rejection to match '/android is not a supported platform for the closeTabsByDoubleClick setting/', got 'Error: An unexpected error occurred': closeTabsByDoubleClick.set rejects on Android. - false == true
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  resource://testing-common/ExtensionXPCShellUtils.jsm:handleResult:181
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  resource://gre/modules/ExtensionCommon.jsm:emit:322
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  resource://gre/modules/Extension.jsm:receiveMessage:2286
[task 2022-02-10T20:35:48.997Z] 20:35:48     INFO -  /data/local/tmp/test_root/xpc/head.js:_do_main:240
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  /data/local/tmp/test_root/xpc/head.js:_execute_test:604
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  -e:null:1
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  exiting test
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "[Exception... "Abort"  nsresult: "0x80004004 (NS_ERROR_ABORT)"  location: "JS frame :: /data/local/tmp/test_root/xpc/head.js :: _abort_failed_test :: line 875"  data: no]"]
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  _abort_failed_test@/data/local/tmp/test_root/xpc/head.js:875:20
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  do_report_result@/data/local/tmp/test_root/xpc/head.js:976:5
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  Assert<@/data/local/tmp/test_root/xpc/head.js:75:21
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  proto.report@resource://testing-common/Assert.jsm:228:10
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  proto.ok@resource://testing-common/Assert.jsm:254:10
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  handleResult@resource://testing-common/ExtensionXPCShellUtils.jsm:181:24
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  emit@resource://gre/modules/ExtensionCommon.jsm:322:32
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  receiveMessage@resource://gre/modules/Extension.jsm:2286:20
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  _do_main@/data/local/tmp/test_root/xpc/head.js:240:6
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:604:5
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  @-e:1:1
[task 2022-02-10T20:35:48.998Z] 20:35:48     INFO -  "
[task 2022-02-10T20:35:48.998Z] 20:35:48  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js | test_bad_value_android - [test_bad_value_android : 181] Promise resolved, expected rejection '/android is not a supported platform for the closeTabsByDoubleClick setting/': closeTabsByDoubleClick.get rejects on Android. - false == true
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  resource://testing-common/ExtensionXPCShellUtils.jsm:handleResult:181
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  resource://gre/modules/ExtensionCommon.jsm:emit:322
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  resource://gre/modules/Extension.jsm:receiveMessage:2286
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  /data/local/tmp/test_root/xpc/head.js:_do_main:242
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  /data/local/tmp/test_root/xpc/head.js:_execute_test:604
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  -e:null:1
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  exiting test
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "[Exception... "Abort"  nsresult: "0x80004004 (NS_ERROR_ABORT)"  location: "JS frame :: /data/local/tmp/test_root/xpc/head.js :: _abort_failed_test :: line 875"  data: no]"]
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  _abort_failed_test@/data/local/tmp/test_root/xpc/head.js:875:20
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  do_report_result@/data/local/tmp/test_root/xpc/head.js:976:5
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  Assert<@/data/local/tmp/test_root/xpc/head.js:75:21
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  proto.report@resource://testing-common/Assert.jsm:228:10
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  proto.ok@resource://testing-common/Assert.jsm:254:10
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  handleResult@resource://testing-common/ExtensionXPCShellUtils.jsm:181:24
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  emit@resource://gre/modules/ExtensionCommon.jsm:322:32
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  receiveMessage@resource://gre/modules/Extension.jsm:2286:20
[task 2022-02-10T20:35:48.999Z] 20:35:48     INFO -  _do_main@/data/local/tmp/test_root/xpc/head.js:242:6
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:604:5
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  @-e:1:1
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  "
[task 2022-02-10T20:35:49.000Z] 20:35:49  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js | test_bad_value_android - [test_bad_value_android : 181] Promise resolved, expected rejection '/android is not a supported platform for the closeTabsByDoubleClick setting/': closeTabsByDoubleClick.clear rejects on Android. - false == true
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  resource://testing-common/ExtensionXPCShellUtils.jsm:handleResult:181
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  resource://gre/modules/ExtensionCommon.jsm:emit:322
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  resource://gre/modules/Extension.jsm:receiveMessage:2286
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  /data/local/tmp/test_root/xpc/head.js:_do_main:242
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  /data/local/tmp/test_root/xpc/head.js:_execute_test:604
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  -e:null:1
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  exiting test
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "[Exception... "Abort"  nsresult: "0x80004004 (NS_ERROR_ABORT)"  location: "JS frame :: /data/local/tmp/test_root/xpc/head.js :: _abort_failed_test :: line 875"  data: no]"]
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  _abort_failed_test@/data/local/tmp/test_root/xpc/head.js:875:20
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  do_report_result@/data/local/tmp/test_root/xpc/head.js:976:5
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  Assert<@/data/local/tmp/test_root/xpc/head.js:75:21
[task 2022-02-10T20:35:49.000Z] 20:35:49     INFO -  proto.report@resource://testing-common/Assert.jsm:228:10
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  proto.ok@resource://testing-common/Assert.jsm:254:10
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  handleResult@resource://testing-common/ExtensionXPCShellUtils.jsm:181:24
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  emit@resource://gre/modules/ExtensionCommon.jsm:322:32
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  receiveMessage@resource://gre/modules/Extension.jsm:2286:20
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  _do_main@/data/local/tmp/test_root/xpc/head.js:242:6
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:604:5
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  @-e:1:1
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  "
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  (xpcshell/head.js) | test run_next_test 4 pending (2)
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  (xpcshell/head.js) | test test_bad_value_android finished (2)
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js | Starting delay_updates_settings_after_restart
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  (xpcshell/head.js) | test delay_updates_settings_after_restart pending (2)
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  (xpcshell/head.js) | test run_next_test 4 finished (2)
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347100	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider", "XPIInternal"]"
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347101	addons.manager	DEBUG	Starting provider: XPIProvider"
[task 2022-02-10T20:35:49.001Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347101	addons.xpi	DEBUG	startup"
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347101	addons.xpi	DEBUG	List of built-in add-ons is missing or invalid.: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXPCComponents_Utils.readUTF8URI]"  nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)"  location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm :: startup :: line 2456"  data: no] Stack trace: startup()@resource://gre/modules/addons/XPIProvider.jsm:2456
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  callProvider()@resource://gre/modules/AddonManager.jsm:222
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  _startProvider()@resource://gre/modules/AddonManager.jsm:528
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  startup()@resource://gre/modules/AddonManager.jsm:755
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  startup()@resource://gre/modules/AddonManager.jsm:3426
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  observe()@resource://gre/modules/addonManager.js:78
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  promiseStartupManager()@resource://testing-common/AddonTestUtils.jsm:891
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  delay_updates_settings_after_restart()@test_ext_browserSettings.js:479
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  _run_next_test/<()@/data/local/tmp/test_root/xpc/head.js:1727
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  _run_next_test()@/data/local/tmp/test_root/xpc/head.js:1727
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  run()@/data/local/tmp/test_root/xpc/head.js:819
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  _do_main()@/data/local/tmp/test_root/xpc/head.js:242
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  _execute_test()@/data/local/tmp/test_root/xpc/head.js:604
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  -e:1"
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347105	addons.xpi	INFO	SystemAddonLocation directory is missing"
[task 2022-02-10T20:35:49.002Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347106	addons.xpi	DEBUG	checkForChanges"
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347107	addons.xpi	DEBUG	Loaded add-on state: {}"
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347108	addons.xpi	DEBUG	scanForChanges changed: false, state: {}"
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347108	addons.xpi	DEBUG	No changes found"
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347110	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider"
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347111	addons.manager	DEBUG	Provider finished startup: XPIProvider"
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347111	addons.manager	DEBUG	Completed startup sequence"
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347144	addons.repository	DEBUG	cacheAddons: enabled false IDs ["test_settings_staged_restart_webext@tests.mozilla.org"]"
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347144	addons.xpi-utils	DEBUG	Starting async load of XPI database /data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178/extensions.json"
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347145	addons.xpi-utils	DEBUG	Finished async read of XPI database, parsing..."
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347148	addons.xpi-utils	DEBUG	Successfully read XPI database"
[task 2022-02-10T20:35:49.003Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347156	addons.xpi	DEBUG	Starting install of test_settings_staged_restart_webext@tests.mozilla.org from file:///data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178/temp/generated-extension.xpi"
[task 2022-02-10T20:35:49.004Z] 20:35:49  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js | delay_updates_settings_after_restart - [delay_updates_settings_after_restart : 155] no tasks awaiting on messages - "[\\"ready\\"]" == "[]"
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  resource://testing-common/ExtensionXPCShellUtils.jsm:clearMessageQueues:155
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  resource://testing-common/ExtensionXPCShellUtils.jsm:ExtensionWrapper/<:88
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  /data/local/tmp/test_root/xpc/head.js:_execute_test/<:668
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  /data/local/tmp/test_root/xpc/head.js:_execute_test:677
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  -e:null:1
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  exiting test
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  NS_ERROR_ABORT:
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  _abort_failed_test@/data/local/tmp/test_root/xpc/head.js:875:20
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  do_report_result@/data/local/tmp/test_root/xpc/head.js:976:5
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  Assert<@/data/local/tmp/test_root/xpc/head.js:75:21
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  proto.report@resource://testing-common/Assert.jsm:228:10
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  equal@resource://testing-common/Assert.jsm:270:8
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  clearMessageQueues@resource://testing-common/ExtensionXPCShellUtils.jsm:155:22
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  ExtensionWrapper/<@resource://testing-common/ExtensionXPCShellUtils.jsm:88:12
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  _execute_test/<@/data/local/tmp/test_root/xpc/head.js:668:28
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:677:5
[task 2022-02-10T20:35:49.004Z] 20:35:49     INFO -  @-e:1:1
[task 2022-02-10T20:35:49.005Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347160	addons.xpi	DEBUG	Addon test_settings_staged_restart_webext@tests.mozilla.org will be installed as a packed xpi"
[task 2022-02-10T20:35:49.005Z] 20:35:49     INFO -  Error: Found unexpected files in temporary directory: generated-extension.xpi at resource://testing-common/AddonTestUtils.jsm:416
[task 2022-02-10T20:35:49.005Z] 20:35:49     INFO -  init/<@resource://testing-common/AddonTestUtils.jsm:416:15
[task 2022-02-10T20:35:49.005Z] 20:35:49     INFO -  _execute_test/<@/data/local/tmp/test_root/xpc/head.js:668:28
[task 2022-02-10T20:35:49.005Z] 20:35:49     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:680:16
[task 2022-02-10T20:35:49.005Z] 20:35:49     INFO -  @-e:1:1
[task 2022-02-10T20:35:49.005Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347162	addons.xpi-utils	DEBUG	Make addon app-profile:test_settings_staged_restart_webext@tests.mozilla.org visible"
[task 2022-02-10T20:35:49.005Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347163	addons.xpi	DEBUG	XPIStates adding add-on test_settings_staged_restart_webext@tests.mozilla.org in {"addons":{},"staged":{},"path":"/data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178/extensions"}: /data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178/extensions/test_settings_staged_restart_webext@tests.mozilla.org.xpi"
[task 2022-02-10T20:35:49.006Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347164	addons.xpi	DEBUG	Updating XPIState for {"id":"test_settings_staged_restart_webext@tests.mozilla.org","syncGUID":"{993ea0a8-9152-484c-82a4-f0fce42eb65a}","version":"1.0","type":"extension","loader":null,"updateURL":"http://example.com/test_update.json","installOrigins":null,"manifestVersion":2,"optionsURL":null,"optionsType":null,"optionsBrowserStyle":true,"aboutURL":null,"defaultLocale":{"name":"Generated extension","creator":null,"developers":null,"translators":null,"contributors":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"embedderDisabled":false,"installDate":1644525347155,"updateDate":1644525347155,"applyBackgroundUpdates":1,"path":"/data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178/extensions/test_settings_staged_restart_webext@tests.mozilla.org.xpi","skinnable":false,"sourceURI":"file:///data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178/temp/generated-extension.xpi","releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"toolkit@mozilla.org","minVersion":null,"maxVersion":null}],"targetPlatforms":[],"signedState":4,"signedDate":null,"seen":true,"dependencies":[],"incognito":"spanning","userPermissions":{"permissions":["browserSettings"],"origins":[]},"optionalPermissions":{"permissions":[],"origins":[]},"icons":{},"iconURL":null,"blocklistState":0,"blocklistURL":null,"startupData":null,"hidden":false,"installTelemetryInfo":null,"recommendationState":null,"rootURI":"jar:file:///data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178/extensions/test_settings_staged_restart_webext@tests.mozilla.org.xpi!/","location":"app-profile"}"
[task 2022-02-10T20:35:49.006Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347164	addons.xpi	DEBUG	Install of file:///data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178/temp/generated-extension.xpi completed."
[task 2022-02-10T20:35:49.006Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347165	addons.xpi	DEBUG	Loading bootstrap scope from jar:file:///data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178/extensions/test_settings_staged_restart_webext@tests.mozilla.org.xpi!/"
[task 2022-02-10T20:35:49.006Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347165	addons.xpi	DEBUG	Calling bootstrap method install on test_settings_staged_restart_webext@tests.mozilla.org version 1.0"
[task 2022-02-10T20:35:49.006Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347165	addons.xpi	DEBUG	Calling bootstrap method startup on test_settings_staged_restart_webext@tests.mozilla.org version 1.0"
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Unable to arm timer, the object has been finalized." {file: "resource://gre/modules/DeferredTask.jsm" line: 225}]
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  arm@resource://gre/modules/DeferredTask.jsm:225:13
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  save@resource://gre/modules/ExtensionParent.jsm:1848:27
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  get@resource://gre/modules/ExtensionParent.jsm:1946:20
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  observe@resource://gre/modules/AsyncShutdown.jsm:575:16
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  _execute_test@/data/local/tmp/test_root/xpc/head.js:711:23
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  @-e:1:1
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  "
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347185	addons.xpi	WARN	Exception running bootstrap method startup on test_settings_staged_restart_webext@tests.mozilla.org: Error: Unable to arm timer, the object has been finalized.(resource://gre/modules/DeferredTask.jsm:225:13) JS Stack trace: arm@DeferredTask.jsm:225:13
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  save@ExtensionParent.jsm:1848:27
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  get@ExtensionParent.jsm:1946:20
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  observe@AsyncShutdown.jsm:575:16
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  _execute_test@head.js:711:23
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  @-e:1:1"
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  "CONSOLE_MESSAGE: (info) 1644525347185	addons.xpi	DEBUG	removeTemporaryFile: file:///data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178/temp/generated-extension.xpi does not own temp file"
[task 2022-02-10T20:35:49.007Z] 20:35:49     INFO -  <<<<<<<
[task 2022-02-10T20:35:49.077Z] 20:35:49     INFO -  Cleaning up profile for /builds/worker/workspace/build/tests/xpcshell/tests/toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js folder: /data/local/tmp/test_root/xpc/p/3031cf02-2ca1-4b44-8ebc-3e26355cb178
[task 2022-02-10T20:35:50.117Z] 20:35:50     INFO -  TEST-START | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_eventpage_settings.js
[task 2022-02-10T20:35:50.195Z] 20:35:50     INFO -  adb launch_application: am startservice -W -n 'org.mozilla.geckoview.test_runner/org.mozilla.geckoview.test_runner.XpcshellTestRunnerService$i0' -a android.intent.action.MAIN --es env0 XPCOM_DEBUG_BREAK=stack-and-abort --es env1 MOZ_CRASHREPORTER=1 --es env2 MOZ_CRASHREPORTER_NO_REPORT=1 --es env3 MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 --es env4 MOZ_DEVELOPER_REPO_DIR=/builds/worker/checkouts/gecko --es env5 MOZ_DISABLE_CONTENT_SANDBOX=1 --es env6 MOZ_FETCHES_DIR=/builds/worker/fetches --es env7 MOZ_DISABLE_SOCKET_PROCESS=1 --es env8 LD_LIBRARY_PATH=/data/local/tmp/test_root/xpcb --es env9 MOZ_LINKER_CACHE=/data/local/tmp/test_root/xpcb --es env10 GRE_HOME=/data/local/tmp/test_root/xpcb --es env11 XPCSHELL_TEST_PROFILE_DIR=/data/local/tmp/test_root/xpc/p/1ca1d3f7-9c12-4e9c-a30d-f2ae0dc34b29 --es env12 HOME=/data/local/tmp/test_root/xpc/p --es env13 XPCSHELL_TEST_TEMP_DIR=/data/local/tmp/test_root/xpc/tmp/fd2fd338-f6fd-431b-93c1-5ddcfdc5308a --es env14 MOZ_ANDROID_DATA_DIR=/data/local/tmp/test_root/xpcb --es env15 MOZ_IN_AUTOMATION=1 --es env16 MOZ_ANDROID_CPU_ABI=x86_64 --es env17 MOZHTTP2_PORT=40343 --es env18 MOZNODE_EXEC_PORT=39053 --es env19 TMPDIR=/data/local/tmp/test_root/xpc/p/1ca1d3f7-9c12-4e9c-a30d-f2ae0dc34b29 --es env20 XPCSHELL_MINIDUMP_DIR=/data/local/tmp/test_root/xpc/minidumps/1ca1d3f7-9c12-4e9c-a30d-f2ae0dc34b29 --es arg0 -g --es arg1 /data/local/tmp/test_root/xpcb --es arg2 --greomni --es arg3 /data/local/tmp/test_root/xpcb/geckoview-test_runner.apk --es arg4 -m --es arg5 -e --es arg6 'const _HEAD_JS_PATH = "/data/local/tmp/test_root/xpc/head.js";' --es arg7 -e --es arg8 'const _MOZINFO_JS_PATH = "/data/local/tmp/test_root/xpc/p/1ca1d3f7-9c12-4e9c-a30d-f2ae0dc34b29/mozinfo.json";' --es arg9 -e --es arg10 'const _PREFS_FILE = "/data/local/tmp/test_root/xpc/tmp/fd2fd338-f6fd-431b-93c1-5ddcfdc5308a/user.js";' --es arg11 -e --es arg12 'const _TESTING_MODULES_DIR = "/data/local/tmp/test_root/xpc/m";' --es arg13 -f --es arg14 /data/local/tmp/test_root/xpc/head.js --es arg15 -e --es arg16 'const _HEAD_FILES = ["/data/local/tmp/test_root/xpc/toolkit/components/extensions/test/xpcshell/head.js", "/data/local/tmp/test_root/xpc/toolkit/components/extensions/test/xpcshell/head_telemetry.js", "/data/local/tmp/test_root/xpc/toolkit/components/extensions/test/xpcshell/head_sync.js", "/data/local/tmp/test_root/xpc/toolkit/components/extensions/test/xpcshell/head_storage.js"];' --es arg17 -e --es arg18 'const _JSDEBUGGER_PORT = 0;' --es arg19 -e --es arg20 'const _TEST_CWD = "/data/local/tmp/test_root/xpc/toolkit/components/extensions/test/xpcshell";' --es arg21 -e --es arg22 'const _TEST_FILE = ["test_ext_eventpage_settings.js"];' --es arg23 -e --es arg24 'const _TEST_NAME = "xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_eventpage_settings.js";' --es arg25 -e --es arg26 '_execute_test(); quit(0);' --ez use_multiprocess True --es out_file /data/local/tmp/test_root/xpc/logs/xpcshell-edc66c09-3b9b-4d71-8f33-88217c0b480d.log
[task 2022-02-10T20:35:50.446Z] 20:35:50     INFO -  remotexpcshelltests.py | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_eventpage_settings.js | 679 | Launched Test App
[task 2022-02-10T20:35:53.943Z] 20:35:53     INFO -  remotexpcshelltests.py | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_eventpage_settings.js | 679 | Application ran for: 0:00:03.825218
[task 2022-02-10T20:35:54.034Z] 20:35:54  WARNING -  TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_eventpage_settings.js | xpcshell return code: 0
[task 2022-02-10T20:35:54.034Z] 20:35:54     INFO -  TEST-INFO took 3917ms
[task 2022-02-10T20:35:54.034Z] 20:35:54     INFO -  >>>>>>>
[task 2022-02-10T20:35:54.034Z] 20:35:54     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2022-02-10T20:35:54.034Z] 20:35:54     INFO -  (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2022-02-10T20:35:54.034Z] 20:35:54     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2022-02-10T20:35:54.034Z] 20:35:54     INFO -  running event loop
[task 2022-02-10T20:35:54.035Z] 20:35:54     INFO -  xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_eventpage_settings.js | Starting check_remote
[task 2022-02-10T20:35:54.035Z] 20:35:54     INFO -  (xpcshell/head.js) | test check_remote pending (2)
[task 2022-02-10T20:35:54.035Z] 20:35:54     INFO -  TEST-PASS | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_eventpage_settings.js
Flags: needinfo?(mixedpuppy)
Pushed by scaraveo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f5997aac798f
settings support for persistent listeners r=rpl
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
See Also: → 1755250
See Also: → 1755589
Duplicate of this bug: 1750291
You need to log in before you can comment on or make changes to this bug.