Closed Bug 1623928 Opened 4 years ago Closed 4 years ago

Error messages in Policies.jsm not showing up on console unless "Show Content Messages" is checked

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(firefox76 fixed)

RESOLVED FIXED
Firefox 76
Tracking Status
firefox76 --- fixed

People

(Reporter: mkaply, Assigned: edenchuang)

References

Details

Attachments

(1 file)

If you place some error messages in Policies.jsm like here:

https://searchfox.org/mozilla-central/rev/6cd54550a27e2f6ca0755a25328f769e41e524f4/browser/components/enterprisepolicies/Policies.jsm#1159

They do not show up unless you turn on content messages.

I don't believe this JSM file is running in content, so the messages should work.

Alternatively, show content messages should be the default on nightly at least for development.

Component: General → Console
Product: Firefox → DevTools

Eden, any idea what's left here? I would have expected this to work...

:mkaply, are you using Cu.reportError, or throw, or something else?

Flags: needinfo?(mozilla)
Flags: needinfo?(echuang)
See Also: → 1613367

Components.utils.reportError

Flags: needinfo?(mozilla)
Assignee: nobody → echuang
Status: NEW → ASSIGNED
Flags: needinfo?(echuang)
Priority: -- → P2
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d7627863bd49
Cu.reportError with 0 innerWindowID should be from chrome context r=baku
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: