cef 2704,twitter issue

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.

Re: cef 2704,twitter issue

Postby tenkavideoitalia » Mon Jul 18, 2016 1:07 pm

Czarek wrote:You could mock the Notification API by injecting javascript in CefLoadHandler::OnLoadingStateChange.

thx but i m not expert in java, can u post an example if dont t need to much time ?
this must be specify for twitter or is an general waorkaround?
thx
tenkavideoitalia
Newbie
 
Posts: 9
Joined: Sat Jul 16, 2016 8:37 am

Re: cef 2704,twitter issue

Postby Czarek » Mon Jul 18, 2016 2:17 pm

Take a look at twitter js code - the use of Notification and which functions they use. You can overwrite the Notification object with window.Notification = function(){ return object; }. Return a mocked object with dummy functions. To make it a general workaround mock the whole API: https://developer.mozilla.org/en-US/doc ... tification
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: cef 2704,twitter issue

Postby tenkavideoitalia » Wed Jul 20, 2016 3:18 pm

Czarek wrote:Take a look at twitter js code - the use of Notification and which functions they use. You can overwrite the Notification object with window.Notification = function(){ return object; }. Return a mocked object with dummy functions. To make it a general workaround mock the whole API: https://developer.mozilla.org/en-US/doc ... tification

thx for now i resolved using mobile.twitter.com
thx for support
tenkavideoitalia
Newbie
 
Posts: 9
Joined: Sat Jul 16, 2016 8:37 am

Previous

Return to Support Forum

Who is online

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

cron