Get rid of nsICookiePermission.ACCESS_ALLOW_FIRST_PARTY_ONLY and nsICookiePermission.ACCESS_LIMIT_THIRD_PARTY
Categories
(Core :: Permission Manager, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox66 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
References
Details
Attachments
(2 files, 1 obsolete file)
|
15.62 KB,
patch
|
johannh
:
review+
valentin
:
review+
|
Details | Diff | Splinter Review |
|
23.55 KB,
patch
|
johannh
:
review+
|
Details | Diff | Splinter Review |
These 2 cookie permissions are used just for testing. They are not visible in the UI and they are not exposed to addons.
I think it's time to remove them if nobody has objections.
| Assignee | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
| Assignee | ||
Comment 6•7 years ago
|
||
Are you sure this isn't exposed in the UI? I'm asking since it's localized.
Yes, it seems so. We don't have any setter for this value in the UI. Johann, can you confirm this?
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Comment 9•7 years ago
|
||
(In reply to Johann Hofmann [:johannh] from comment #8)
Comment on attachment 9037518 [details] [diff] [review]
part 2 - ACCESS_ALLOW_FIRST_PARTY_ONLYSo I'm not sure if that warrants commenting out instead of removing the
constants, but we may want to avoid throwing an error and instead returning
an empty string id, which I think should fail more gracefully (just
displaying nothing for that particular permission).
I'm referring to the code in permissions.js :)
Updated•7 years ago
|
| Assignee | ||
Comment 10•7 years ago
|
||
I'm slightly worried that extensions were settings these permissions (I
found this old answer here:
Note that ACCESS_ALLOW_FIRST_PARTY_ONLY is not exposed to web-extensions. Anything before webextension should not be supported in new firefox versions. Maybe we should show the default value in permission.js.
Comment 11•7 years ago
|
||
(In reply to Andrea Marchesini [:baku] from comment #10)
I'm slightly worried that extensions were settings these permissions (I
found this old answer here:Note that ACCESS_ALLOW_FIRST_PARTY_ONLY is not exposed to web-extensions. Anything before webextension should not be supported in new firefox versions. Maybe we should show the default value in permission.js.
Yup, it still doesn't change the fact that these old extensions polluted profiles with their own custom data (I've seen this before with the geolocation permission) and if it's not too inconvenient we should try to be mindful of it.
Personally I would love to find a way to cleanse the permission manager of all non-default values, but I guess that's pretty hard in practice.
Comment 12•7 years ago
|
||
| Assignee | ||
Comment 13•7 years ago
|
||
Let's exclude not supported permission capabilities.
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
Comment 16•7 years ago
|
||
Backed out 2 changesets (bug 1521051) for xpcshell fails on extensions/cookie/test/unit/test_cookies_thirdparty.js.
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=223569342&repo=mozilla-inbound&lineNumber=9197
20:02:01 INFO - TEST-START | extensions/cookie/test/unit/test_cookies_thirdparty.js
20:02:01 WARNING - TEST-UNEXPECTED-FAIL | extensions/cookie/test/unit/test_cookies_thirdparty.js | xpcshell return code: 0
20:02:01 INFO - TEST-INFO took 226ms
20:02:01 INFO - >>>>>>>
20:02:01 INFO - PID 14988 | Unable to load \untrusted-startup-test-dll.dll; LoadLibraryW failed: 126Couldn't convert chrome URL: chrome://branding/locale/brand.properties
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: Failed to get directory to cache.: file z:/build/build/src/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp, line 80
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: Failed to get directory to cache.: file z:/build/build/src/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp, line 80
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: Failed to get directory to cache.: file z:/build/build/src/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp, line 80
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: Failed to get directory to cache.: file z:/build/build/src/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp, line 80
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: Failed to get directory to cache.: file z:/build/build/src/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp, line 80
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: Couldn't get the user appdata directory. Crash events may not be produced.: file z:/build/build/src/toolkit/crashreporter/nsExceptionHandler.cpp, line 2536
20:02:01 INFO - (xpcshell/head.js) | test MAIN run_test pending (1)
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004002: file z:/build/build/src/toolkit/components/resistfingerprinting/nsRFPService.cpp, line 668
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: NSS will be initialized without a profile directory. Some things may not work as expected.: file z:/build/build/src/security/manager/ssl/nsNSSComponent.cpp, line 1489
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: This method is lossy. Use GetCanonicalPath !: file z:/build/build/src/xpcom/io/nsLocalFileWin.cpp, line 3263
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: This method is lossy. Use GetCanonicalPath !: file z:/build/build/src/xpcom/io/nsLocalFileWin.cpp, line 3263
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: This method is lossy. Use GetCanonicalPath !: file z:/build/build/src/xpcom/io/nsLocalFileWin.cpp, line 3263
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: site security information will not be persisted: file z:/build/build/src/security/manager/ssl/nsSiteSecurityService.cpp, line 506
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: NS_ENSURE_TRUE(aChannel) failed: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 172
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, NS_ERROR_UNEXPECTED) failed with result 0x80004005: file z:/build/build/src/extensions/cookie/nsPermissionManager.cpp, line 1047
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: NS_ENSURE_TRUE(aChannel) failed: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 172
20:02:01 INFO - TEST-PASS | extensions/cookie/test/unit/test_cookies_thirdparty.js | run_test - [run_test : 20] 1 == 1
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: Found a principal with no URI, assuming third-party request: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 226
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: Found a principal with no URI, assuming third-party request: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 226
20:02:01 INFO - TEST-PASS | extensions/cookie/test/unit/test_cookies_thirdparty.js | run_test - [run_test : 20] 2 == 2
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: NS_ENSURE_TRUE(aChannel) failed: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 172
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: NS_ENSURE_TRUE(aChannel) failed: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 172
20:02:01 INFO - TEST-PASS | extensions/cookie/test/unit/test_cookies_thirdparty.js | run_test - [run_test : 20] 3 == 3
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: Found a principal with no URI, assuming third-party request: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 226
20:02:01 INFO - PID 14988 | [14988, Main Thread] WARNING: Found a principal with no URI, assuming third-party request: file z:/build/build/src/dom/base/ThirdPartyUtil.cpp, line 226
20:02:01 INFO - TEST-PASS | extensions/cookie/test/unit/test_cookies_thirdparty.js | run_test - [run_test : 20] 4 == 4
Backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/f0f4bf8af10a1ba026623963950277dac0814360
Comment 17•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Comment 18•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5d2f8b1292ce
https://hg.mozilla.org/mozilla-central/rev/a18e28e26934
Description
•