Hi Ariya,
thanks for your quick reply & hint! I tried the onInitialized trick but window.document.referrer does not want to play with me [1].
I am currently browsing the source and it looks like it boils down to the use of QNetworkRequest instead of ResourceRequest in WebPage::openUrl [2].
String Document::referrer() const [3] relies on the FrameLoaders ResourceRequest's function httpReferrer to return the referrer:
String httpReferrer() const { return httpHeaderField("Referer"); }[4]
It seems to me that QNetworkRequest's request.setRawHeader() does not have an impact on these Fields. I am currently trying to replace QNetworkRequest with ResourceRequest in webpage.cpp.
Regards,
Paul
--
[2] webpage.cpp line 538
[3] Document.cpp line 3669
[4] ResourceRequestBase.h line 109