CEF3 3325 doesn't support to set user_style_sheet_location

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.

CEF3 3325 doesn't support to set user_style_sheet_location

Postby shenhui » Thu Apr 19, 2018 6:06 am

Hello Guys,

I'm upgrading CEF3 from 1650 to 3325 at the moment, but I found the user_style_sheet_location attribute is removed from CefBrowserSettings.

Is there any other way to set the location in branch 3325 ?

Much appreciation for any help.

Shenhui.
shenhui
Techie
 
Posts: 31
Joined: Sat Apr 16, 2011 10:50 pm

Re: CEF3 3325 doesn't support to set user_style_sheet_locati

Postby Czarek » Thu Apr 19, 2018 6:33 am

To my knowledge this is no more supported in upstream Chromium. You can execute custom javascript and add styles on web pages using CefLoadHandler.
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: CEF3 3325 doesn't support to set user_style_sheet_locati

Postby shenhui » Thu Apr 19, 2018 9:21 pm

Thanks a lot. I will take a try.
shenhui
Techie
 
Posts: 31
Joined: Sat Apr 16, 2011 10:50 pm

Re: CEF3 3325 doesn't support to set user_style_sheet_locati

Postby shenhui » Tue Jun 05, 2018 6:05 am

So now we cannot set user_style_sheet_location, is there a way in 3325 to customize the style of web page scrollbar ?
shenhui
Techie
 
Posts: 31
Joined: Sat Apr 16, 2011 10:50 pm

Re: CEF3 3325 doesn't support to set user_style_sheet_locati

Postby magreenblatt » Tue Jun 05, 2018 9:13 am

You can inject JavaScript code to change the style.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: CEF3 3325 doesn't support to set user_style_sheet_locati

Postby shenhui » Tue Jun 05, 2018 10:25 pm

My goal is changing the style of scrollbar, injecting js works sometimes, but it depends on the occasion, if too late, the scrollbar style cannot be changed.
shenhui
Techie
 
Posts: 31
Joined: Sat Apr 16, 2011 10:50 pm


Return to Support Forum

Who is online

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