Commit Graph

100 Commits

Author SHA1 Message Date
Michael Layzell
e01ad73eaf Bug 1181321 - Eliminate duplicate mRefCnt members in PromiseNativeHandler subclasses. r=baku 2015-07-09 08:56:00 +02:00
Wes Kocher
502ddcea03 Backed out changeset 74293125739a (bug 1176341) 2015-07-10 12:48:20 -07:00
Andrew McCreight
206afa0d7f Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor 2015-07-10 07:41:33 -07:00
Emanuel Hoogeveen
e1b03075a7 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Hiroyuki Ikezoe
4a1b0ba58a 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
48b6df87c0 Bug 1178508 ServiceWorker scripts should never be intercepted. r=baku 2015-07-02 07:30:06 -07:00
Ehsan Akhgari
00d760e6ba Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-30 18:52:42 -04:00
Ryan VanderMeulen
6a611e7f72 Backed out changeset 07bf31cca660 (bug 1148935) for Werror bustage.
CLOSED TREE
2015-06-30 15:53:43 -04:00
Ehsan Akhgari
c4e1fafc6c Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug 2015-06-30 15:30:08 -04:00
Ben Kelly
3f01155885 Bug 1175138 P5 Make CacheStorage reject on untrusted origins. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly
98bc56b658 Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan 2015-06-26 19:36:40 -07:00
Cameron McCormack
b78c4941a5 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
4f9723651e Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan 2015-06-26 17:42:56 -07:00
Andrea Marchesini
df0b5aac61 Bug 1168933 - Send referrer when downloading worker script. r=khuey 2015-06-04 16:20:13 -07:00
Nikhil Marathe
08c9f345b2 Bug 1169044 - Patch 5 - build fixes. a=bustage 2015-06-04 17:26:05 -07:00
Nikhil Marathe
ceb6e00867 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
3d0d731ba0 Bug 1173139 - Reorder global creation on workers, r=khuey. 2015-06-10 14:12:55 -07:00
Ben Turner
2f9806beef 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
021ed38d58 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
ef72c48967 Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE 2015-05-27 14:50:43 +02:00
Ehsan Akhgari
7c178923f2 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
9eacd36525 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
c979f253c0 Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Daniel Holbert
3a6ae4bac0 Bug 1156847 followup: annotate workers helper-class "ScriptLoaderRunnable" OnStartRequest/OnStopRequest as override. rs=ehsan 2015-04-30 11:42:16 -07:00
Ehsan Akhgari
e2c28a44a0 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
2dcbbe917b 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
7fcc696e50 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
f751c0a094 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
6a3f2d3909 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
104f51f6f7 Bug 1148942 - Ensure that the registration of empty service workers succeeds; r=bent 2015-04-16 18:18:20 -04:00
Nikhil Marathe
f832b547ca Bug 1151916 - Set worker principalinfo on cache load. r=bkelly 2015-04-10 14:14:44 -07:00
Nikhil Marathe
6577d0bf85 Bug 931249 - Patch 15 - assert later. r=baku 2015-03-27 13:29:40 -07:00
Nikhil Marathe
22ba021262 Bug 931249 - Patch 14 - kungfuDeathGrip. r=baku 2015-03-27 10:00:59 -07:00
Nikhil Marathe
9d96b0ddce Bug 931249 - Patch 13 - Fix finish condition in CacheScriptLoader::Fail. r=baku 2015-03-26 15:56:02 -07:00
Nikhil Marathe
2f60a45922 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
452746afc4 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
8df08acab4 Bug 931249 - patch 2 - cachename integration. r=nsm 2015-03-18 09:46:38 -07:00
Nikhil Marathe
ad93de8c47 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
1b4eb261a9 Bug 931249 - patch 1 - Scriptloader use cache if needed. r=khuey 2015-03-19 11:41:42 -07:00
Eddy Bruël
9a035c2bd8 Bug 1092102 - Implement WorkerDebuggerGlobalScope.createSandbox;r=khuey 2015-03-31 12:22:40 +02:00
Carsten "Tomcat" Book
49b9d3ab32 Backed out changeset 71abbf190d53 (bug 1092102) for static analysis build bustage on a CLOSED TREE 2015-03-31 11:14:46 +02:00
Eddy Bruël
591e82ee1b Bug 1092102 - Implement WorkerDebuggerGlobalScope.createSandbox;r=khuey 2015-03-31 10:19:04 +02:00
Andrea Marchesini
94545cbb2e Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari
5cccea6f0f Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Eddy Bruël
f456239c5f Bug 1092102 - Implement WorkerDebugger.initialize;r=khuey 2015-03-17 11:15:19 +01:00
Boris Zbarsky
f914c00f6d Bug 1097987 part 7. Require callers of JS::Evaluate to either use the global as the scope or pass in an explicit scopechain. r=waldo 2015-03-14 01:36:16 -04:00
Ben Kelly
31c3b23995 Bug 1107516 - Part 3: Make sure all workers have an nsILoadGroup when loading scripts. r=sicking, r=bent 2014-12-12 11:06:00 -05:00
Boris Zbarsky
ba9444490c Bug 1100579 part 1. Remove the overloads of JS::Evaluate that don't take an rval mutable handle, and control the behavior via the JS::CompileOptions instead. r=waldo,bholley 2014-11-18 23:27:16 -05:00
Christoph Kerschbaumer
897fd1befa Bug 1041180: Remove deprecated nsIChannelPolicy (r=sstamm,jduell,jst) 2014-10-15 19:11:45 -07:00
Christoph Kerschbaumer
2dc9004c4a Bug 1038756: Callsites creating a channel in /dom/workers/ (r=bent) 2014-09-21 09:39:57 -07:00