Page 2 of 2

Re: No refferer when open link in popup window

Posted: Thu Jul 09, 2020 5:09 am
by dilfich
Why make up your own something, look at the beginning as a normal browser does.

Re: No refferer when open link in popup window

Posted: Thu Jul 09, 2020 12:54 pm
by igor666
Made the following images, in the onResourceLoadComplete event set the condition
if request.ResourceType = RT_MAIN_FRAME then
begin
frame.ExecuteJavaScript(SCRIPT_TARGET_REPLACE,request.Url,0);
end;
where SCRIPT_TARGET_REPLACE is a script that replaces the target property with _blank by _self in tags A. It works as it should :). Thanks to everyone who responded.

Re: No refferer when open link in popup window

Posted: Thu Aug 20, 2020 10:14 pm
by andreykrasnodar
igor666 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.
There is no SetReferer in my version of CEF