<html>
<head>
<base href="https://bugs.webkit.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Image paste is not working"
href="https://bugs.webkit.org/show_bug.cgi?id=170449#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Image paste is not working"
href="https://bugs.webkit.org/show_bug.cgi?id=170449">bug 170449</a>
from <span class="vcard"><a class="email" href="mailto:cdumez@apple.com" title="Chris Dumez <cdumez@apple.com>"> <span class="fn">Chris Dumez</span></a>
</span></b>
<pre>Actually, tineye.com does not work in WebKit, even if I switch to using Data URLs. The reason is that the page's JavaScript relies on DataTransfer.items being implemented and it is not in WebKit.
JS:
_onPaste: function(b) {
var c = b.originalEvent && b.originalEvent.clipboardData && b.originalEvent.clipboardData.items,
d = {
files: []
};
c && c.length && (a.each(c, function(a, b) {
var c = b.getAsFile && b.getAsFile();
c && d.files.push(c)
}), this._trigger("paste", a.Event("paste", {
delegatedEvent: b
}), d) !== !1 && this._onAdd(b, d))
},
b.originalEvent.clipboardData.items is undefined in WebKit. So the tineye.com issue has nothing to do with the approach we chose in <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Use Blob URL instead of webkit-fake-url when pasting an image"
href="show_bug.cgi?id=49141">Bug 49141</a>.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>