Closed Bug 1591235 Opened 6 years ago Closed 5 years ago

nsContentUtils::ShouldResistFingerprinting(*) methods return false if null is passed as param

Categories

(Core :: Security, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: smaug, Assigned: jens1o)

Details

(Keywords: good-first-bug)

Attachments

(1 file)

It looks worrisome that one might be able to bypass fingerprinting check if one somehow manages to find a code path which passes null as param.
I would expect return value be ShouldResistFingerprinting();

I thought for a moment that maybe this was a poorly documented way to say "If we don't have a docshell/document, we're in the system context" but looking at callsites, that seems unlikely... I was less certain about mozilla::dom::Element::SetPointerCapture though.

Still, yes I agree I think they should defer to ShouldResistFingerprinting()

Keywords: good-first-bug

The priority flag is not set for this bug.
:wleung, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(wleung)
Flags: needinfo?(wleung)
Priority: -- → P2

Hi, could I work on this bug?

Sorry, I forgot to set the assignee, I'm currently mentoring someone through this bug.

Assignee: nobody → simon.mainey

Actually, if you would like to do this, it is free and you can work on it, yes.

Assignee: simon.mainey → nobody
Flags: needinfo?(hongyu.wang)

I would be happy to work on this bug.

Flags: needinfo?(hongyu.wang)
Assignee: nobody → mozilla

hey :smaug, I wonder whether this is ready for landing?

Flags: needinfo?(bugs)

oh, sure. Want me to land this?

Flags: needinfo?(bugs)

(it isn't always clear who can land patches.)

Flags: needinfo?(mozilla)

At least I cannot do it. If you are unable to do it, I would request a checkin-needed note in Phrabicator. Yet if you're able to (and have the time), I'd appreciate it.

Flags: needinfo?(mozilla)

I can do it :)

Pushed by opettay@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/033702e7e383 nsContentUtils::ShouldResistFingerprinting(*) methods should check pref if null is passed as param r=smaug
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: