+2012-04-24 Jeffrey Pfau <jpfau@apple.com>
+
+ Disable RTF in JavaScript drag-and-drop
+ https://bugs.webkit.org/show_bug.cgi?id=76597
+
+ Reviewed by Maciej Stachowiak.
+
+ * fast/events/drag-and-drop-subframe-dataTransfer-expected.txt: Added.
+ * fast/events/drag-and-drop-subframe-dataTransfer.html: Added.
+ * fast/events/resources/file-for-drag-and-drop-subframe-dataTransfer.html: Added.
+
2012-04-27 Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com>
[EFL] [DRT] Unskip passing tests related to editing commands
--- /dev/null
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+function onDrop(evt) {
+ document.body.innerHTML = 'PASS';
+ if (!evt.dataTransfer.types) return;
+ for (var i = 0, type; type = evt.dataTransfer.types[i]; i++) {
+ clip = evt.dataTransfer.getData(type);
+ if (typeof clip == 'string' && clip.indexOf('FAIL') != -1)
+ document.body.innerHTML = 'FAIL';
+ }
+ evt.preventDefault();
+ window.layoutTestController.notifyDone();
+}
+
+function runTest() {
+ window.layoutTestController.dumpAsText();
+ window.layoutTestController.waitUntilDone();
+ var d = document.getElementById('drag');
+ var o = document.getElementById('drop');
+ eventSender.mouseMoveTo(d.offsetLeft + d.offsetWidth / 2, d.offsetTop + d.offsetHeight / 2);
+ eventSender.mouseDown();
+ eventSender.leapForward(100);
+ eventSender.mouseMoveTo(o.offsetLeft + o.offsetWidth / 2, o.offsetTop + o.offsetHeight / 2);
+ eventSender.mouseUp();
+}
+
+window.onload = function() {
+ var d = document.getElementById('drag');
+ var r = document.createRange();
+ r.selectNode(d);
+ getSelection().removeAllRanges();
+ getSelection().addRange(r);
+ document.getElementById('drop').addEventListener('drop', onDrop, true);
+ window.addEventListener('dragover', function(x) { x.preventDefault() }, true);
+ window.addEventListener('dragstart', function(x) { window.focus() }, true);
+
+ if (window.layoutTestController)
+ runTest();
+}
+</script>
+</head>
+<body>
+Dragging this iframe onto a drop target should not expose its contents.
+<div id="drag" style="-webkit-user-drag: element ">
+→
+<iframe src="resources/file-for-drag-and-drop-subframe-dataTransfer.html"></iframe>
+←
+</div>
+<input id="drop">
+</body>
+</html>
+2012-04-24 Jeffrey Pfau <jpfau@apple.com>
+
+ Disable RTF in JavaScript drag-and-drop
+ https://bugs.webkit.org/show_bug.cgi?id=76597
+
+ Reviewed by Maciej Stachowiak.
+
+ Test: fast/events/drag-and-drop-subframe-dataTransfer.html
+
+ * platform/mac/ClipboardMac.mm:
+ (WebCore::cocoaTypeFromHTMLClipboardType):
+
2012-04-26 James Robinson <jamesr@chromium.org>
[chromium] Separate IOSurface layer type from texture layers
// special case because UTI doesn't work with Cocoa's URL type
return String(NSURLPboardType); // note special case in getData to read NSFilenamesType
+ // Blacklist types that might contain subframe information
+ if (qType == "text/rtf" || qType == "public.rtf" || qType == "com.apple.traditional-mac-plain-text")
+ return String();
+
// Try UTI now
String mimeType = qType;
RetainPtr<CFStringRef> utiType(AdoptCF, UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, mimeType.createCFString(), NULL));