Amy Chung
617901ad39
Bug 1399590 - Modify the argument of nsICookiePermission::CanAccess for changing nsIURI to nsIPrincipal. r=jdm
2017-10-03 14:37:11 +08:00
Amy Chung
fef08227cd
Bug 1286858 - Data storage and interface changes for SameSite cookies. r=valentin
2017-09-25 01:27:04 +08:00
Chris Peterson
6137e4ff8b
Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm
...
MozReview-Commit-ID: CrkIP4iHP1U
2017-09-03 22:14:11 -07:00
Bill McCloskey
dfa5a7575a
Bug 1398420 - Don't use SystemGroup for CookieServiceChild (r=jdm)
...
I noticed a bug where the following can happen. The parent sends a
TrackCookiesLoad message followed by an HTTP OnStartRequest
message. When these messages are received in the child, the
TrackCookiesLoad message goes in the SystemGroup event queue and the
OnStartRequest message goes in the event queue for the relevant
tab. Unfortunately, this means that the OnStartRequest message could
run first since the queues have no guaranteed ordering.
We really should be putting the TrackCookiesLoad message in the same
queue that the OnStartRequest message goes in. I worked on that a
little bit, but it's hard to get right. For now, I would like to leave
the cookie message unlabeled. Any unlabeled message/event is totally
ordered with respect to all other messages/events, so this fixes the
bug.
MozReview-Commit-ID: KiLDAhlrbB8
2017-09-11 19:11:05 -07:00
Kris Maglione
023be4c4c0
Bug 1396676: Return already_AddRefed from cookie service GetSingleton() methods. r=jdm
...
These methods return an addrefed raw pointer, which makes them easy to use in
ways that cause leaks. If they're to continue returning an addrefed pointer,
they should explicitly return an already_AddRefed.
This also switches to StaticRefPtr with ClearOnShutdown for the cached
pointers for the sake of sanity.
MozReview-Commit-ID: D0lDpU8Hqug
2017-09-04 15:05:10 -07:00
Amy Chung
0805d8573c
Bug 1376009 - Add mIPCOpen flag and check it before sending IPC messages to the parent. r=jdm
2017-08-22 03:48:00 -04:00
Kershaw Chang
76aaf2b603
Bug 1388247 - Use SystemGroup to label PCookieServiceChild. r=jdm
2017-08-16 00:05:00 -04:00
Josh Matthews
a652f80a9e
Bug 1331680 - Bustage fix for nsIURI changes. a=bustage
2017-08-03 09:23:43 -04:00
Amy Chung
f60c764b22
Bug 1331680 - Part 3: Broadcast cookie changes to all content processes. r=jdm
2017-08-03 18:00:12 +08:00
Amy Chung
f17d2527f8
Bug 1331680 - Part 2: Use local cookie hashtable in content process, and perform cookie permission checks synchronously. r=jdm
2017-08-03 17:59:31 +08:00
Amy Chung
7e6f632fa7
Bug 1331680 - Part 1: Send required cookies to the content process on demand. r=jdm
2017-08-03 19:00:41 +08:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Junior Hsu
b8909ead17
Bug 1370454 - Part2: Expose runInTransaction in nsICookieService.idl, r=jduell
2017-06-06 05:36:00 +02:00
Junior Hsu
e3f72a0bc9
Bug 1363659 - Ensure not sending cookie service constructor when shutting down, r=ehsan
2017-05-26 03:08:00 +02:00
Ehsan Akhgari
753205d23e
Bug 1363311 - Honor Set-Cookie headers in multipart/mixed response boundary headers in e10s mode; r=jdm
2017-05-24 17:32:32 -04:00
Ehsan Akhgari
b0ae2c7aaf
Bug 1339129 - Remove access to HTTP-only cookies from the child process; r=jdm
2017-02-14 10:01:47 -05:00
Sebastian Hengst
bb7d8e1845
Backed out changeset c27179ee59e9 (bug 1339129) for failing xpcshell tests netwerk/cookie/test/unit_ipc/test_ipc_parser_0001.js and test_ipc_parser_0019.js. r=backout
2017-02-13 21:23:52 +01:00
Ehsan Akhgari
65deab1661
Bug 1339129 - Remove access to HTTP-only cookies from the child process; r=jdm
2017-02-13 14:08:38 -05:00
Andrea Marchesini
46a9207d60
Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby
2017-01-12 17:38:48 +01:00
Yoshi Huang
4d4e86ce8e
Bug 1301406 - replace SerializedLoadContext with NeckoOriginAttributes. r=smaug, ehsan, jduell
...
SerializedLoadContext carries the origin attributes of the docshell to
parent process. However document could have different origin attributes
than the docshell's. And the origin attributes of the document comes
from the LoadInfo of the channel.
So we replace SerializedLoadContext with NeckoOriginAttributes, which is from
the loadInfo of the channel, therefore parent can get the correct origin
attributes from the document.
2016-09-20 14:24:23 +08:00
Nicholas Nethercote
887efe04d5
Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
...
The new name makes the sense of the condition much clearer. E.g. compare:
NS_WARN_IF_FALSE(!rv.Failed());
with:
NS_WARNING_ASSERTION(!rv.Failed());
The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
2016-09-01 15:01:16 +10:00
Michael Layzell
391f57c3e9
Bug 1184971 - Expose cookieBehavior and cookieLifetimePolicy preference variants from nsICookieService. r=ehsan
2015-07-17 08:01:00 +02:00
Carsten "Tomcat" Book
3fb5caac14
Backed out changeset 2f4b5acae553 (bug 1184971) for causing OS X Memory Leaks
2015-07-21 10:27:44 +02:00
Michael Layzell
caa9e53c4f
Bug 1184971 - Expose cookieBehavior and cookieLifetimePolicy preference variants from nsICookieService. r=ehsan
2015-07-17 08:01:00 +02:00
Birunthan Mohanathas
a29151dc87
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
Dragana Damjanovic
f5e3e71a6d
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02: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
Blake Kaplan
b60fbc5ab4
Bug 1087646 - fast-path null principal'd documents. r=mcmanus
2015-02-24 12:54:40 -08:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Ehsan Akhgari
68bfe70f09
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ryan VanderMeulen
25a380318e
Backed out changeset e2536905b186 (bug 940194) for bustage.
2013-11-21 09:38:59 -05:00
Michael Shuen
81654e784f
Bug 940194 - Build netwerk/cookie in unified mode. r=ehsan
2013-11-21 09:22:25 -05:00
Nathan Froyd
d3d40de64f
Bug 918651 - part 7a - fix source files bootlegging things from IPDL headers; rs=ehsan
2013-10-18 16:57:55 -04:00
Birunthan Mohanathas
a329e63203
Bug 784739 - Switch from NULL to nullptr in netwerk/ (1/2); r=ehsan
2013-09-19 15:28:26 -04:00
Ehsan Akhgari
a1ae335490
Bug 917266 - Remove some unneeded code in netwerk/; r=mcmanus
2013-09-17 12:38:55 -04:00
David Zbarsky
1cc1a8ebea
Bug 890570 - PCookieService doesn't need PBrowser r=jduell
2013-08-21 02:49:41 -04:00
Jonathan Mayer
1137ff6f5e
Bug 818340 - change third party cookie handling to block third party cookies from sites I haven't visited. (r=jdm, r=dolske)
2013-02-22 08:16:01 -08:00
Jason Duell
b69c7a411a
Bug 833935 - Warn when child is about to issue illegal IPDL request. r=jdm
2013-01-24 19:24:00 +00:00
Josh Matthews
4b8005064c
Bug 782542 - Secure necko IPDL usage. r=ted,jduell a=blocking-b2g
2012-12-29 04:02:16 -05:00
Josh Matthews
7d3481a09c
Backed out changeset 6cd44513d285 (bug 782542)
2012-12-28 19:18:38 -05:00
Josh Matthews
1ada334d95
Bug 782542 - Secure necko IPDL usage. r=ted,jduell a=blocking-b2g
2012-12-12 10:40:33 -05:00
Ed Morley
c5d5340d57
Backout 3e4e600adc3b (bug 782542) for crashtest-ipc timeouts
2012-12-16 18:09:39 +00:00
Josh Matthews
2b4ec31ed9
Bug 782542 - Secure necko IPDL usage. r=ted,jduell
...
* * *
Bug 782542 - Disable network.ipc security for certain mochitests r=ted
* * *
Bug 782542. Disable some more tests that use mozbrowser w/o app r?ted
* * *
Bug 782542 : yet another test needs tweaking. r?ted
2012-12-12 10:40:33 -05:00
Ehsan Akhgari
998da2a5bc
Backed out changeset 34c9ccee8058 (bug 782542) for mochitest failures
2012-12-11 15:04:11 -05:00
Josh Matthews
9212fc278b
Bug 782542 - Secure necko IPDL usage. r=ted,jduell
2012-12-07 17:12:02 -05:00
Jason Duell
8b5e83d050
Bug 756648 - Implement "cookie jars" for apps. r=biesi,smaug
2012-09-18 12:04:04 -04:00
Randell Jesup
3b4961b603
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Ben Turner
e28e39b6c7
Bug 784726 - 'Remove old IPC::URI'. r=cjones+khuey.
2012-08-23 12:33:46 -07:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00