Bug 1220936 - Flush console report to innerWindowID by using nsIDocument and nsILoadGroup. r=bkelly.
This commit is contained in:
@@ -7572,7 +7572,13 @@ nsDocShell::EndPageLoad(nsIWebProgress* aProgress,
|
||||
|
||||
nsCOMPtr<nsIConsoleReportCollector> reporter = do_QueryInterface(aChannel);
|
||||
if (reporter) {
|
||||
reporter->FlushConsoleReports(GetDocument());
|
||||
nsCOMPtr<nsILoadGroup> loadGroup;
|
||||
aChannel->GetLoadGroup(getter_AddRefs(loadGroup));
|
||||
if (loadGroup) {
|
||||
reporter->FlushConsoleReports(loadGroup);
|
||||
} else {
|
||||
reporter->FlushConsoleReports(GetDocument());
|
||||
}
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIURI> url;
|
||||
|
||||
Reference in New Issue
Block a user