Closed Bug 1695982 Opened 5 years ago Closed 5 years ago

Remove print.printer_Mozilla_Save_to_PDF.print_to_filename from about:support

Categories

(Toolkit :: Printing, task)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox86 --- wontfix
firefox87 --- wontfix
firefox88 --- fixed
firefox89 --- fixed

People

(Reporter: mccr8, Assigned: emilio)

References

Details

Attachments

(1 file)

I saw a user posting about:support in a bug, and the output included the preference print.printer_Mozilla_Save_to_PDF.print_to_filename, which was the name of a local file on their computer. It seems like this could potentially include private information a user might not want to include.

Component: Printing: Output → Printing
Product: Core → Toolkit

It looks like the test toolkit/modules/tests/browser/browser_Troubleshoot.js checks for the presence of a pref print.print_to_filename, but not print.printer_Mozilla_Save_to_PDF.print_to_filename.

I just noticed this in another bug. Seems like emilio removed print_to_filename from the blocklist here: https://hg.mozilla.org/integration/autoland/rev/54ee4e15b971#l5.30

Flags: needinfo?(emilio)

Seems like we don't do a good job of removing user paths from the about:support copied text anyway.
For example "Startup Cache" > "Disk Cache Path", and various MOZ_CRASHREPORTER_*_DIRECTORY env variables.

So I removed that from the blacklist because with my initial patch we didn't use that codepath for print prefs at all I think.

Flags: needinfo?(emilio)
Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a05e8918c4da Don't show print_to_filename prefs in about:support. r=Gijs

Thanks, Emilio!

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch

It would be nice if we could backport this, as it is a bit of a privacy issue and it looks to me like it is low risk.

Emilio, ping RE: comment 9.

Flags: needinfo?(emilio)

Comment on attachment 9211502 [details]
Bug 1695982 - Don't show print_to_filename prefs in about:support. r=Gijs

Beta/Release Uplift Approval Request

  • User impact if declined: Potential sensitive information in about:support.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Extremely simple patch
  • String changes made/needed: none
Flags: needinfo?(emilio)
Attachment #9211502 - Flags: approval-mozilla-beta?

Comment on attachment 9211502 [details]
Bug 1695982 - Don't show print_to_filename prefs in about:support. r=Gijs

Approved for 88.0b5.

Attachment #9211502 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
See Also: → 1707245

(In reply to Tom Schuster [:evilpie] from comment #3)

Seems like we don't do a good job of removing user paths from the about:support copied text anyway.

The path isn't the main problem here. The filename itself can often have sensitive information. User names, email addresses, "<competitor> merger proposal", "How to file for divorce", etc. Why do we even save this value?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: