HTTPS-Only Mode: Have console message link to SUMO page
Categories
(DevTools :: Console, task, P1)
Tracking
(firefox81 fixed)
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: ckerschb, Assigned: ckerschb)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
When HTTPS-Only Mode is enabled, we log request to the console with a category name of HTTPSOnly and we would like to have that linked to https://support.mozilla.org/en-US/kb/https-only-prefs
Quick STRs:
- In Nightly, go to about:preferences#privacy and enable HTTPS-Only Mode
- Open the Multi Process Browser Console
- Visit http.rip
- Observe multiple https-only messages e.g.
HTTPS-Only Mode: Upgrading insecure request “http://http.rip/” to use “https”.
but with no 'Link' to learn more about the message.
Comment 2•4 years ago
|
||
Hello Christoph,
Do I understand correctly that you would like to have a [Learn more]
link, like we have for other kind of warnings?
If so, this can be done by adding a new case for this error category in https://searchfox.org/mozilla-central/source/devtools/server/actors/errordocs.js
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
Comment 5•4 years ago
|
||
Backed out changeset 9040cdaddc7c (Bug 1658323) for causing multiple failures actors/webconsole related CLOSED TREE
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=312710853&repo=autoland&lineNumber=16325
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=312711848&repo=autoland&lineNumber=4682
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=312709891&repo=autoland&lineNumber=10499
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=312711844&repo=autoland&lineNumber=107800
Backout: https://hg.mozilla.org/integration/autoland/rev/c0a363d993792e29152bbf0601c3f510b33b239f
Assignee | ||
Comment 6•4 years ago
|
||
(In reply to Noemi Erli[:noemi_erli] from comment #5)
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=312710853&repo=autoland&lineNumber=16325
Nicolas, it works locally but it seems in the above error log there is
Console message: [JavaScript Error: "TypeError: Services.urlFormatter is undefined" {file: "resource://devtools/server/actors/errordocs.js" line: 13}]
Any idea what might be wrong there?
Comment 7•4 years ago
|
||
Mhhh, looks like something happens in worker context, I'll check that.
Assignee | ||
Comment 8•4 years ago
|
||
Joni, within this bug (precisely this patch D86577 ) we want console messages to link to the sumo page for https-only-prefs
. While this works just fine in the non worker context, Services
is not available in a worker context.
Long story short, is https://support.mozilla.org/kb/https-only-prefs
redirecting to the right page? Or is there something else/better we can/should use in the worker context?
Christoph, the issue should be fixed now and the link should now direct to the right page (it will say "waiting for approved content" or something to that effect.) Let me know if there's still an issue.
Assignee | ||
Comment 10•4 years ago
|
||
(In reply to Joni Chan from comment #9)
Christoph, the issue should be fixed now and the link should now direct to the right page (it will say "waiting for approved content" or something to that effect.) Let me know if there's still an issue.
Great - works on my end too - thanks!
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
bugherder |
Description
•