Граф коммитов

60 Коммитов

Автор SHA1 Сообщение Дата
Ben Kelly eaa45329b2 Backout c55138fae801 (bug 1329693) r=me 2017-01-10 14:14:10 -08:00
Ben Kelly 095ebc2535 Bug 1329693 Gracefully handle immediate ActorDestroy() in CacheStorage::ActorCreated(). r=asuth 2017-01-10 08:20:15 -08:00
Ben Kelly 180d53d0e9 Bug 1328686 Add diagnostic assertions to dom/cache. r=asuth 2017-01-06 12:41:15 -08:00
Ehsan Akhgari 765a5950e8 Bug 1318936 - Stop checking for unknown appId's in the DOM Cache; r=bkelly
The only appId's in Gecko right now are NO_APP_ID's, so
this check is useless now.
2016-11-21 12:22:56 -05:00
Ehsan Akhgari 0427462aa8 Bug 1308075 - Remove support for accessing the Cache API from app:// URLs and also for storing requests/responses with app:// URLs within it; r=bkelly
This is backing out bug 1243849.
2016-10-18 11:47:04 -04:00
Arthur Edelstein dfebfaa34a Bug 1268726 - isolate shared worker by first party domain. r=baku
Tor 15564: Isolate SharedWorker by first party domain
uplift/refactor by Dave Huseby <dhuseby@mozilla.com>

review tweaks
2016-09-19 21:13:00 -04:00
Kan-Ru Chen b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Boris Zbarsky efc4dcf284 Bug 1275315 part 2. Use the new Realm getters in binding code. r=peterv 2016-07-09 00:19:52 -04:00
Andrea Marchesini aac2306f2c Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book 47aeb86e2c Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE
--HG--
rename : dom/cache/CacheWorkerHolder.cpp => dom/cache/Feature.cpp
rename : dom/cache/CacheWorkerHolder.h => dom/cache/Feature.h
rename : dom/workers/WorkerHolder.h => dom/workers/WorkerFeature.h
extra : rebase_source : 49f9e9ce0500ac441fe97878cf9308804926544f
2016-06-23 10:13:54 +02:00
Andrea Marchesini 45087a7970 Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-22 17:24:35 +02:00
Ben Kelly 62ecdfc256 Bug 1093357 P3 Convert Cache to use IPCStream and AutoIPCStream. r=asuth
* * *
Bug 1093357 P3 interdiff 001 Use AutoIPCStream in dom/cache
2016-05-15 10:32:09 -07:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Ehsan Akhgari 226d0657b3 Bug 1243849 - Restore support for accessing the Cache API from app:// URLs and also for storing requests/responses with app:// URLs within it; r=bkelly
Firefox OS still needs to use the cache API both to access it, and possibly
store app:// URL resources inside it.  See for example code in
https://github.com/fxos-components/fxos-fastlist/blob/master/fxos-fastlist.js
that manipulates the cache.  Let's restore this support for now since it's
pretty harmless.
2016-01-28 17:42:57 -05:00
Ehsan Akhgari fbf2580b8c Bug 1197379 - Remove support for intercepting app:// URIs using service workers; r=jdm 2016-01-27 15:26:27 -05:00
Nathan Froyd c381a6b86c Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Boris Zbarsky c19412a7ac Bug 1224007 part 1. Rename ThrowMethodFailed to MaybeSetPendingException and make it an ErrorResult instance method. r=peterv 2015-11-20 16:29:40 -05:00
Birunthan Mohanathas 9985829ecc Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Yoshi Huang f97211a451 Bug 1167100 - User originAttribute in ContentPrincipalInfo. r=bholley 2015-09-23 18:19:06 +08:00
Wes Kocher df21b43278 Backed out changeset d0e88c95f3c5 (bug 1167100) for crashes a=backout 2015-09-29 10:25:20 -07:00
Yoshi Huang 872722fe37 Bug 1167100 - User nsIPrincipal.originAttribute in ContentPrincipalInfo. r=bholley 2015-09-23 18:19:06 +08:00
Ben Kelly e4c6f8d174 Bug 1184607 P7.6 Expose CacheStorage .caches property on xpcshell global. r=smaug
* * *
7.6 interdiff
2015-08-31 14:26:30 -07:00
Michael Layzell d412cade2c Bug 1145744 - Update CacheStorage to use common StorageAllowedForWindow logic, r=bkelly 2015-08-28 10:10:33 -04:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Ben Kelly 351585e29f Bug 1179772 Make Cache API honor devtools SW testing flag in SW itself. r=ehsan 2015-07-02 11:47:10 -07:00
Ben Kelly 2de3ef558a Bug 1175138 P5 Make CacheStorage reject on untrusted origins. r=ehsan 2015-06-27 23:19:24 -04:00
Ben Kelly d722c7d5fb Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan 2015-06-26 19:36:40 -07:00
Ben Kelly 299afbab05 Bug 1173467 P1 Modify CacheStorage to reject with SecurityErr instead of throwing on creation. r=ehsan 2015-06-26 19:36:39 -07:00
Cameron McCormack 5ccbe11d06 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 73d7dcb1a3 Bug 1173467 P3 Pass private browsing flag into CacheStorage factory methods. r=ehsan 2015-06-26 17:42:56 -07:00
Ben Kelly f1a1a443eb Bug 1173467 P1 Modify CacheStorage to reject with SecurityErr instead of throwing on creation. r=ehsan 2015-06-26 17:42:55 -07:00
Ben Kelly f1808d0d50 Bug 1160138 P2 Add a [ChromeConstructor] to CacheStorage to support devtools. r=ehsan 2015-05-05 15:45:36 -07:00
Ben Kelly 2099c87b4a Bug 1160227 Improve Cache API warnings. r=ehsan 2015-05-01 08:15:52 -07:00
Ben Kelly c4e1832106 Bug 1160147 Improve Cache API WorkerFeature shutdown handling. r=baku 2015-05-01 08:13:36 -07:00
Ben Kelly a874312867 Bug 1120501 P2 Move Cache Add/AddAll logic to child process. r=ehsan,smaug 2015-04-29 08:59:43 -07:00
Ben Kelly 3c4616650c Bug 1158319 Cache should throw SecurityError if the principal is incorrect. r=ehsan 2015-04-24 14:36:02 -07:00
Ben Kelly 5f92c3937b Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-16 12:00:15 -07:00
Ben Kelly ec154acf25 Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
--HG--
rename : dom/cache/PCacheTypes.ipdlh => dom/cache/CacheTypes.ipdlh
2015-04-16 12:00:15 -07:00
Ben Kelly 2dae6bf172 Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku 2015-04-16 12:00:15 -07:00
Carsten "Tomcat" Book fe0f813b3f Backed out changeset 19f871364039 (bug 1110485) for causing bc1 winxp memory leaks on a CLOSED TREE 2015-04-15 09:55:53 +02:00
Carsten "Tomcat" Book cdb80ccd52 Backed out changeset a74f0b2545ab (bug 1110485)
--HG--
rename : dom/cache/CacheTypes.ipdlh => dom/cache/PCacheTypes.ipdlh
2015-04-15 09:54:48 +02:00
Carsten "Tomcat" Book 55d03ff1d7 Backed out changeset f37dc22f4c4f (bug 1110485) 2015-04-15 09:54:39 +02:00
Ben Kelly cc8a74d4e3 Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-14 17:11:19 -07:00
Ben Kelly d2326c284c Bug 1110485 P2 Remove 'P' prefix from non-protocol IPC types in Cache API. r=baku
--HG--
rename : dom/cache/PCacheTypes.ipdlh => dom/cache/CacheTypes.ipdlh
2015-04-14 17:11:19 -07:00
Ben Kelly feca794ce2 Bug 1110485 P1 Refactor Cache IPC requests to use a separate actor. r=baku 2015-04-14 17:11:19 -07:00
Wes Kocher 22b792b4e2 Backed out changeset 40f48cd100a2 (bug 1110485) for frequent mochitest-1 failures CLOSED TREE
--HG--
extra : amend_source : 3c3a58e53f42afd4a0612b73115e74cc96228066
2015-04-14 15:27:48 -07:00
Wes Kocher 82cca8b7cc Backed out changeset 114377b11793 (bug 1110485)
--HG--
rename : dom/cache/CacheTypes.ipdlh => dom/cache/PCacheTypes.ipdlh
2015-04-14 15:27:46 -07:00
Wes Kocher 09b055e57b Backed out changeset 31c018015bd2 (bug 1110485) 2015-04-14 15:27:42 -07:00
Ben Kelly e264e3d81f Bug 1110485 P4 Keep Cache Actors alive during async operations. r=baku 2015-04-14 12:21:14 -07:00