Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336528 - [WebKit] Eclipse Welcome page does not show properly
Summary: [WebKit] Eclipse Welcome page does not show properly
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Lakshmi P Shanmugam CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-07 11:18 EST by Grant Gayed CLA
Modified: 2019-11-14 02:13 EST (History)
0 users

See Also:


Attachments
example snippet (1.98 KB, text/x-java)
2011-05-09 07:41 EDT, Lakshmi P Shanmugam CLA
no flags Details
patch (4.68 KB, patch)
2011-05-10 06:44 EDT, Lakshmi P Shanmugam CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2011-02-07 11:18:46 EST
1. change the top two lines of Browser.java's constructor to the following:
	super (checkParent (parent), checkStyle (style | SWT.WEBKIT));
	style |= SWT.WEBKIT;
	userStyle = style;
2. self-host
3. View the Welcome page
  -> it appears as just plaintext and links

I think I saw this happen with the Mozilla-based Browser years ago, I think the base directory was not being set properly so something related to styling was not being found (?).  I'm not sure if this makes sense because the file references in the welcome page's current source all look absolute.  Maybe some of the files referenced (eg.- the .css's) contain relative links that rely on the browser having a base directory?
Comment 1 Grant Gayed CLA 2011-04-28 11:34:54 EDT
I notice that IWebPreferencesPrivate has setAllowUniversalAccessFromFileURLs(bool), which I suspect would make this work.  Lakshmi can you investigate this for 3.7RC1?
Comment 2 Lakshmi P Shanmugam CLA 2011-05-09 07:38:57 EDT
Hi Grant, 
I tried this by setting the properties setAllowUniversalAccessFromFileURLs and setAllowFileAccessFromFileURLs, but the styling still doesn't work.
Comment 3 Lakshmi P Shanmugam CLA 2011-05-09 07:41:46 EDT
Created attachment 195058 [details]
example snippet
Comment 4 Grant Gayed CLA 2011-05-09 10:18:03 EDT
Do you have a patch with the changes that were attempted to set these preference values?  If it seems like this isn't going to be the solution then the 3.7RC1 target milestone can be removed from this report, but I'd just like to double-check this first, because I think a similar change to this is what made this case work on gtk.
Comment 5 Lakshmi P Shanmugam CLA 2011-05-10 06:44:03 EDT
Created attachment 195193 [details]
patch

The patch sets the preferences for setAllowUniversalAccessFromFileURLs and setAllowAccessFromFileURLs in IWebPreferencesPrivate. Also, sets the text encoding to UTF-8 similar to GTK.
I tried this patch, but the styling doesn't work.
Comment 6 Grant Gayed CLA 2011-05-10 12:15:58 EDT
Seems reasonable, removing target milestone.  This is still worth investigating, but not for 3.7.
Comment 7 Lars Vogel CLA 2019-11-14 02:13:31 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.