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

95 Коммитов

Автор SHA1 Сообщение Дата
Jonas Sicking 7bf7cbbd1a Bug 1215746: Remove RequestMode::Cors_with_forced_preflight. r=bkelly 2015-10-19 18:24:36 -07: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
Carsten "Tomcat" Book ca77b70a8d merge mozilla-inbound to mozilla-central a=merge 2015-10-02 11:52:49 +02:00
Ehsan Akhgari cf1376b18d Bug 1204596 - Part 2: Update the schema of the DOM Cache database to remove the response_redirected and response_redirected_url columns; r=bkelly 2015-10-01 18:47:05 -04:00
Ehsan Akhgari 7f68257bc6 Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly 2015-10-01 18:47:04 -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
Henry Chang b6b5862949 Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley 2015-09-18 15:11:58 +08:00
Christoph Kerschbaumer f69e2b393b Bug 1048048 - add preload content policy types (r=ehsan)
--HG--
extra : source : 740ab1ecd0794b5a304b93ef528c8aa4c68ca417
2015-09-20 14:55:44 -07:00
Wes Kocher cd079d2bf9 Backed out 7 changesets (bug 1048048) for android crashes in various chunks CLOSED TREE
Backed out changeset b5abe23a4ea5 (bug 1048048)
Backed out changeset 4f91b10e8be0 (bug 1048048)
Backed out changeset 450d4a13c90e (bug 1048048)
Backed out changeset 6a727c40eb68 (bug 1048048)
Backed out changeset 88c2333ff745 (bug 1048048)
Backed out changeset 740ab1ecd079 (bug 1048048)
Backed out changeset 02c6d6aef163 (bug 1048048)
2015-09-21 09:08:34 -07:00
Christoph Kerschbaumer 319984decc Bug 1048048 - add preload content policy types (r=ehsan) 2015-09-20 14:55:44 -07:00
Carsten "Tomcat" Book c5551bace9 Backed out 2 changesets (bug 1169633, bug 1163254) for linux Mn-e10s test bustage on a CLOSED TREE
Backed out changeset 47ccf6689101 (bug 1169633)
Backed out changeset 503eab197a2d (bug 1163254)
2015-09-17 16:01:25 +02:00
hchang 2e884ff477 Bug 1163254 - Add signedPkg to OriginAttributes. r=bholley 2015-09-16 19:42:00 +02:00
Phil Ringnalda 92751c5b3e Back out 3 changesets (bug 1204596) for b2g test_fetch_cors.html failures
Backed out changeset 2662a1ad4cad (bug 1204596)
Backed out changeset cfc4c4ecbbf5 (bug 1204596)
Backed out changeset d10c6f32ce46 (bug 1204596)
2015-09-16 20:51:17 -07:00
Ehsan Akhgari bac1e66119 Bug 1204596 - Part 2: Update the schema of the DOM Cache database to remove the response_redirected and response_redirected_url columns; r=bkelly 2015-09-16 20:38:21 -04:00
Ehsan Akhgari b2a35e80cb Bug 1204596 - Part 1: Avoid overriding the channel final URI when it gets intercepted; r=nsm,bkelly 2015-09-16 20:38:19 -04:00
Ehsan Akhgari 59c135c176 Bug 1198078 - Add support for TYPE_INTERNAL_SERVICE_WORKER; r=ckerschb,tanvi 2015-09-16 19:15:30 -04:00
Ben Kelly 4bc651e2ed Bug 1184607 P7.5 Add RequestRedirect to Cache API schema with migration. r=ehsan 2015-08-31 14:26:30 -07:00
Ben Kelly 11f983b483 Bug 1184607 P7.4 Infrastructure for running Cache schema migrations. r=ehsan 2015-08-31 14:26:30 -07:00
Ben Kelly 6e79a82e9f Bug 1184607 P7.3 Rename Cache "max wipe version" constant to "first shipped version". r=ehsan 2015-08-31 14:26:30 -07:00
Ben Kelly 4fb2a6ffe3 Bug 1184607 P7.2 Validate Cache schema in debug builds. r=ehsan 2015-08-31 14:26:30 -07:00
Ben Kelly ac1063f343 Bug 1184607 P7.1 Move Cache schema SQL into separate constants. r=ehsan 2015-08-31 14:26:29 -07:00
Christoph Kerschbaumer 1c05a94924 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource (r=sicking,ehsan) 2015-08-06 11:17:24 -07:00
Carsten "Tomcat" Book 7d6f90f702 Backed out 2 changesets (bug 1191107, bug 1180273) for causing xpcshell and m-oth testfailures on a CLOSED TREEi IGNORE IDL
Backed out changeset c5f710ed8718 (bug 1191107)
Backed out changeset d98d82f9981b (bug 1180273)
2015-08-06 08:39:05 +02:00
Christoph Kerschbaumer cb37e46dd2 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource - IGNORE IDL (r=sicking,ehsan) 2015-08-05 12:58:05 -07: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
Ehsan Akhgari 54a5716d5e Bug 1180765 - Bump the caches.sqlite version numbers because of the field that was added in bug 1169044; r=jdm 2015-07-08 19:35:29 -04:00
Ben Kelly 687fb616be Bug 1181259 Remove stray debugging printf from Cache API. r=froydnj 2015-07-08 12:55:36 -07:00
Dragana Damjanovic 7987d2203e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Ben Kelly 704bdbfb99 Bug 1110446 P2 Cleanup stale caches/bodies if last session didn't shutdown cleanly. r=ehsan 2015-06-25 22:22:46 -07:00
Nikhil Marathe b52b66ebf5 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.

--HG--
extra : rebase_source : e7d527335aa4f0d4ee52e58915c8b0ef4ad26983
2015-06-04 21:39:34 -07:00
Ben Kelly ce90b29484 Bug 1173439 P5 Cache should index on a hash instead of the url itself. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly 72fd940fc3 Bug 1173439 P4 Remove Request url field from Cache API database. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly 0a4c003dd5 Bug 1173439 P3 Use url query field for database matching and Request creation. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly 2a2c3fa17d Bug 1173439 P2 Parse Response URL query as a separate field. r=ehsan 2015-06-16 17:39:05 -07:00
Ben Kelly 18e16a0fa2 Bug 1173439 P1 Store URLs as UTF8 strings in Cache instead of UTF16. r=ehsan 2015-06-16 17:39:05 -07:00
Ehsan Akhgari 7018c8ba46 Bug 1174982 - Add the new nsContentPolicyType values to the DBSchema.cpp static_assert; r=bkelly
Added a comment to nsIContentPolicyBase.idl since even I forgot to do this.
2015-06-16 10:42:31 -04:00
Ehsan Akhgari cd8eec31d9 Bug 1174868 - Avoid storing RequestContext inside InternalRequest; r=nsm,bkelly,smaug
We are going to infer all RequestContext types from the corresponding
nsContentPolicyType. It no longer makes sense to store both of these on
InternalRequest.  This has the extra benefit that we don't need to worry
about keeping them in sync any more.
2015-06-15 21:36:04 -04:00
Ehsan Akhgari fe838f3834 Bug 1174849 - Remove "serviceworker" from RequestContext; r=smaug,bkelly 2015-06-15 21:36:01 -04:00
Ehsan Akhgari d9f5031529 Bug 1164397 - Part 5: Save the redirected flag and the redirected URI in the DOM cache; r=bkelly 2015-06-05 15:57:44 -04:00
Ben Kelly 7ea74752c9 Bug 1168152 P5 Follow-up to use 32kb growth size as intended in previous patches. r=me 2015-05-28 07:52:35 -07:00
Ben Kelly dbbf4fbc4a Bug 1168152 P3 Perform incremental vacuum at tail end of Cache db connections. r=ehsan 2015-05-28 07:46:47 -07:00
Ben Kelly aee2720d22 Bug 1168152 P1 Use a smaller sqlite page size and a growth increment in Cache. r=ehsan 2015-05-28 07:46:47 -07:00
Ehsan Akhgari 4017e4028f 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
--HG--
rename : dom/fetch/InternalResponse.cpp => dom/fetch/ChannelInfo.cpp
rename : dom/fetch/Response.h => dom/fetch/ChannelInfo.h
2015-05-27 14:22:53 -04:00
Carsten "Tomcat" Book 1f0ef48e79 Backed out changeset ae9c77fa58d1 (bug 1168208) for bustage on a CLOSED TREE 2015-05-27 14:50:43 +02:00
Ehsan Akhgari c66a858d3a 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
--HG--
rename : dom/fetch/InternalResponse.cpp => dom/fetch/ChannelInfo.cpp
rename : dom/fetch/Response.h => dom/fetch/ChannelInfo.h
2015-05-27 08:25:03 -04:00
Ben Kelly 322b8ff03f Bug 1166911 Modify Cache API sqlite code to use IS NULL literal when comparing an empty key. r=ehsan 2015-05-21 18:16:37 -07:00
Ben Kelly 4a673bf1ef Bug 1166038 De-duplicate security info stored in the Cache API. r=ehsan 2015-05-21 18:16:36 -07:00
Ben Kelly da9ebcd5b3 Bug 1166577 Use named sqlite params in Cache API code. r=ehsan 2015-05-20 06:51:19 -07:00