The default bug view has changed. See this FAQ.

Remove legacy splash screen code (nsSplashScreen, MOZ_SPLASHSCREEN, splash.bmp) now that no platforms use it

RESOLVED FIXED in mozilla8



6 years ago
6 years ago


(Reporter: emorley, Assigned: emorley)


(Blocks: 1 bug)

Dependency tree / graph
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)



(1 attachment, 2 obsolete attachments)

My patch in bug 652445 (once it lands) removes nsSplashScreenWin.cpp, since it was only used under WinCE.

This leaves all other platforms using nsSplashScreenDummy.cpp:

...which does nothing but return null:

These files can thus be removed:
- /toolkit/xre/nsSplashScreenDummy.cpp
- /toolkit/xre/nsSplashScreen.h

Which leaves MOZ_SPLASHSCREEN unused, so can be removed:

And also several splash.bmp files unused, so can be removed:
Note: The Android splash screen doesn't use nsSplashScreen or MOZ_SPLASHSCREEN; so isn't affected:
Assignee: nobody → bmo
Created attachment 528853 [details] [diff] [review]
Patch v1

Remove all #ifdef MOZ_SPLASHSCREEN code & hg rm the following:
- browser/branding/*/splash.bmp
- mobile/app/splash.bmp
- toolkit/xre/nsSplashScreen.h
- toolkit/xre/nsSplashScreenDummy.cpp

Passed try:

Not sure who to ask for review, since this touches a few areas + looking at the hg logs wasn't conclusive. Picked you due to: ; but please let me know if I should be asking someone else. Thanks!

(Note: This patch applies on top of the ones in bug 652445, which haven't yet landed).
Attachment #528853 - Flags: review?(dtownsend)
Comment on attachment 528853 [details] [diff] [review]
Patch v1

I'd like Benjamin to assert he's ok with this then I think it's good to go.
Attachment #528853 - Flags: review?(dtownsend)
Attachment #528853 - Flags: review?(benjamin)
Attachment #528853 - Flags: review+
Comment on attachment 528853 [details] [diff] [review]
Patch v1

I am 99% sure that the Android splash screen does not use this code, but please confirm that with mfinkle before landing this.
Attachment #528853 - Flags: review?(benjamin) → review+
Blocks: 506217
Mark, bsmedberg has asked that I check with you regarding comment 4. The MXR links in comment 1 make me believe that Android does not use nsSplashScreen - but if you could confirm here, that would be great. Thanks!
Android does not use this code for a splashscreen. We use the Java loader code to display a splashscreen, before the Mozilla platform is really even initialized.

However, here is a patch to add splash screen support to maemo/meego and it uses this code. See bug 643122.

Lets hold off on removing the splashscreen support until we see if Meego, and any other new mobile platforms, might need it.
Depends on: 643122
Thanks for the heads up.

Suspect even if bug 643122 lands in it's nsSplashScreen using form, there are going to be unused splash.bmp files from the WinCE era (eg the nightly/aurora splash.bmp are out of date); but will just be easier to wait until the dust settles on that bug before moving this one further...
Flags: in-testsuite-
Created attachment 546887 [details] [diff] [review]
Patch v1.1

Only change from previously r+'d patch are the two lines in mobile/app/ - requesting review just for those. Thanks! :-)
Attachment #528853 - Attachment is obsolete: true
Attachment #546887 - Flags: review?(dtownsend)
Attachment #546887 - Flags: review?(dtownsend) → review+
Created attachment 549876 [details] [diff] [review]
Patch v1.2

Updated to tip. No other changes, so carrying forwards r+.
Sent to try again for build only, for sanity check:

See comment 2 for older full try run.

Thanks for the review Dave :-)
Attachment #546887 - Attachment is obsolete: true
Attachment #549876 - Flags: review+
Keywords: checkin-needed


6 years ago
Keywords: checkin-needed
Whiteboard: [inbound]
Last Resolved: 6 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla8
For reference, this effectively reverts (the still present parts of) the following:

Adding deps to help future history tracking.
Blocks: 329742, 643122
Depends on: 498707, 481494, 502526, 504750
No longer depends on: 643122
You need to log in before you can comment on or make changes to this bug.