Closed Bug 1386825 Opened 8 years ago Closed 8 years ago

Remove MOZ_B2G

Categories

(Core :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: erahm, Assigned: erahm)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

Remove all references to MOZ_B2G.
MozReview-Commit-ID: 1zzP2r01B7U
Attachment #8893089 - Flags: review?(bkelly)
MozReview-Commit-ID: Ji3MoFKLVI4
Attachment #8893090 - Flags: review?(nfroyd)
Nathan, these are the remaining instances of MOZ_B2G. I didn't split it up for sanity's sake.
Attachment #8893097 - Flags: review?(nfroyd)
MozReview-Commit-ID: Cg5gljpECwo
Attachment #8893099 - Flags: review?(mh+mozilla)
Nathan can you look at this? bsemedberg is out for a few weeks.
Attachment #8893100 - Flags: review?(nfroyd)
Blocks: nukeb2g
Mark, it looks like you reviewed the bug that added this code. AFAICT FxAccountsManager is only used when MOZ_B2G is defined and I'm removing that in this bug so it seems to make sense to remove FxAccountsManager as well. MozReview-Commit-ID: 8ldrMrPqhsV
Attachment #8893152 - Flags: review?(markh)
Attachment #8893099 - Flags: review?(mh+mozilla) → review+
Comment on attachment 8893152 [details] [diff] [review] Part 6: Remove FxAccountsManager now that MOZ_B2G is removed Review of attachment 8893152 [details] [diff] [review]: ----------------------------------------------------------------- LGTM, but note there's a reference in services/fxaccounts/moz.build that needs to be removed.
Attachment #8893152 - Flags: review?(markh) → review+
(In reply to Mark Hammond [:markh] from comment #8) > Comment on attachment 8893152 [details] [diff] [review] > Part 6: Remove FxAccountsManager now that MOZ_B2G is removed > > Review of attachment 8893152 [details] [diff] [review]: > ----------------------------------------------------------------- > > LGTM, but note there's a reference in services/fxaccounts/moz.build that > needs to be removed. Thanks for the quick review! That reference was removed in part 4 which lead me to add this patch.
Attachment #8893090 - Flags: review?(nfroyd) → review+
Comment on attachment 8893097 [details] [diff] [review] Part 4: Remove remaining instances of MOZ_B2G Review of attachment 8893097 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/gl/GLLibraryEGL.h @@ +493,5 @@ > return nullptr; > } > void UnsetCachedCurrentContext() {} > void SetCachedCurrentContext(EGLContext aCtx) { } > bool CachedCurrentContextMatches() { return true; } Might want to file a followup gfx bug about removing these functions and all callers, since the functions are useless now.
Attachment #8893097 - Flags: review?(nfroyd) → review+
Attachment #8893100 - Flags: review?(nfroyd) → review+
Comment on attachment 8893089 [details] [diff] [review] Part 1: Remove MOZ_B2G from dom Review of attachment 8893089 [details] [diff] [review]: ----------------------------------------------------------------- r=me with comments addressed. ::: dom/media/AudioStream.cpp @@ -342,5 @@ > > - if (params.stream_type == CUBEB_STREAM_TYPE_MAX) { > - return NS_ERROR_INVALID_ARG; > - } > -#endif Just to verify, you are are removing this code which currently builds for non-b2g android because the type is never CUBEB_STREAM_TYPE_MAX now? ::: dom/webidl/Window.webidl @@ -333,5 @@ > > -#ifdef MOZ_B2G > - attribute EventHandler onmoztimechange; > - attribute EventHandler onmoznetworkupload; > - attribute EventHandler onmoznetworkdownload; You need to remove these from nsGkAtomList as well, I believe: http://searchfox.org/mozilla-central/source/dom/base/nsGkAtomList.h#930 http://searchfox.org/mozilla-central/source/dom/base/nsGkAtomList.h#933 http://searchfox.org/mozilla-central/source/dom/base/nsGkAtomList.h#934 They exist in the servo code as well, but I don't think we need to change that here.
Attachment #8893089 - Flags: review?(bkelly) → review+
(In reply to Ben Kelly [:bkelly] from comment #11) > Comment on attachment 8893089 [details] [diff] [review] > Part 1: Remove MOZ_B2G from dom > > Review of attachment 8893089 [details] [diff] [review]: > ----------------------------------------------------------------- > > r=me with comments addressed. > > ::: dom/media/AudioStream.cpp > @@ -342,5 @@ > > > > - if (params.stream_type == CUBEB_STREAM_TYPE_MAX) { > > - return NS_ERROR_INVALID_ARG; > > - } > > -#endif > > Just to verify, you are are removing this code which currently builds for > non-b2g android because the type is never CUBEB_STREAM_TYPE_MAX now? Correct. > ::: dom/webidl/Window.webidl > @@ -333,5 @@ > > > > -#ifdef MOZ_B2G > > - attribute EventHandler onmoztimechange; > > - attribute EventHandler onmoznetworkupload; > > - attribute EventHandler onmoznetworkdownload; > > You need to remove these from nsGkAtomList as well, I believe: > > http://searchfox.org/mozilla-central/source/dom/base/nsGkAtomList.h#930 > http://searchfox.org/mozilla-central/source/dom/base/nsGkAtomList.h#933 > http://searchfox.org/mozilla-central/source/dom/base/nsGkAtomList.h#934 > > They exist in the servo code as well, but I don't think we need to change > that here. Thanks for pointing those out, I'll update it before landing.
Blocks: 1388531
(In reply to Nathan Froyd [:froydnj] from comment #10) > Comment on attachment 8893097 [details] [diff] [review] > Part 4: Remove remaining instances of MOZ_B2G > > Review of attachment 8893097 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: gfx/gl/GLLibraryEGL.h > @@ +493,5 @@ > > return nullptr; > > } > > void UnsetCachedCurrentContext() {} > > void SetCachedCurrentContext(EGLContext aCtx) { } > > bool CachedCurrentContextMatches() { return true; } > > Might want to file a followup gfx bug about removing these functions and all > callers, since the functions are useless now. Filed bug 1388531.
Blocks: 1402687
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: