Open Bug 1554062 Opened 4 years ago Updated 8 months ago

[meta] Move non-header files out of MFBT


(Core :: MFBT, task)




Tracking Status
firefox69 --- affected


(Reporter: glandium, Unassigned)



(Keywords: meta)

MFBT stands for "Mozilla Framework Based on Templated".

Over time, it has been conflated with "put everything that we need to share between js and gecko", when in fact, that's what libmozglue is for (and, in fact, MFBT is part of libmozglue).

Unfortunately, that causes problems, such as, which is due to DisableStlWrapping in mfbt/

DisableStlWrapping is necessary in there because MFBT is not headers-only, and more-or-less standalone things that use MFBT, starting with the MFBT unit tests, but also other things, fail to build when they use MFBT and not libmozglue (which they have a right not to want), because STL wrapping requires mozalloc/mozjemalloc, which are in libmozglue. (Yeah, it's all hairy).

Not all .cpp/.cc files being equal in mfbt/, this is a tracking bug. I'll file a separate blocking bug for the most immediate things that would need to get out of the way to address the issue in bug 1547519.

Depends on: 1554063
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.