gecko-dev/uriloader/prefetch
Bill McCloskey 691628a34e Bug 1364570 - Dispatch link prefetch events asynchronously to avoid DocGroup mismatches (r=bz)
When we send out a prefetch request, we act as if the load came
from one of the possibly many documents containing <link> element
for the given URL. The docgroup assigned to this request is
derived from this document. Later, when the load finishes, the
OnStopRequest code runs in a runnable labeled with this
docgroup. OnStopRequest dispatches a load event to *all* the link
elements, including some that might be in different docgroups
from the OnStopRequest runnable. This generates an assertion.

To fix this, I decided to dispatch the load events
asynchronously. I'm hoping the extra round trip through the event
loop shouldn't hurt us too much since I doubt anyone actually
listens for these events.

MozReview-Commit-ID: FTkjuHO7RFp
2017-05-23 13:56:49 -07:00
..
OfflineCacheUpdateChild.cpp Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm 2016-11-15 04:26:00 +01:00
OfflineCacheUpdateChild.h Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm 2016-11-15 04:26:00 +01:00
OfflineCacheUpdateGlue.cpp
OfflineCacheUpdateGlue.h
OfflineCacheUpdateParent.cpp Bug 1316683 - Part 5: Avoid going into SpiderMonkey for retrieving origin attributes; r=baku 2017-04-12 11:32:19 -04:00
OfflineCacheUpdateParent.h
POfflineCacheUpdate.ipdl
moz.build Bug 1345506 - add BUG_COMPONENT to uriloader/* files. r=paolo 2017-03-09 15:06:25 -05:00
nsCPrefetchService.h
nsIOfflineCacheUpdate.idl Bug 1355216 - Mark last parameters that are almost always falsy as optional, r=froydnj. 2017-04-12 00:07:30 +02:00
nsIPrefetchService.idl
nsOfflineCacheUpdate.cpp Bug 1310127 - Part 16: Use MOZ_MUST_USE in netwerk/protocol/http r=smaug 2016-12-20 11:40:29 +08:00
nsOfflineCacheUpdate.h Bug 1294645 - Don't use NS_CALLBACK for callbacks in nsI{Input,Output,UnicharInput},Stream.idl. r=froydnj. 2016-08-12 17:36:22 +10:00
nsOfflineCacheUpdateService.cpp Bug 1060419 - make log_print use Printf.h, r=froydnj 2016-12-15 20:16:31 -07:00
nsPrefetchService.cpp Bug 1364570 - Dispatch link prefetch events asynchronously to avoid DocGroup mismatches (r=bz) 2017-05-23 13:56:49 -07:00
nsPrefetchService.h Bug 1268962 - Add load / error event to prefetch link. r=bz 2016-08-12 15:09:05 +08:00