Behaviour of UR_FLAG_STOP_ON_REDIRECT in CEF-3865

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.

Behaviour of UR_FLAG_STOP_ON_REDIRECT in CEF-3865

Postby jkum » Fri Oct 18, 2019 4:33 am

Hi

With cef-3865 (chromium-77.0.3865.120) the UR_FLAG_STOP_ON_REDIRECT flag seems to be broken.
Now when the UR_FLAG_STOP_ON_REDIRECT flag is being passed , we no longer get the request response in the GetResponseHeaders function.
Once an redirect response is received the browser is stuck thereafter.

My main question is did the way we should be using the CefURLRequestClient/CefURLRequest classes has changed or its an actual bug.


With cef-3626 it was working fine.

Thanks.
jkum
Techie
 
Posts: 15
Joined: Thu Mar 01, 2018 3:50 am

Re: Behaviour of UR_FLAG_STOP_ON_REDIRECT in CEF-3865

Postby magreenblatt » Fri Oct 18, 2019 4:48 am

What OS? What CefRequest contents?

There are unit tests that cover this functionality. Do they pass for you?
Code: Select all
ceftests.exe --gtest_filter=URLRequestTest.BrowserGETRedirectStop*
magreenblatt
Site Admin
 
Posts: 12384
Joined: Fri May 29, 2009 6:57 pm

Re: Behaviour of UR_FLAG_STOP_ON_REDIRECT in CEF-3865

Postby jkum » Fri Oct 18, 2019 5:02 am

Thanks for the reply.
OS: Windows 8.1
Ran the tests , all 12 tests with filter: URLRequestTest.BrowserGETRedirectStop* passed.
jkum
Techie
 
Posts: 15
Joined: Thu Mar 01, 2018 3:50 am

Re: Behaviour of UR_FLAG_STOP_ON_REDIRECT in CEF-3865

Postby jkum » Fri Nov 08, 2019 1:24 am

Found out why it was not working: I was setting the a error code on response via SetError(), it used to work with earlier code looks like new implementation is more rigid.
jkum
Techie
 
Posts: 15
Joined: Thu Mar 01, 2018 3:50 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 52 guests