Re: No refferer when open link in popup window
Posted: Thu Jul 09, 2020 5:09 am
Why make up your own something, look at the beginning as a normal browser does.
The forum for BriskBard users and CEF4Delphi / WebView4Delphi / WebUI4Delphi / WebUI4CSharp developers
http://www.briskbard.com/forum/
where SCRIPT_TARGET_REPLACE is a script that replaces the target property with _blank by _self in tags A. It works as it shouldif request.ResourceType = RT_MAIN_FRAME then
begin
frame.ExecuteJavaScript(SCRIPT_TARGET_REPLACE,request.Url,0);
end;
There is no SetReferer in my version of CEFigor666 wrote: Tue Jul 07, 2020 2:27 pm I gave Yandex as an example, but the options may be different. Thus, we decided a specific example, and not the situation as a whole. Indeed, in one case, the referrer transfer can be with the flag REFERRER_POLICY_ORIGIN, in another REFERRER_POLICY_NEVER_CLEAR_REFERRER, etc. And there is no request in the onBeforePopup event to check which flag should be for the current request.