Closed Bug 1954682 Opened 1 month ago Closed 1 month ago

On Thunderbird startup: JavaScript error: resource://devtools/client/performance-new/popup/menu-button.sys.mjs, line 17: Error: Failed to load resource:///modules/CustomizableWidgets.sys.mjs

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect)

defect

Tracking

(firefox-esr128 unaffected, firefox136 unaffected, firefox137 unaffected, firefox138 affected)

RESOLVED INVALID
Tracking Status
firefox-esr128 --- unaffected
firefox136 --- unaffected
firefox137 --- unaffected
firefox138 --- affected

People

(Reporter: mkmelin, Unassigned)

References

(Regression)

Details

(Keywords: regression)

After bug 1950884 every time I start Thunderbird in the native console I see
JavaScript error: resource://devtools/client/performance-new/popup/menu-button.sys.mjs, line 17: Error: Failed to load resource:///modules/CustomizableWidgets.sys.mjs

It's in a way not unexpected as that module is Firefox-only.
I'm not even opening the devtools at that point though...
What would be the best way to avoid this console spew?

Set release status flags based on info from the regressing bug 1950884

:julienw, since you are the author of the regressor, bug 1950884, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Interesting, this patch shouldn't change anything unless you run thunderbird with MOZ_PROFILER_STARTUP. Is that what you're doing?

Bug 1562082 could have done that but it's been backed out anyway...

By chance do you see a longer stack in the Javascript console?

Flags: needinfo?(felash) → needinfo?(mkmelin+mozilla)

I do not set the env variable no.
In the error console the full stack is available

Error: Failed to load resource:///modules/CustomizableWidgets.sys.mjs menu-button.sys.mjs:17:17
    CustomizableWidgets resource://devtools/client/performance-new/popup/menu-button.sys.mjs:17
    key resource://devtools/client/performance-new/shared/typescript-lazy-load.sys.mjs:36
    initialize resource://devtools/client/performance-new/popup/menu-button.sys.mjs:109
    hookProfilerRecordingButton resource:///modules/DevToolsStartup.sys.mjs:717
    handle resource:///modules/DevToolsStartup.sys.mjs:385

Flags: needinfo?(mkmelin+mozilla)

Hmm, somehow devtools.performance.popup.feature-flag was true in my profile and that was causing it.

Sorry for the noise!

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → INVALID

In Firefox it's true in nightly and other cases: https://searchfox.org/mozilla-central/rev/1a7d78fdc729359ea43c65d647879c32bcdfb852/modules/libpref/init/all.js#656-658
Is that overridden in Thunderbird?
Bug 1950884 shouldn't have changed this behavior though!

Please file a new bug if you see this again :-) Probably we can do better in cases CustomizableWidgets is absent.

You need to log in before you can comment on or make changes to this bug.