Closed Bug 1732360 Opened 4 years ago Closed 4 years ago

Missing header Includes when MOZ_BUNDLED_FONTS is set

Categories

(Core :: Graphics: Text, defect)

Firefox 90
Unspecified
macOS
defect

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox-esr91 --- fixed
firefox95 --- fixed

People

(Reporter: sysrqb, Assigned: sysrqb)

Details

Attachments

(1 file)

Bug 1707655 moved some code around, unfortunately it seems some headers were missed - presumably because the code changes weren't tested with MOZ_BUNDLED_FONTS.

We need nsDirectoryServiceDefs.h for NS_GRE_DIR, and mozilla/Telemetry.h for the Telemetry:: usage.

Assignee: nobody → sysrqb
Status: NEW → ASSIGNED

Build errors, for clarity.

12:49.01 /home/sysrqb/gecko-dev/gfx/thebes/gfxPlatformMac.cpp:116:40: error: use of undeclared identifier 'NS_GRE_DIR'                                                                                     
12:49.01   if (NS_FAILED(NS_GetSpecialDirectory(NS_GRE_DIR, getter_AddRefs(localDir)))) {            
12:49.01                                        ^                                                                                                                                                          
12:49.08 /home/sysrqb/gecko-dev/gfx/thebes/gfxPlatformMac.cpp:202:7: error: use of undeclared identifier 'Telemetry'                                                                                       
12:49.09       Telemetry::Accumulate(Telemetry::FONTLIST_BUNDLEDFONTS_ACTIVATE,                      
12:49.09       ^                                                                                                                                                                                           
12:49.16 /home/sysrqb/gecko-dev/gfx/thebes/gfxPlatformMac.cpp:202:29: error: use of undeclared identifier 'Telemetry'                                                                                      
12:49.16       Telemetry::Accumulate(Telemetry::FONTLIST_BUNDLEDFONTS_ACTIVATE,                                                                                                                            
12:49.16                             ^                                                                                                                                                                     
12:49.16 /home/sysrqb/gecko-dev/gfx/thebes/gfxPlatformMac.cpp:202:70: error: expected ')'                                                                                                                  
12:49.16       Telemetry::Accumulate(Telemetry::FONTLIST_BUNDLEDFONTS_ACTIVATE,                                                                                                                            
12:49.16                                                                      ^                                                                                                                            
12:49.16 /home/sysrqb/gecko-dev/gfx/thebes/gfxPlatformMac.cpp:202:28: note: to match this '('                                                                                                              
12:49.16       Telemetry::Accumulate(Telemetry::FONTLIST_BUNDLEDFONTS_ACTIVATE, 

The severity field is not set for this bug.
:lsalzman, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(lsalzman)

Matthew, are you going to try to land this patch?

Severity: -- → S3
Flags: needinfo?(lsalzman) → needinfo?(sysrqb)

(In reply to Lee Salzman [:lsalzman] from comment #4)

Matthew, are you going to try to land this patch?

Hi Lee, yes, but I'm not certain how (I think you stopped using the checkin-needed keyword, right?). I didn't see how to request landing in the phab docs, either.

Flags: needinfo?(sysrqb) → needinfo?(lsalzman)

I'll take care of it.

Flags: needinfo?(lsalzman)
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2b762a6507c9 Add headers needed by MOZ_BUNDLED_FONTS. r=jfkthame
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch

Jonathan: Could we get that uplifted to ESR 91, too? Seems to be not too invasive while fixing compilation breakage and allows us to ship a patch less in our stack.

Flags: needinfo?(jfkthame)

Seems entirely reasonable to me; I'll nominate it.

Flags: needinfo?(jfkthame)

Comment on attachment 9243274 [details]
Bug 1732360 - Add headers needed by MOZ_BUNDLED_FONTS. r?jfkthame

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Fixes compilation breakage for consumers (eg. Tor) using the MOZ_BUNDLED_FONTS option.
  • User impact if declined: Anyone building with MOZ_BUNDLED_FONTS on Mac has to patch locally.
  • Fix Landed on Version: 95
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): No effect unless MOZ_BUNDLED_FONTS is enabled on Mac; no code change, just adds missing headers to fix inadvertent compilation breakage.
Attachment #9243274 - Flags: approval-mozilla-esr91?

Comment on attachment 9243274 [details]
Bug 1732360 - Add headers needed by MOZ_BUNDLED_FONTS. r?jfkthame

Approved for 91.5esr.

Attachment #9243274 - Flags: approval-mozilla-esr91? → approval-mozilla-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: