Closed Bug 1824433 Opened 3 years ago Closed 3 years ago

Do not print an error when trying to get the CookieJarSettings for TRRServiceChannel

Categories

(Core :: Security, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I was seeing tons and tons of these logs:

[Parent 985951, TRR Background] WARNING: 'NS_FAILED(rv)', file /home/tom/Documents/moz/mozilla-unified-5/dom/base/nsContentUtils.cpp:2187
[Parent 985951, TRR Background] WARNING: 'NS_FAILED(rv)', file /home/tom/Documents/moz/mozilla-unified-5/dom/base/nsContentUtils.cpp:2187
[Parent 985951, TRR Background] WARNING: 'NS_FAILED(rv)', file /home/tom/Documents/moz/mozilla-unified-5/dom/base/nsContentUtils.cpp:2187
[Parent 985951, TRR Background] WARNING: 'NS_FAILED(rv)', file /home/tom/Documents/moz/mozilla-unified-5/dom/base/nsContentUtils.cpp:2187
[Parent 985951, TRR Background] WARNING: 'NS_FAILED(rv)', file /home/tom/Documents/moz/mozilla-unified-5/dom/base/nsContentUtils.cpp:2187

And traced it back to trying to retrieve the CookieJarSettings on the TRRLoadInfo.

We can be a bit more intelligent and not spam this warning.

Component: Security → Networking

(sorry for the noise)

Component: Networking → Security

If the CookieJarSettings is not implemented, return false.

Also, change the error behavior to also return false - we
don't need to immediately return true on error here, because
it may be the case that something else indicates we should not
Resist Fingerprinting (e.g. maybe the TRR connection is to an
exempted domain.)

Because we are no longer returning early, we need to check if
principal is null, as sometimes it might be now.

Pushed by tritter@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/77de67657791 Handle TRRServiceChannel in ShouldResistFingerprinting r=timhuang,tschuster
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: