Bobby Holley
97b9240b34
Bug 1188696
- Hoist nsRefPtr.h into MFBT. r=froydnj
2015-07-29 10:44:59 -07:00
Ehsan Akhgari
3d45149452
Bug 1148030
- Correctly reflect object and embed RequestContext values; r=smaug
...
Note that these elements cannot be intercepted for now. See bug
1168676 for the background.
2015-07-18 16:44:28 -04:00
Ehsan Akhgari
020deeb507
Bug 1148044 - Correctly reflect frame and iframe RequestContext values; r=smaug
2015-07-18 13:18:06 -04:00
Ben Kelly
1d8798cbc9
Bug 1173912 Fail opaque responses for client requests. r=ehsan
2015-07-14 13:11:26 -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
Wes Kocher
14b97c87b1
Backed out changeset df6593df027b (bug 1173912)
2015-07-10 15:58:24 -07:00
Ben Kelly
e0d5d6632a
Bug 1173912 Fail opaque responses for client requests. r=ehsan
2015-07-10 14:28:32 -07:00
Emanuel Hoogeveen
7d1e52f2ff
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Ehsan Akhgari
a7e0f3e102
Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug
2015-06-30 18:52:42 -04:00
Ryan VanderMeulen
c4367148d1
Backed out changeset 07bf31cca660 (bug 1148935) for Werror bustage.
...
CLOSED TREE
2015-06-30 15:53:43 -04:00
Ehsan Akhgari
d560d3dcf3
Bug 1148935 - Correctly reflect worker and sharedworker RequestContext values; r=smaug
2015-06-30 15:30:08 -04:00
Andrea Marchesini
fc9a4cb52f
Bug 1177916 - URLSearchParams::GetParentObject should not return nullptr, r=smaug
2015-06-29 17:02:53 +01:00
Cameron McCormack
860a9f7d1a
Back out bug 1177916 (changeset d4c34d7fb112) for test_urlSearchParams.html failure.
2015-06-27 12:18:19 +10:00
Andrea Marchesini
d55095b632
Bug 1177916 - URLSearchParams::GetParentObject should not return nullptr, r=smaug
2015-06-26 17:44:34 -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
Nikhil Marathe
8dccad6eaa
Bug 1169044 - Patch 2 - Split URLSearchParams parsing logic into non-CCed URLParams. r=baku
...
--HG--
extra : rebase_source : f68696ff1b2f2fabbb0ed015509477c65573768d
2015-06-04 13:45:24 -07:00
Nikhil Marathe
bd1323708a
Bug 1169044 - Patch 1 - Refactor setting referrer and referrer policy between fetch and XHR. r=khuey
...
--HG--
extra : rebase_source : 8b004536dab18706ae4b8c3f0c574f8769c05638
2015-06-04 14:05:00 -07:00
Andrea Marchesini
46ed66e379
Bug 1174731 - patch 1 - Make searchParams attribute readonly, r=smaug
2015-06-24 12:15:59 -07:00
Michal Novotny
671167c884
Bug 1173378 - crash in mozilla::net::HttpBaseChannel::OverrideSecurityInfo(nsISupports*), r=ehsan
2015-06-17 13:16:33 +02:00
Fernando Jimenez
9d27d75942
Bug 1174078 - Calling "fetch" inside Service Worker's "onfetch" handler in b2g causes "onfetch" again that leads to an infinite loop. r=nsm
2015-06-17 11:50:07 +02:00
Ehsan Akhgari
2a127a2d67
Bug 1147668 - Correctly reflect video and track RequestContext values; r=smaug
2015-06-16 21:18:08 -04:00
Wes Kocher
3ae1cac20c
Backed out changeset f46a712edf7e (bug 1147668) for assertion failures in test_access_control.html CLOSED TREE
2015-06-16 14:48:15 -07:00
Ehsan Akhgari
103e06656c
Bug 1147668 - Correctly reflect video and track RequestContext values; r=smaug
2015-06-16 14:49:58 -04:00
Ehsan Akhgari
aeecf7b38d
Backed out changeset 7210dfe7ad78 (Bug 1147668) for test failure
2015-06-15 23:20:02 -04:00
Ehsan Akhgari
0096b1db1f
Bug 1147668 - Correctly reflect video and track RequestContext values; r=smaug
2015-06-15 22:08:06 -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
Ben Kelly
a3be126ba9
Bug 1167808 P0 Cache.put() should use internal body of opaque Response. r=nsm
2015-06-12 18:59:01 -07:00
Andrea Marchesini
dcdcd94a06
Bug 1155153 - about:serviceworkers should work in e10s mode, r=nsm, r=bholley
2015-06-04 19:51:57 +01:00
Ehsan Akhgari
3f5c9c69fd
Bug 1173029 - Remove mFinalURL from InternalResponse; r=baku a=KWierso
2015-06-09 20:08:09 -04:00
Ehsan Akhgari
b7b9afe158
Bug 1170937 - Set the URL on the Response object created from a fetch() properly if the underlying channel gets redirected; r=baku
2015-06-09 20:07:48 -04:00
Wes Kocher
4d5ff3adfe
Backed out changeset ec31f39d4df8 (bug 1170937) for mochitest-e10s-4 permafail CLOSED TREE
2015-06-09 15:16:42 -07:00
Wes Kocher
08b17ee9a2
Backed out changeset e33db57c3fec (bug 1173029)
2015-06-09 15:16:30 -07:00
Ehsan Akhgari
ed54538c7f
Bug 1173029 - Remove mFinalURL from InternalResponse; r=baku a=KWierso
2015-06-09 17:17:59 -04:00
Ehsan Akhgari
65e7f38303
Bug 1170937 - Set the URL on the Response object created from a fetch() properly if the underlying channel gets redirected; r=baku
2015-06-09 17:17:52 -04:00
Ehsan Akhgari
eb1a39d536
Bug 1164397 - Part 4: Add infromation about whether a channel was redirected to ChannelInfo; r=jdm
2015-06-05 15:57:42 -04:00
Carsten "Tomcat" Book
e7e949f08a
Backed out changeset bc305c9b5d05 (bug 1155153) for b2g xpshell test failure on a CLOSED TREE
2015-06-05 13:07:51 +02:00
Fernando Jimenez
1ef20e0010
Bug 1169613 - Use content type of synthesized response for JAR channel requests if available. Part 2: Set Content-Type for JAR Channel requests on Fetch API responses. r=nsm
2015-06-05 12:53:58 +02:00
Andrea Marchesini
42cd5b397c
Bug 1155153 - about:serviceworkers should work in e10s mode, r=nsm, r=bholley
2015-06-04 19:51:57 +01:00
Marcos Caceres
8fc79cb285
Bug 1089255 - Implement and test manifest-src CSP directive. r=bholley, r=dveditz, r=ckerschb
...
---
dom/base/nsContentPolicyUtils.h | 1 +
dom/base/nsDataDocumentContentPolicy.cpp | 3 +-
dom/base/nsIContentPolicy.idl | 2 +-
dom/base/nsIContentPolicyBase.idl | 7 +-
dom/base/nsISimpleContentPolicy.idl | 2 +-
dom/base/test/csp/browser.ini | 4 +
dom/base/test/csp/browser_test_web_manifest.js | 265 +++++++++++++++++++++
.../csp/browser_test_web_manifest_mixed_content.js | 55 +++++
dom/base/test/csp/file_CSP_web_manifest.html | 6 +
dom/base/test/csp/file_CSP_web_manifest.json | 1 +
.../test/csp/file_CSP_web_manifest.json^headers^ | 1 +
dom/base/test/csp/file_CSP_web_manifest_https.html | 4 +
dom/base/test/csp/file_CSP_web_manifest_https.json | 1 +
.../csp/file_CSP_web_manifest_mixed_content.html | 9 +
.../test/csp/file_CSP_web_manifest_remote.html | 8 +
dom/base/test/csp/file_csp_testserver.sjs | 14 +-
dom/base/test/csp/mochitest.ini | 7 +
dom/base/test/moz.build | 5 +-
dom/fetch/InternalRequest.cpp | 3 +
dom/fetch/InternalRequest.h | 2 +-
.../security/nsIContentSecurityPolicy.idl | 3 +-
dom/ipc/manifestMessages.js | 25 +-
dom/security/nsCSPUtils.cpp | 7 +
dom/security/nsCSPUtils.h | 10 +-
dom/security/nsMixedContentBlocker.cpp | 1 +
dom/webidl/CSPDictionaries.webidl | 1 +
extensions/permissions/nsContentBlocker.cpp | 6 +-
netwerk/mime/nsMimeTypes.h | 1 +
28 files changed, 439 insertions(+), 15 deletions(-)
create mode 100644 dom/base/test/csp/browser.ini
create mode 100644 dom/base/test/csp/browser_test_web_manifest.js
create mode 100644 dom/base/test/csp/browser_test_web_manifest_mixed_content.js
create mode 100644 dom/base/test/csp/file_CSP_web_manifest.html
create mode 100644 dom/base/test/csp/file_CSP_web_manifest.json
create mode 100644 dom/base/test/csp/file_CSP_web_manifest.json^headers^
create mode 100644 dom/base/test/csp/file_CSP_web_manifest_https.html
create mode 100644 dom/base/test/csp/file_CSP_web_manifest_https.json
create mode 100644 dom/base/test/csp/file_CSP_web_manifest_mixed_content.html
create mode 100644 dom/base/test/csp/file_CSP_web_manifest_remote.html
2015-06-02 15:42:19 -04: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
Martin Thomson
b87ff904d8
Bug 1155898 - Fetch support for running outside of window/worker. r=nsm
...
--HG--
extra : transplant_source : %90P%A2O%7F%89%06%BF%AE_Q%0D%95%BEI%CC%85%E1%B2%40
2015-05-20 14:26:31 -07:00
Andrea Marchesini
61b9bd0496
Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan
2015-05-19 15:36:37 +01:00
Andrea Marchesini
3aa189b5ff
Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan
...
--HG--
rename : dom/base/nsIDOMFile.idl => dom/base/nsIDOMBlob.idl
2015-05-18 14:52:26 +01:00
Neil Rashbrook
cf42e317ab
Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan
2015-05-16 09:07:10 +01:00
Wes Kocher
3c714c42eb
Backed out changeset 17cfad44e12b (bug 1155963) for breaking b2g builds
2015-05-14 16:35:18 -07:00
Neil Rashbrook
ae441fafa2
Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan
2015-05-15 00:00:33 +01:00
Nikhil Marathe
6486d5d604
Bug 1154268 - Fetch Request should not allow creating a GET request with a body by copying a PUT request. r=bkelly
...
--HG--
extra : rebase_source : fba56297a7ceb194d4ef82e055a58afd6d37bfd6
2015-05-13 15:15:23 -07:00