mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1044181: object loader now annotates classified tracking nodes r=khuey
This commit is contained in:
parent
2a0f090617
commit
b03a4f9641
@ -989,6 +989,17 @@ nsObjectLoadingContent::OnStopRequest(nsIRequest *aRequest,
|
||||
PROFILER_LABEL("nsObjectLoadingContent", "OnStopRequest",
|
||||
js::ProfileEntry::Category::NETWORK);
|
||||
|
||||
// Handle object not loading error because source was a tracking URL.
|
||||
// We make a note of this object node by including it in a dedicated
|
||||
// array of blocked tracking nodes under its parent document.
|
||||
if (aStatusCode == NS_ERROR_TRACKING_URI) {
|
||||
nsCOMPtr<nsIContent> thisNode =
|
||||
do_QueryInterface(static_cast<nsIObjectLoadingContent*>(this));
|
||||
if (thisNode) {
|
||||
thisNode->GetCurrentDoc()->AddBlockedTrackingNode(thisNode);
|
||||
}
|
||||
}
|
||||
|
||||
NS_ENSURE_TRUE(nsContentUtils::IsCallerChrome(), NS_ERROR_NOT_AVAILABLE);
|
||||
|
||||
if (aRequest != mChannel) {
|
||||
|
Loading…
Reference in New Issue
Block a user