Title: [86710] trunk/Source/WebKit/chromium
Revision
86710
Author
[email protected]
Date
2011-05-17 15:07:53 -0700 (Tue, 17 May 2011)

Log Message

2011-05-17  Daniel Cheng  <[email protected]>

        Reviewed by Ryosuke Niwa.

        [chromium] Clipboard policy callbacks from EditorClientImpl are reversed
        https://bugs.webkit.org/show_bug.cgi?id=60994

        * src/EditorClientImpl.cpp:
        (WebKit::EditorClientImpl::canCopyCut):
        (WebKit::EditorClientImpl::canPaste):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (86709 => 86710)


--- trunk/Source/WebKit/chromium/ChangeLog	2011-05-17 22:00:31 UTC (rev 86709)
+++ trunk/Source/WebKit/chromium/ChangeLog	2011-05-17 22:07:53 UTC (rev 86710)
@@ -1,3 +1,14 @@
+2011-05-17  Daniel Cheng  <[email protected]>
+
+        Reviewed by Ryosuke Niwa.
+
+        [chromium] Clipboard policy callbacks from EditorClientImpl are reversed
+        https://bugs.webkit.org/show_bug.cgi?id=60994
+
+        * src/EditorClientImpl.cpp:
+        (WebKit::EditorClientImpl::canCopyCut):
+        (WebKit::EditorClientImpl::canPaste):
+
 2011-05-17  Andrew Wilson  <[email protected]>
 
         Unreviewed, rolling out r86647.

Modified: trunk/Source/WebKit/chromium/src/EditorClientImpl.cpp (86709 => 86710)


--- trunk/Source/WebKit/chromium/src/EditorClientImpl.cpp	2011-05-17 22:00:31 UTC (rev 86709)
+++ trunk/Source/WebKit/chromium/src/EditorClientImpl.cpp	2011-05-17 22:07:53 UTC (rev 86710)
@@ -320,14 +320,14 @@
 {
     if (!m_webView->permissionClient())
         return defaultValue;
-    return m_webView->permissionClient()->allowReadFromClipboard(WebFrameImpl::fromFrame(frame), defaultValue);
+    return m_webView->permissionClient()->allowWriteToClipboard(WebFrameImpl::fromFrame(frame), defaultValue);
 }
 
 bool EditorClientImpl::canPaste(Frame* frame, bool defaultValue) const
 {
     if (!m_webView->permissionClient())
         return defaultValue;
-    return m_webView->permissionClient()->allowWriteToClipboard(WebFrameImpl::fromFrame(frame), defaultValue);
+    return m_webView->permissionClient()->allowReadFromClipboard(WebFrameImpl::fromFrame(frame), defaultValue);
 }
 
 bool EditorClientImpl::canUndo() const
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to