Bug 490678 - Intro branding image does not appear under Windows
Summary: Intro branding image does not appear under Windows
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 4.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.6 RC1   Edit
Assignee: Brian de Alwis CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-30 08:52 EDT by Dani Megert CLA
Modified: 2016-05-10 03:39 EDT (History)
3 users (show)

See Also:
daniel_megert: review+


Attachments
Slate theme (53.66 KB, image/png)
2016-04-05 10:04 EDT, Dani Megert CLA
no flags Details
Solstice theme (31.51 KB, image/png)
2016-04-05 10:04 EDT, Dani Megert CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2016-03-30 08:52:35 EDT
4.6 M6, but even broken in 3.8.

intro branding image does not appear under Windows.

It works on Linux
Comment 1 Dani Megert CLA 2016-03-30 09:26:24 EDT
It also works in the preview where one can choose the theme.
Comment 2 Brian de Alwis CLA 2016-03-30 14:17:57 EDT
The preview is a generated PNG.
Comment 3 David Williams CLA 2016-03-31 00:21:32 EDT
What format is the branding image in? 
I am asking because of finding related to our Splash screen (which is BMP). 
See https://wiki.eclipse.org/Platform-releng/Updating_Branding#Splash_screen
But to quote here: 
= = =  =
Note: If your image program offers a choice, such as GIMP 2.8.10 does, it is important to save the bmp WITHOUT color space information saved or, else, the splash screen will not be displayed on Windows .... apparently a silent failure to read a "modern" BMP file (watch bug 439573).
= = = = =
Not sure if there is any similar bugs with PNG files. 

Just trying to be helpful.
Comment 4 Dani Megert CLA 2016-03-31 06:21:36 EDT
(In reply to David Williams from comment #3)
> What format is the branding image in? 

http://git.eclipse.org/c/platform/eclipse.platform.git/plain/platform/org.eclipse.sdk/intro-eclipse.png
Comment 5 Brian de Alwis CLA 2016-04-01 10:06:31 EDT
David: that's not an issue here, the Intro/Welcome is an embedded SWT Browser instance.

Dani: Did the other icons show?  Can you attach a screenshot?  I think this is bug 490116.  Could you open the internal browser and visit https://www.whatismybrowser.com?
Comment 6 Dani Megert CLA 2016-04-05 09:52:23 EDT
(In reply to Brian de Alwis from comment #5)
> Dani: Did the other icons show?

Yes.

> Could you open the internal browser and visit
> https://www.whatismybrowser.com?

Internet Explorer 11 on Windows 7
Comment 7 Dani Megert CLA 2016-04-05 10:04:23 EDT
Created attachment 260717 [details]
Slate theme
Comment 8 Dani Megert CLA 2016-04-05 10:04:59 EDT
Created attachment 260718 [details]
Solstice theme
Comment 9 Dani Megert CLA 2016-04-05 10:23:15 EDT
Very weird: I tried again using 3.8 and then the icon appear. Deleted the workspace and tried again: icon was missing!
Comment 10 Brian de Alwis CLA 2016-04-26 13:00:57 EDT
This disappearing icon seems to be caused by the generation an MS/IE-specific filter in the Intro's IntroHTMLGenerator to work around bugs in IE5.5.  Opening up the rendered HTML in IE8 [1] brings up a warning that scripts and ActiveX controls are disabled.  

But removing this code means that the icon appears super-sized for IE < 11, similar to what Noopur shows on https://bugs.eclipse.org/bugs/attachment.cgi?id=261240

[1] Launch with the `org.eclipse.ui.intro/debug/toolbar=true` in your debug/tracing options and you'll see a little notebook icon that will pop up the current page into your browser
Comment 11 Eclipse Genie CLA 2016-05-04 23:06:58 EDT
New Gerrit change created: https://git.eclipse.org/r/72119
Comment 12 Brian de Alwis CLA 2016-05-04 23:53:48 EDT
I've put up two variants of the patch.  The first removes the filter-generation code entirely.  The second makes the filter-generation conditional on IE<9 as background-size is reported to work on IE9+ [1].  I verified that the branding image is shown on IE 11 and Edge.

The second is somewhat preferred IMHO as it effectively causes the images to disappear on IE8 which is preferrable to having oversized images.

[1] http://caniuse.com/#search=background-size
Comment 13 Dani Megert CLA 2016-05-06 08:26:44 EDT
+1 for RC1 with minor corrections (see Gerrit change).
Comment 15 Dani Megert CLA 2016-05-10 03:39:08 EDT
Verified in eclipse-SDK-I20160509-2000-win32-x86_64.