Ehsan Akhgari
ade23fe702
Bug 1198078 - Add support for TYPE_INTERNAL_SERVICE_WORKER; r=ckerschb,tanvi
2015-09-16 19:15:30 -04:00
Kyle Huey
2be758a103
Bug 1198982: Don't fail the SW load for an importScripts failure. r=bkelly
2015-08-30 10:31:52 -07:00
Phil Ringnalda
08dfce8758
Back out f9edb5fe8fb9 (bug 1198982) for webplatform registration.https.html failures
...
CLOSED TREE
2015-08-26 21:36:40 -07:00
Kyle Huey
76312e70c2
Bug 1198982: Don't fail the SW load for an importScripts failure. r=bkelly
2015-08-26 19:21:03 -07:00
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
Andrew McCreight
37dca56c9f
Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor
2015-07-21 11:31:44 -07:00
Ryan VanderMeulen
81ed743c4f
Backed out changeset 553a3e1e7b18 (bug 1176341) for bustage.
...
CLOSED TREE
2015-07-21 13:00:55 -04:00
Andrew McCreight
d108d4c56a
Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor
2015-07-21 09:44:37 -07:00
Ben Kelly
5f986f3ca7
Bug 1181887 Fall back to network if ServiceWorker script fails to load. r=ehsan r=khuey
2015-07-15 12:21:40 -07:00
Andrea Marchesini
5e4887e790
Bug 1160890 - Part 2: ImportScripts() should return muted errors with 3rd party scripts. r=smaug
2015-07-14 16:08:38 +01:00
Andrea Marchesini
12ac272042
Bug 1160890 - Part 1: Remove unneeded code from ImportScripts(). r=smaug
2015-07-14 16:08:36 +01:00
Michael Layzell
fc38f44dd3
Bug 1181321 - Eliminate duplicate mRefCnt members in PromiseNativeHandler subclasses. r=baku
2015-07-09 08:56:00 +02:00
Wes Kocher
421260e747
Backed out changeset 74293125739a (bug 1176341)
2015-07-10 12:48:20 -07:00
Andrew McCreight
b63d113ad6
Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor
2015-07-10 07:41:33 -07:00
Emanuel Hoogeveen
b30abdc582
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Hiroyuki Ikezoe
b61dee95d7
Bug 1179982 - Fix all compile errors in dom/workers on non-unified build. r=mrbkap
2015-07-02 14:54:00 +02:00
Ben Kelly
9a4819a8a4
Bug 1178508 ServiceWorker scripts should never be intercepted. r=baku
2015-07-02 07:30:06 -07:00
Ehsan Akhgari
091092faac
Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug
2015-06-30 18:52:42 -04:00
Ryan VanderMeulen
63ceae91b7
Backed out changeset 07bf31cca660 (bug 1148935) for Werror bustage.
...
CLOSED TREE
2015-06-30 15:53:43 -04:00
Ehsan Akhgari
0b1720ebbd
Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug
2015-06-30 15:30:08 -04:00
Ben Kelly
1222b50d28
Bug 1175138 P5 Make CacheStorage reject on untrusted origins. r=ehsan
2015-06-27 23:19:24 -04:00
Ben Kelly
17962b6f82
Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan
2015-06-26 19:36:40 -07:00
Cameron McCormack
5869f35dd7
Back out bug 1173467 (changesets a20799ebf48c, 9312c5cb756e, c0e8bba17067, af075443ab21, 30cefdf8d020) for assertion failures in test_app_protocol.html.
2015-06-27 11:57:17 +10:00
Ben Kelly
07f9c978c2
Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan
2015-06-26 17:42:56 -07:00
Andrea Marchesini
27bcc25a4a
Bug 1168933 - Send referrer when downloading worker script. r=khuey
2015-06-04 16:20:13 -07:00
Nikhil Marathe
48d3d0cb17
Bug 1169044 - Patch 5 - build fixes. a=bustage
2015-06-04 17:26:05 -07:00
Nikhil Marathe
171fda05df
Bug 1169044 - Patch 3 - Store and set principal with script URI on ServiceWorkers. r=ehsan
...
The ServiceWorkerRegistrationInfo's principal is the principal of the document
that called register(). If we create WorkerPrivate instances based off of
this, they have a valid principal in terms of security and same-origin-ness,
but the URI path is wrong. When fetching the script from the network, the
channel's principal is used to update the worker principal. We need to do the
same when the script is loaded from Cache. This patch adds support to store the
channel principal in the cache.
2015-06-04 21:39:34 -07:00
Ben Turner
487105475c
Bug 1173139 - Reorder global creation on workers, r=khuey.
2015-06-10 14:12:55 -07:00
Ben Turner
bfee4b5e19
Bug 1173002 - Set worker system principal flag correctly when created from chrome, r=bz, a=kwierso.
2015-06-09 14:34:00 -07:00
Ehsan Akhgari
e8c86479b9
Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly
2015-05-27 14:22:53 -04:00
Carsten "Tomcat" Book
c58dbca945
Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE
2015-05-27 14:50:43 +02:00
Ehsan Akhgari
f770eb78bf
Bug 1168208 - Refactor the existing logic for syncing the security info between Response and channel objects into a new helper class; r=nsm,jdm,bkelly
2015-05-27 08:25:03 -04:00
Ben Turner
f94a1dbf0c
Bug 1163109. Restrict the resource:// weirdness in workers to loads from a system principal. r=bzbarsky
2015-05-26 17:27:01 -04:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Daniel Holbert
584f632cba
Bug 1156847 followup: annotate workers helper-class "ScriptLoaderRunnable" OnStartRequest/OnStopRequest as override. rs=ehsan
2015-04-30 11:42:16 -07:00
Ehsan Akhgari
25dfb4b33c
Bug 1156847 - Part 5: When loading a service worker from the cache, set its security info on the WorkerPrivate; r=nsm
2015-04-29 20:22:30 -04:00
Ehsan Akhgari
a5a416e9de
Bug 1156847 - Part 4: When storing a service worker script to the cache, store its security info in the cache as well; r=khuey
...
Before this patch, we would call Cache.put() before opening the channel,
which means that we have no way of knowing the security info for the
channel in order to set it on the Response object that we synthesize.
This patch adds an nsIRequestObserver to the tee created for piping the
body of the response to the cache, and delays calling Cache.put() until
we receive the nsIRequestObserver::OnStartRequest() notification, at
which point we set the obtained security info on the Response object to
be stored in the cache.
2015-04-29 20:22:29 -04:00
Ehsan Akhgari
fab88e9090
Bug 1156847 - Part 3: When loading a service worker from the network, remember the security info of the channel on the WorkerPrivate; r=nsm
2015-04-29 20:22:28 -04:00
Boris Zbarsky
311cd550e2
Bug 1157898 part 5. Eliminate the remaining non-ErrorResult consumers of ErrorResult::ErrorCode and make it protected. r=peterv
2015-04-27 09:18:52 -04:00
Boris Zbarsky
789a3bf96e
Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
...
This patch was generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Ehsan Akhgari
c05c22901f
Bug 1148942 - Ensure that the registration of empty service workers succeeds; r=bent
2015-04-16 18:18:20 -04:00
Nikhil Marathe
d348d9420f
Bug 1151916 - Set worker principalinfo on cache load. r=bkelly
2015-04-10 14:14:44 -07:00
Nikhil Marathe
6efd0b9951
Bug 931249 - Patch 15 - assert later. r=baku
2015-03-27 13:29:40 -07:00
Nikhil Marathe
9d264c91be
Bug 931249 - Patch 14 - kungfuDeathGrip. r=baku
2015-03-27 10:00:59 -07:00
Nikhil Marathe
75dfabf37e
Bug 931249 - Patch 13 - Fix finish condition in CacheScriptLoader::Fail. r=baku
2015-03-26 15:56:02 -07:00
Nikhil Marathe
48af04df53
Bug 931249 - Patch 12 - Call LoadingFinished even if channel is not present. r=khuey
...
If the failure was due to inability to create a channel (csp, other restrictions) we still want to mark the load as finished
2015-03-24 17:11:57 -07:00
Nikhil Marathe
6a57a28bd6
Bug 931249 - Patch 8 - Provide direct getter to the fact that we are loading a worker instead of relying on cache name. r=khuey
2015-03-19 16:39:01 -07:00
Nikhil Marathe
c87c82a2b9
Bug 931249 - patch 2 - cachename integration. r=nsm
2015-03-18 09:46:38 -07:00
Nikhil Marathe
42bffbbed8
Bug 931249 - Patch 1.1 - Set baseURI when script is obtained from cache. r=khuey
2015-03-18 16:14:30 -07:00
Nikhil Marathe
e32a19812b
Bug 931249 - patch 1 - Scriptloader use cache if needed. r=khuey
2015-03-19 11:41:42 -07:00