Closed Bug 1655838 Opened 4 years ago Closed 4 years ago

Error "no localization found for [undefined]" when a blocked request is displayed in the console

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

Details

Attachments

(1 file)

STRs:

  • block any request in the netmonitor
  • show requests in the console
  • trigger the blocked request

An error will be logged : no localization found for [undefined]

For blocked requests, we create a MessageIcon component with no "level", but level is a mandatory property and is used to call l10n's getStr:

Component created at:
https://searchfox.org/mozilla-central/rev/d9f92154813fbd4a528453c33886dc3a74f27abb/devtools/client/webconsole/components/Output/Message.js#183

L10n called at:
https://searchfox.org/mozilla-central/rev/d9f92154813fbd4a528453c33886dc3a74f27abb/devtools/client/webconsole/components/Output/MessageIcon.js#30

Error is logged at:
https://searchfox.org/mozilla-central/rev/d9f92154813fbd4a528453c33886dc3a74f27abb/devtools/shared/l10n.js#130

The error is simply logged. Might be nice to still provide a level, since it's mandatory, but this shouldn't impact the behavior of the console.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/176ff21be520
Set ERROR level for blocked request messages in Webconsole r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: