paste icon does not work since cef3_2623

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

paste icon does not work since cef3_2623

Postby zhouyangjulia » Wed Aug 24, 2016 6:11 pm

Hi,

We are using TinyMSC editor on cef3 browser. The paste icon works fine with cef3_2454, but it's broken after we upgraded to cef3_2785.
I got simple reproducer:
-lauch http://fiddle.tinymce.com/Lzfaab in browser
-type sth in the note area, then use Edit->copy/paste

I downloaded the cefclient for testing. The copy/paste icon works fine with cef3_2454 cefclient, but does not work with cef3_2623 due to "clipboard cannot be accessed from chrome because of security issue".
Seems like CEF stopped enabling access clipboard from chrome.

Is it expected behavior? Or is there any solution to make it work again?

Thanks,
zhouyangjulia
Techie
 
Posts: 20
Joined: Thu Nov 19, 2015 2:07 pm

Re: paste icon does not work since cef3_2623

Postby zhouyangjulia » Wed Aug 24, 2016 7:54 pm

Turned out SET_STATE(cef.javascript_dom_paste, web.dom_paste_enabled); the value here has changed.
In cef3_2454 https://bitbucket.org/chromiumembedded/cef/src/2782fb8fc85f55b87ea3c8bedaccec243eba65ed/libcef/browser/browser_settings.cc?at=2454&fileviewer=file-view-default#browser_settings.cc-107 cef.javascript_dom_paste is set to true.
While in cef3_2785 it's set to false, at least with the version I am working with.
Is it on purpose to set it to false? is it possible to set it back to true?
zhouyangjulia
Techie
 
Posts: 20
Joined: Thu Nov 19, 2015 2:07 pm

Re: paste icon does not work since cef3_2623

Postby amaitland » Wed Aug 24, 2016 8:30 pm

If you look at the link you provided a little closer you'll see that those settings are read from CefBrowserSettings, which is passed in to `CefBrowserHost::CreateBrowser` as a param.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am

Re: paste icon does not work since cef3_2623

Postby zhouyangjulia » Thu Aug 25, 2016 9:53 am

amaitland wrote:If you look at the link you provided a little closer you'll see that those settings are read from CefBrowserSettings, which is passed in to `CefBrowserHost::CreateBrowser` as a param.

The link is for cef3_2454, the design and implementation has changed after that version. And the paste button cannot be used since cef3_2623 cefclient. While paste button works fine with cef3_2454 cefclient.
zhouyangjulia
Techie
 
Posts: 20
Joined: Thu Nov 19, 2015 2:07 pm

Re: paste icon does not work since cef3_2623

Postby amaitland » Thu Aug 25, 2016 4:45 pm

Check through the `CEF` changelog, it's possible dom_paste_enabled was removed or moved.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1291
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 18 guests