Bug 789059 - 'Assertion failure: false (All IPDL URIs must be serial

izable or an allowed scheme)'. r=cjones.
This commit is contained in:
Ben Turner 2012-10-05 13:11:08 -07:00
parent 060a0c42f9
commit c9e0d3f36f

View File

@ -1462,12 +1462,15 @@ History::NotifyVisited(nsIURI* aURI)
nsAutoScriptBlocker scriptBlocker;
if (XRE_GetProcessType() == GeckoProcessType_Default) {
URIParams uri;
SerializeURI(aURI, uri);
nsTArray<ContentParent*> cplist;
ContentParent::GetAll(cplist);
for (uint32_t i = 0; i < cplist.Length(); ++i) {
unused << cplist[i]->SendNotifyVisited(uri);
if (!cplist.IsEmpty()) {
URIParams uri;
SerializeURI(aURI, uri);
for (uint32_t i = 0; i < cplist.Length(); ++i) {
unused << cplist[i]->SendNotifyVisited(uri);
}
}
}