Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 565832

Summary: [chromium]Not allowed to load local resource error
Product: [Eclipse Project] Platform Reporter: Lakshmi P Shanmugam <lshanmug>
Component: SWTAssignee: Guillermo Zunino <guillez>
Status: VERIFIED FIXED QA Contact: Niraj Modi <niraj.modi>
Severity: normal    
Priority: P3 CC: guillez, niraj.modi
Version: 4.17   
Target Milestone: 4.17 M3   
Hardware: PC   
OS: All   
See Also: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/167372
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=dd877da9bfdc36b401e298735cc0c62f932c922f
Whiteboard:
Bug Depends on:    
Bug Blocks: 549585    

Description Lakshmi P Shanmugam CLA 2020-08-05 08:58:18 EDT
This happens on macOS, didn't test on other platforms.

1. Launch eclipse I20200729-1800 with -Dorg.eclipse.swt.browser.DefaultType=chromium in eclipse.ini.

2. Open the welcome page.

The images are not visible.

I see these multiple error messages like this in the console - "Not allowed to load local resource: file:///Applications/Eclipse%2014.app/Contents/Eclipse/configuration/org.eclipse.osgi/247/0/.cp/themes/shared/html/shared.css"
Comment 1 Eclipse Genie CLA 2020-08-06 22:54:36 EDT
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/167372
Comment 2 Guillermo Zunino CLA 2020-08-06 22:56:43 EDT
I created a patch that allows to load file:/ resources when passing html in setText.
Comment 3 Guillermo Zunino CLA 2020-08-06 23:01:40 EDT
I rested with the welcome page of the Eclipse SDK download and it loads css and images now.
Comment 4 Niraj Modi CLA 2020-08-07 04:40:43 EDT
Problem is seen on Windows10 as well, will verify the patch and get back.
Comment 5 Lakshmi P Shanmugam CLA 2020-08-07 05:14:56 EDT
@Guillermo, Thanks for the quick response! Please see comments in gerrit.
Comment 6 Guillermo Zunino CLA 2020-08-12 15:22:19 EDT
(In reply to Lakshmi Shanmugam (On vacation) from comment #5)
> @Guillermo, Thanks for the quick response! Please see comments in gerrit.

Patch updated, I tested welcome page and javadoc hovers, Also tested the different actions to open javadoc view and javadoc in internal browser, and seems fine this time.
Comment 8 Niraj Modi CLA 2020-08-14 04:02:50 EDT
(In reply to Eclipse Genie from comment #7)
> Gerrit change
> https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/167372 was
> merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/
> ?id=dd877da9bfdc36b401e298735cc0c62f932c922f

Resolving now.
Comment 9 Niraj Modi CLA 2020-08-19 06:09:10 EDT
Verified on Win10