requestStorageAccess really needs a lot more console warnings
Categories
(Core :: Privacy: Anti-Tracking, enhancement, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox80 | --- | fixed |
People
(Reporter: johannh, Assigned: johannh)
References
(Blocks 2 open bugs)
Details
Attachments
(3 files)
It's really tedious to build something with requestStorageAccess and have absolutely no understanding of why calls are failing, since we only reject with undefined.
We should probably take proper error states to the spec level, but in the meantime we should just add better console warnings to our implementation.
Comment 1•5 years ago
|
||
See discussion in https://github.com/privacycg/storage-access/issues/37 about changing undefined to a proper exception. I suspect that we want to reject with a single value going forward as well, but we should definitely have optimal information for web developers debugging locally.
| Assignee | ||
Comment 2•5 years ago
|
||
(In reply to Anne (:annevk) from comment #1)
See discussion in https://github.com/privacycg/storage-access/issues/37 about changing undefined to a proper exception. I suspect that we want to reject with a single value going forward as well, but we should definitely have optimal information for web developers debugging locally.
I see, thanks! I had expected that there might be concerns like this but I didn't realize there had been a discussion on the standard.
This shouldn't matter for console logging though, right? Since that's not perceivable by the site, IIUC.
| Assignee | ||
Comment 4•5 years ago
|
||
The only common failure case that's not being warned about now is when the user
rejected the prompt, which I think is expected behavior.
| Assignee | ||
Comment 5•5 years ago
|
||
Depends on D79597
| Assignee | ||
Comment 6•5 years ago
|
||
Comment 8•5 years ago
|
||
Backed out for build bustages and ES Lint failure.
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception&revision=75276e64701bfde7cf2dd1f851adfea6a92d5747
Bustage: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=308576877&repo=autoland&lineNumber=41077
Lint failure: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=308576852&repo=autoland&lineNumber=503
Backout: https://hg.mozilla.org/integration/autoland/rev/784d6c42a1089cfd485afbb70c106fe8f84619d9
Comment 9•5 years ago
|
||
Dimi since this was backed out an Johann is now on leave, would you mind to help get this landed?
Comment 10•5 years ago
|
||
(In reply to Steven Englehardt [:englehardt] from comment #9)
Dimi since this was backed out an Johann is now on leave, would you mind to help get this landed?
sure
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
Backed out for failing dt at browser_webconsole_requestStorageAccess_errors.js
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=309108116&repo=autoland&lineNumber=9501
Backout: https://hg.mozilla.org/integration/autoland/rev/7a8006283ceece2fc4a78e95578182099fa52ce3
Updated•5 years ago
|
Comment 13•5 years ago
|
||
Comment 14•5 years ago
|
||
Backed out for causing leaks
backout: https://hg.mozilla.org/integration/autoland/rev/b8ab2990c94f62fc6f16c406671231917e346145
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=309206837&repo=autoland&lineNumber=29838
[task 2020-07-09T22:43:43.085Z] 22:43:43 INFO -
[task 2020-07-09T22:43:43.086Z] 22:43:43 INFO - nsTraceRefcnt::DumpStatistics: 1444 entries
[task 2020-07-09T22:43:43.087Z] 22:43:43 INFO - TEST-INFO | leakcheck | tab leaked 47 DocAccessibleChild
[task 2020-07-09T22:43:43.087Z] 22:43:43 INFO - TEST-INFO | leakcheck | tab leaked 47 DocAccessibleChildBase
[task 2020-07-09T22:43:43.087Z] 22:43:43 INFO - TEST-INFO | leakcheck | tab leaked 1 Mutex
[task 2020-07-09T22:43:43.088Z] 22:43:43 INFO - TEST-INFO | leakcheck | tab leaked 47 PDocAccessibleChild
[task 2020-07-09T22:43:43.089Z] 22:43:43 INFO - TEST-INFO | leakcheck | tab leaked 47 nsTArray_base
[task 2020-07-09T22:43:43.089Z] 22:43:43 INFO - TEST-UNEXPECTED-FAIL | leakcheck | tab 7600 bytes leaked (DocAccessibleChild, DocAccessibleChildBase, Mutex, PDocAccessibleChild, nsTArray_base)
[task 2020-07-09T22:43:43.089Z] 22:43:43 INFO -
Comment 15•5 years ago
|
||
(In reply to Natalia Csoregi [:nataliaCs] from comment #14)
Backed out for causing leaks
just an update that I'm still working on fixing this leak issue.
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/26991249097c
https://hg.mozilla.org/mozilla-central/rev/5e37f27f9f9e
https://hg.mozilla.org/mozilla-central/rev/39b4605c1178
Updated•5 years ago
|
| Assignee | ||
Updated•4 years ago
|
Description
•