Page MenuHomePhabricator

Bug 1951697 - Add missing include for MOZ_RUNINIT r=gerard-majax!
ClosedPublic

Authored by sergesanspaille on Mar 5 2025, 4:23 PM.
Referenced Files
Unknown Object (File)
Wed, Oct 15, 3:13 AM
Unknown Object (File)
Wed, Oct 15, 12:15 AM
Unknown Object (File)
Mon, Oct 13, 9:12 PM
Unknown Object (File)
May 30 2025, 11:55 AM
Unknown Object (File)
May 9 2025, 3:46 PM
Unknown Object (File)
May 8 2025, 4:04 PM
Unknown Object (File)
Apr 14 2025, 5:47 PM
Unknown Object (File)
Apr 13 2025, 7:55 PM
Subscribers

Diff Detail

Event Timeline

phab-bot published this revision for review.Mar 5 2025, 4:23 PM
phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

Let's just make sure we update the git author to reflect the contributor's patch

This revision is now accepted and ready to land.Mar 5 2025, 7:46 PM

This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!

sergesanspaille retitled this revision from Bug 1951697 - Add missing include for MOZ_RUNINIT r=gerard-majax to Bug 1951697 - Add missing include for MOZ_RUNINIT r=gerard-majax!.
This revision is now accepted and ready to land.Mar 6 2025, 7:25 AM

My apologies if I'm overstepping my bounds by commenting here, but may I ask why the filename was used instead of the inclname, which I used in my patch as attached over on Bugzilla? Between https://github.com/mozilla/gecko-dev/blob/d5cbb5b26c2fe8639da9ea0b0f225018d3697c59/config/check_spidermonkey_style.py#L294 and https://github.com/mozilla/gecko-dev/blob/d5cbb5b26c2fe8639da9ea0b0f225018d3697c59/docs/code-quality/coding-style/using_cxx_in_firefox_code.rst#notes, it seems to me that mozilla/Attributes.h is the correct include path; Firefox builds fine on my laptop when using mozilla/Attributes.h instead of mfbt/Attributes.h at the very least. I also searched for both mozilla/Attributes.h and mfbt/Attributes.h on GitHub and only got include results when searching for the former.

My apologies if I'm overstepping my bounds by commenting here, but may I ask why the filename was used instead of the inclname, which I used in my patch as attached over on Bugzilla? Between https://github.com/mozilla/gecko-dev/blob/d5cbb5b26c2fe8639da9ea0b0f225018d3697c59/config/check_spidermonkey_style.py#L294 and https://github.com/mozilla/gecko-dev/blob/d5cbb5b26c2fe8639da9ea0b0f225018d3697c59/docs/code-quality/coding-style/using_cxx_in_firefox_code.rst#notes, it seems to me that mozilla/Attributes.h is the correct include path; Firefox builds fine on my laptop when using mozilla/Attributes.h instead of mfbt/Attributes.h at the very least. I also searched for both mozilla/Attributes.h and mfbt/Attributes.h on GitHub and only got include results when searching for the former.

No offense meant, your comment is pin-point correct. I actually wrote the patch independently from yours then saw you wrote one and didn't double check when attributing. Patch updated, I'll land that this morning.
Apologizes and thanks :-)