[Webkit-unassigned] [Bug 123978] New: CORS enabled data:URL images fail to load
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 7 02:20:28 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=123978
Summary: CORS enabled data:URL images fail to load
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.9
Status: NEW
Severity: Normal
Priority: P2
Component: Images
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: stefankienzle.de at gmail.com
Steps to reproduce the problem:
I want to load CORS enabled data:URL images (in JS or HTML) - both cases are failing.
JS:
var img = document.createElement('img');
img.onload = function () {
...
};
img.crossOrigin = '';
img.src = <data-url>;
HTML:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAMAAAAM7l6QAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAlQTFRFa2tr3Nzc////HKA8dAAAAD9JREFUeNpiYCAAmMCAkQkrTaQ0DkAdaZx2AxmMQAAmYUwmGDmoXU6ZNCPCl5jkoHY5ZU4jyt+D0uV4DQcIMADuxwY6Y1aBvAAAAABJRU5ErkJggg==" crossorigin />
Open this jsfiddle: http://jsfiddle.net/Kienz/Dv3Eu/
You should see three w3c images!
What is the expected behavior?
Images should be loaded.
What went wrong?
The images don't load and you got the following error in dev console:
Cross-origin image load denied by Cross-Origin Resource Sharing policy.
In Safari 5.1 (Windows 7) it works. Safari 7 (Mac OS 10.9) it fails.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list