Closed Bug 1620239 Opened 4 years ago Closed 4 years ago

TypeError: can't access property "externalContentPolicyType", channel.loadInfo is null

Categories

(Core :: Networking, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox-esr68 --- unaffected
firefox73 --- unaffected
firefox74 --- wontfix
firefox75 --- fixed

People

(Reporter: florian, Assigned: xeonchen)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [necko-triaged])

Attachments

(1 file)

I see lots of TypeError: can't access property "externalContentPolicyType", channel.loadInfo is null errors in the browser console when loading web pages, eg. when typing https://profiler.firefox.com and <enter> in the url bar.

The error is on this line https://searchfox.org/mozilla-central/rev/c79c0d65a183d9d38676855f455a5c6a7f7dadd3/browser/components/search/SearchTelemetry.jsm#658 added by bug 1614777.

Gary, can you please look into this issue?

Assignee: nobody → xeonchen
Flags: needinfo?(xeonchen)
Flags: needinfo?(xeonchen)
Priority: -- → P3
Whiteboard: [necko-triaged]

Out of curiosity, what channel was it that didn't have loadinfo?

Flags: needinfo?(xeonchen)
Pushed by xeonchen@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/1843cd41ed4f
ensure not to access null pointer; r=Ehsan

(In reply to :ehsan akhgari from comment #3)

Out of curiosity, what channel was it that didn't have loadinfo?

I can't actually reproduce this, but according to ChannelWrapper.h it's not impossible to retrieve a null pointer when the channel is closed, which is not likely the case happen here.

Florian, any idea?

Flags: needinfo?(xeonchen) → needinfo?(florian)

Any idea about how I would go from plenty of noise in my console to answering the "what channel was it" question? I see this error everytime I capture a profile (ctrl+shift+2).

(In reply to Florian Quèze [:florian] from comment #6)

Any idea about how I would go from plenty of noise in my console to answering the "what channel was it" question? I see this error everytime I capture a profile (ctrl+shift+2).

Thanks! I can reproduce while capturing a profile.
Looks like the given channel is invalid because the finalURL field is empty.

Flags: needinfo?(florian)
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: