Closed Bug 1680900 Opened 3 years ago Closed 3 years ago

comm-central perma fail - toolkit/components/extensions/test/xpcshell/test_ext_browsingData.js, test_ext_browsingData_cookies_cache.js, test_ext_browsingData_cookies_cookieStoreId.js | xpcshell return code: 0

Categories

(Thunderbird :: Add-Ons: Extensions API, defect, P5)

Tracking

(thunderbird_esr78 unaffected)

RESOLVED FIXED
85 Branch
Tracking Status
thunderbird_esr78 --- unaffected

People

(Reporter: intermittent-bug-filer, Assigned: TbSync)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file, 1 obsolete file)

Filed by: mkmelin [at] iki.fi
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=323652262&repo=comm-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WGeWxWbATDq9KcLohH1KmQ/runs/0/artifacts/public/logs/live_backing.log


As well as 
TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_browsingData_cookies_cache.js | xpcshell return code: 0
Logviewer
TEST-UNEXPECTED-FAIL | xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_browsingData_cookies_cookieStoreId.js | xpcshell return code: 0 

Regressed by something from https://hg.mozilla.org/mozilla-central/pushloghtml?changeset=7ce95b6cde2643be60ec53d8c743db28aec30884

[task 2020-12-05T11:57:20.237Z] 11:57:20     INFO -  xpcshell.ini:toolkit/components/extensions/test/xpcshell/test_ext_browsingData.js | Starting testInvalidArguments
[task 2020-12-05T11:57:20.238Z] 11:57:20     INFO -  (xpcshell/head.js) | test testInvalidArguments pending (2)
[task 2020-12-05T11:57:20.238Z] 11:57:20     INFO -  "Extension attached"
[task 2020-12-05T11:57:20.238Z] 11:57:20     INFO -  (xpcshell/head.js) | test run_next_test 1 finished (2)
[task 2020-12-05T11:57:20.238Z] 11:57:20     INFO -  Unexpected exception Error: Warning processing permissions: Error processing permissions.0: Value "browsingData" must either: must either [must either [must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["accountsRead"], be one of ["addressBooks"], be one of ["compose"], be one of ["messagesModify"], be one of ["accountsFolders"], be one of ["messagesMove", "messagesRead"], be one of ["pkcs11"], be one of ["tabs", "tabHide"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], or be one of ["webNavigation"]], be one of ["alarms", "mozillaAddons", "storage", "unlimitedStorage"], be one of ["geckoProfiler"], be one of ["identity"], be one of ["menus"], be one of ["contextualIdentities"], be one of ["dns"], be one of ["activityLog"], be one of ["networkStatus"], be one of ["telemetry"], or be one of ["theme"]], must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["accountsRead"], be one of ["addressBooks"], be one of ["compose"], be one of ["messagesModify"], be one of ["accountsFolders"], be one of ["messagesMove", "messagesRead"], be one of ["pkcs11"], be one of ["tabs", "tabHide"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], or be one of ["webNavigation"]], be one of ["nativeMessaging"], or match the pattern /^experiments(\\.\\w+)+$/], or must either [be one of ["<all_urls>"], must either [match the pattern /^(https?|wss?|file|ftp|\\*):\\/\\/(\\*|\\*\\.[^*/]+|[^*/]+)\\/.*$/, or match the pattern /^file:\\/\\/\\/.*$/], or match the pattern /^resource:\\/\\/(\\*|\\*\\.[^*/]+|[^*/]+)\\/.*$|^about:/] at resource://gre/modules/Schemas.jsm:1243
[task 2020-12-05T11:57:20.238Z] 11:57:20     INFO -  logWarning@resource://gre/modules/Schemas.jsm:1243:17
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  normalize@resource://gre/modules/Schemas.jsm:2225:16
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  checkProperty/r<@resource://gre/modules/Schemas.jsm:1906:16
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  withPath@resource://gre/modules/Schemas.jsm:603:14
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  checkProperty@resource://gre/modules/Schemas.jsm:1905:25
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  normalize@resource://gre/modules/Schemas.jsm:1978:14
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  normalize@resource://gre/modules/Schemas.jsm:3421:23
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  normalize@resource://gre/modules/Schemas.jsm:3611:28
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  _getNormalizedManifest@resource://gre/modules/Extension.jsm:879:20
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  parseManifest@resource://gre/modules/Extension.jsm:929:33
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  _do_main@/builds/worker/workspace/build/tests/xpcshell/head.js:239:6
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:568:5
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  @-e:1:1
[task 2020-12-05T11:57:20.241Z] 11:57:20     INFO -  exiting test
[task 2020-12-05T11:57:20.242Z] 11:57:20     INFO -  "CONSOLE_MESSAGE: (info) 1607169439897	addons.webextension.{78961bf9-57aa-4dc8-a9df-7ddda910fc30}	WARN	Loading extension '{78961bf9-57aa-4dc8-a9df-7ddda910fc30}': Reading manifest: Warning processing permissions: Error processing permissions.0: Value "browsingData" must either: must either [must either [must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["accountsRead"], be one of ["addressBooks"], be one of ["compose"], be one of ["messagesModify"], be one of ["accountsFolders"], be one of ["messagesMove", "messagesRead"], be one of ["pkcs11"], be one of ["tabs", "tabHide"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], or be one of ["webNavigation"]], be one of ["alarms", "mozillaAddons", "storage", "unlimitedStorage"], be one of ["geckoProfiler"], be one of ["identity"], be one of ["menus"], be one of ["contextualIdentities"], be one of ["dns"], be one of ["activityLog"], be one of ["networkStatus"], be one of ["telemetry"], or be one of ["theme"]], must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["accountsRead"], be one of ["addressBooks"], be one of ["compose"], be one of ["messagesModify"], be one of ["accountsFolders"], be one of ["messagesMove", "messagesRead"], be one of ["pkcs11"], be one of ["tabs", "tabHide"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], or be one of ["webNavigation"]], be one of ["nativeMessaging"], or match the pattern /^experiments(\\.\\w+)+$/], or must either [be one of ["<all_urls>"], must either [match the pattern /^(https?|wss?|file|ftp|\\*):\\/\\/(\\*|\\*\\.[^*/]+|[^*/]+)\\/.*$/, or match the pattern /^file:\\/\\/\\/.*$/], or match the pattern /^resource:\\/\\/(\\*|\\*\\.[^*/]+|[^*/]+)\\/.*$|^about:/]"
[task 2020-12-05T11:57:20.242Z] 11:57:20     INFO -  "CONSOLE_MESSAGE: (info) Treating warning as error because the preference extensions.webextensions.warnings-as-errors is set to true"
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "Warning processing permissions: Error processing permissions.0: Value "browsingData" must either: must either [must either [must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["accountsRead"], be one of ["addressBooks"], be one of ["compose"], be one of ["messagesModify"], be one of ["accountsFolders"], be one of ["messagesMove", "messagesRead"], be one of ["pkcs11"], be one of ["tabs", "tabHide"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], or be one of ["webNavigation"]], be one of ["alarms", "mozillaAddons", "storage", "unlimitedStorage"], be one of ["geckoProfiler"], be one of ["identity"], be one of ["menus"], be one of ["contextualIdentities"], be one of ["dns"], be one of ["activityLog"], be one of ["networkStatus"], be one of ["telemetry"], or be one of ["theme"]], must either [must either [be one of ["idle"], be one of ["menus.overrideContext"], be one of ["activeTab"], be one of ["cookies"], or be one of ["webRequest", "webRequestBlocking"]], be one of ["clipboardRead", "clipboardWrite", "geolocation", "notifications"], be one of ["accountsRead"], be one of ["addressBooks"], be one of ["compose"], be one of ["messagesModify"], be one of ["accountsFolders"], be one of ["messagesMove", "messagesRead"], be one of ["pkcs11"], be one of ["tabs", "tabHide"], be one of ["browserSettings"], be one of ["downloads", "downloads.open"], be one of ["management"], be one of ["privacy"], be one of ["proxy"], or be one of ["webNavigation"]], be one of ["nativeMessaging"], or match the pattern /^experiments(\\.\\w+)+$/], or must either [be one of ["<all_urls>"], must either [match the pattern /^(https?|wss?|file|ftp|\\*):\\/\\/(\\*|\\*\\.[^*/]+|[^*/]+)\\/.*$/, or match the pattern /^file:\\/\\/\\/.*$/], or match the pattern /^resource:\\/\\/(\\*|\\*\\.[^*/]+|[^*/]+)\\/.*$|^about:/]" {file: "resource://gre/modules/Schemas.jsm" line: 1243}]
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  logWarning@resource://gre/modules/Schemas.jsm:1243:17
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  normalize@resource://gre/modules/Schemas.jsm:2225:16
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  checkProperty/r<@resource://gre/modules/Schemas.jsm:1906:16
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  withPath@resource://gre/modules/Schemas.jsm:603:14
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  checkProperty@resource://gre/modules/Schemas.jsm:1905:25
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  normalize@resource://gre/modules/Schemas.jsm:1978:14
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  normalize@resource://gre/modules/Schemas.jsm:3421:23
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  normalize@resource://gre/modules/Schemas.jsm:3611:28
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  _getNormalizedManifest@resource://gre/modules/Extension.jsm:879:20
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  parseManifest@resource://gre/modules/Extension.jsm:929:33
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  _do_main@/builds/worker/workspace/build/tests/xpcshell/head.js:239:6
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  _execute_test@/builds/worker/workspace/build/tests/xpcshell/head.js:568:5
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  @-e:1:1
[task 2020-12-05T11:57:20.247Z] 11:57:20     INFO -  "

Must be from bug 1625233 ```

Bug 1625233 moved the tests from browser to toolkit, and added a ExtensionBrowsingData.jsm impl for android. But Thunderbird doesn't have have ExtensionBrowsingData.jsm, and I don't know if it's very useful for Thunderbird since there's not really browsing that we do.
If we do want it, we can probably just copy over Firefox impl

https://searchfox.org/comm-central/search?q=ExtensionBrowsingData.jsm&path=

Component: General → Add-Ons: Extensions API

Having the option to clear cookie data might be useful. But we have to implement a dummy anyhow to get the test working again, or request m-c to exclude the test for thunderbird. If no one is opposing, I will go and add a ExtensionBrowsingData.jsm for us.

Assignee: nobody → john
Status: NEW → ASSIGNED

Comment on attachment 9191836 [details] [diff] [review]
bug1680900_clone_browsingData_API.patch

Looks good on try.

Attachment #9191836 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9191836 [details] [diff] [review]
bug1680900_clone_browsingData_API.patch

Review of attachment 9191836 [details] [diff] [review]:
-----------------------------------------------------------------

::: mail/components/extensions/moz.build
@@ +6,5 @@
>      "extensions-mail.manifest",
>  ]
>  
>  EXTRA_JS_MODULES += [
> +    "../../../../browser/components/extensions/ExtensionBrowsingData.jsm",

We don't reference browser/ stuff in Thunderbird. You'll have to create a copy under mail/
Only toolkit/ things can be directly referenced.
Attachment #9191836 - Flags: review?(mkmelin+mozilla) → review-

(In reply to Magnus Melin [:mkmelin] from comment #8)

We don't reference browser/ stuff in Thunderbird. You'll have to create a
copy under mail/
Only toolkit/ things can be directly referenced.

Yes we do and we should. If they have something that is exactly what we need, why should we maintain our own copy of it?

I would say those are bugs. Because, like I said, if it's browser/ it's Firefox only by design - if not it would be in toolkit/.

Attachment #9192142 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9192142 [details] [diff] [review]
bug1680900_clone_browsingData_API_v2.patch

Review of attachment 9192142 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks, r=mkmelin
Attachment #9192142 - Flags: review?(mkmelin+mozilla) → review+
Target Milestone: --- → 85 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/2ef1c9d07fc1
clone browsingData API for Thunderbird. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: