Commit Graph
6 Commits
Author SHA1 Message Date
Nikhil Marathe a215ce5c33 Bug 1193911 - Ensure synthetic Responses gets a valid channel info. r=ehsan
Right now, synthetic Responses did not have a valid channel info. When these
were saved in the Cache, and then restored, the restored Response did have
a ChannelInfo, but that ChannelInfo did not have a valid security info.
Passing this to respondWith() then caused the interception to fail.

This patch modifies Response::Constructor() to initialize its ChannelInfo from
the global. ChannelInfo can now initialize itself from a nsIDocument. All
workers now store their ChannelInfo on the WorkerLoadInfo.
2015-08-17 15:08:58 -07:00
Nikhil Marathe 1852b841ac Bug 1173389 - Disable ServiceWorker network interception by default. r=ehsan 2015-06-12 16:28:13 -07:00
Ehsan Akhgari f8893fada2 Bug 1172948 - Part 2: Consider all non-chrome parent documents when checking the authenticity of an origin; r=nsm 2015-06-12 09:45:48 -04:00
Ehsan Akhgari 700c333135 Bug 1156847 - Part 7: Add unit tests for responding to a FetchEvent with a synthesized Response both in the case where the service worker is loaded from the network and from the cache; r=nsm 2015-04-29 20:22:31 -04:00
Ehsan Akhgari 1bbcf4dbb6 Remove the remnants of the dom.fetch.enabled pref, no bug 2015-03-23 15:46:59 -04:00
Ehsan Akhgari dc0303e2f9 Bug 1133763 - Part 7: Add automated tests for using FetchEvent.respondWith on an HTTPS request; r=nsm 2015-03-13 14:37:25 -04:00