How to get Initiator Chain? #4483
Unanswered
thejohnbridge
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You'll need to work out the specifics for yourself. I've never needed to recreate the initiator chain.
chromiumembedded/cef#2961 (comment) I'd also suggest disabling //Disable CEF request handling, so only CDP is used.
settings.CefCommandLineArgs.Add("disable-request-handling-for-testing"); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to retrieve the request initiator chain with CEF, the same one you see in the browser's developer tools - when you go to Network and then click on Initiator tab, but I cannot find this information.
More specifically:
As an example, if I browse slashdot.org I see this Initiator Chain in the browser (Chrome or Edge):
http://www.slashdot.org
..+-> https://www.slashdot.org
.............+-> https://slashdot.org
.........................+-> https://a.fsdn.com.sd.classic.css?e97300f6d7a821a0
....................................+- ...
.............+- ...
.............+- https://d3tglifpd8whs6.cloudfront.net/js/prebid/slash-homepage/slash-homepage.min.js
.....................+- ...
.....................+- https://securepubads.g.doubleclick.net/tag/js/gpt.js
Here, the browser tells me that https://securepubads.g.doubleclick.net/tag/js/gpt.js is initiated by https://d3tglifpd8whs6.cloudfront.net/js/prebid/slash-homepage/slash-homepage.min.js.
However, in CEF, when I try to retrieve this information via the referrer URL or the Initiator URL I get "https://slashdot.org", which is not the same initiator as the browser shows me. This happens to almost all URLs, not just this one.
So, if I try to build the Initiator Chain using Referrer url or Initiator url, I am not able to get the same tree that I see in the browser.
How can I get the same initiator chain as the browser via the CEF APIs?
Or, more generically, how can I get the information to build the exact same Initiator Chain as the browser?
Beta Was this translation helpful? Give feedback.
All reactions