66 Commits

Author SHA1 Message Date
dwitte%stanford.edu
9db38d55d2 Bug 416207 - Update cookie/permission services from changes to mozIStorageService::OpenDatabase. r=sdwilsh, sr=mconnor, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@246710 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-28 08:23:13 +00:00
dwitte%stanford.edu
e17d058b3f tweaking debug warning to reduce noise.
git-svn-id: svn://10.0.0.236/trunk@242935 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-12 00:38:38 +00:00
dwitte%stanford.edu
894a36be89 move permission manager persistent storage from hostperm.1 to permissions.sqlite, use nsIURI::GetAsciiHost() for consistent host normalization, and
expand type/permission limits. bugs 400092 and 400097 (patch in 400097), sr=shaver, pending r=sdwilsh, blocking-1.9+.


git-svn-id: svn://10.0.0.236/trunk@240509 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-05 06:37:36 +00:00
sayrer%gmail.com
17d4fc9328 Bug 396648. nsPermissionManager tries to open two files that usually don't exist. r/sr=biesi, a=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@236424 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 05:09:54 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
dcamp%mozilla.com
a66433acd5 Bug 378685 - Permission manager should operate on innermost URI, r=dveditz sr=mconnor
git-svn-id: svn://10.0.0.236/trunk@228436 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-21 16:32:46 +00:00
kaie%kuix.de
31efe5bc5c bug 370802, nsIPermissionManager: Add ability for exact hostname testing
r/sr=cbiesinger


git-svn-id: svn://10.0.0.236/trunk@220578 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-20 15:24:36 +00:00
cbiesinger%web.de
c918562fbd bug 341008 Fix sscanf error checking
r=mvl sr=darin a=darin


git-svn-id: svn://10.0.0.236/trunk@199972 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-15 13:52:14 +00:00
gavin%gavinsharp.com
a0097b5da7 Bug 334319: buffer overrun in nsPermissionManager::Read when reading an invalid cookperm.txt file, r=mvl, sr=darin
git-svn-id: svn://10.0.0.236/trunk@195153 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-22 13:32:25 +00:00
cbiesinger%web.de
17bef0ef8c bug 333263 only call Read() when mPermissionsFile is initialized
r=mvl sr=darin


git-svn-id: svn://10.0.0.236/trunk@194128 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-11 15:09:51 +00:00
joshmoz%gmail.com
a96b798c01 Don't warn when expected error path is taken. b=327052 r=darin sr=bz
git-svn-id: svn://10.0.0.236/trunk@189972 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-14 18:12:47 +00:00
mvl%exedo.nl
fdf5150c9b Don't crash when setting a previously deleted cookie permission.
bug 300301, r=dwitte, sr=darin, a=mconnor.


git-svn-id: svn://10.0.0.236/trunk@176181 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-17 10:10:31 +00:00
timeless%mozdev.org
ecc5a30fa2 Bug 298278 remove useless references to nsVoidArray
r=mvl sr=darin a=tor


git-svn-id: svn://10.0.0.236/trunk@175254 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-28 21:20:04 +00:00
timeless%mozdev.org
e4d028f9fc Bug 243385 Crash [@ nsPermissionManager::GetHost]
patch by db48x@yahoo.com / gautheri@noos.fr r=mvl sr=bz


git-svn-id: svn://10.0.0.236/trunk@167878 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-17 09:13:27 +00:00
dwitte%stanford.edu
04ba07900a make cookie & permission files non-world-readable.
b=59557, patch by Pavel Kankovsky (peak@argo.troja.mff.cuni.cz), r=dwitte, sr=bz.


git-svn-id: svn://10.0.0.236/trunk@159532 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-20 07:27:28 +00:00
dwitte%stanford.edu
357f76fff5 sprinkle some asserts, and remove redundant #include.
git-svn-id: svn://10.0.0.236/trunk@159515 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-19 23:38:35 +00:00
dwitte%stanford.edu
3203562ebb rename nsISafeFileOutputStream to nsISafeOutputStream, and make nsBufferedOutputStream aware of it, to make life easier on consumers.
b=251648, r=biesi, sr=darin, with thanks to darin and bz for suggestions.


git-svn-id: svn://10.0.0.236/trunk@159501 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-19 22:00:03 +00:00
dwitte%stanford.edu
214d7e8e71 quick fix to get cookie/permission file saving working on trunk again, while we hash out a real fix.
b=251648, r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@159362 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-16 20:08:08 +00:00
mvl%exedo.nl
568eebcd93 init mChangedList
bug 251247, r=dwitte, sr=darin


git-svn-id: svn://10.0.0.236/trunk@159247 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 15:16:42 +00:00
dwitte%stanford.edu
8fd0f2724e add Finish() method to nsISafeFileOutputStream, and tweak things slightly.
b=251091, r=mvl, sr=darin


git-svn-id: svn://10.0.0.236/trunk@159236 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 05:52:37 +00:00
mvl%exedo.nl
8da3a12d0c use nsISafeFileOutputStream to prevent hostperm.1 from being truncated when the disk is full
bug 145557, r=dwitte, sr=darin, a=asa


git-svn-id: svn://10.0.0.236/trunk@158990 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-10 11:04:33 +00:00
mvl%exedo.nl
11175041f5 fix compiler warning
Bug 244080, patch by tenthumbs@cybernex.net, r=mvl, sr=darin


git-svn-id: svn://10.0.0.236/trunk@157400 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-04 08:56:50 +00:00
roc+%cs.cmu.edu
bdc7e5f59b Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin
git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-22 22:15:22 +00:00
bienvenu%nventure.com
c12e53e60e make nsILineInputStream take an nsACString ref, 197166, r=darin, sr=mscott, make local msg body search cache open file stream, use nsIFile instead of nsFileSpec to cut down on seeks, improve performance, sr=mscott 240538
git-svn-id: svn://10.0.0.236/trunk@155334 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-22 15:32:54 +00:00
gerv%gerv.net
d6544e324a Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155092 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 22:14:17 +00:00
mvl%exedo.nl
efd349af02 Wait to write out the permissions file until after 2 seconds of inactivity, to speed up deleting of losts of entries.
bug 236641, r=dwitte, sr=darin, a=dveditz


git-svn-id: svn://10.0.0.236/trunk@153918 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-12 18:02:38 +00:00
mvl%exedo.nl
dcb7c839ea If domain.com is blocked, sub.domain.com is blocked, but cannot be unblocked using remove
Part two, domainwalk in nsPermissionManager.
Bug 224327, r=dwitte, sr=darin


git-svn-id: svn://10.0.0.236/trunk@152608 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-10 19:57:33 +00:00
mvl%exedo.nl
c2b0ecef12 Create a new file to store nsPermissionManager's data in.
This will create a hostperm.1 file instead of cookperm.txt. The new file has more flexibility.
Bug 219752, r=dwitte, sr=darin


git-svn-id: svn://10.0.0.236/trunk@152513 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-08 13:04:13 +00:00
timeless%mozdev.org
7323bb61ac Bug 229147 mHost = ArenaStrDup from nsHostEntry can fail and needs to be handled
r=mvl sr=bz


git-svn-id: svn://10.0.0.236/trunk@152294 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-04 16:15:38 +00:00
mvl%exedo.nl
da65c926f9 Whitespace only change, to indicate that the previous comment was supposed to be:
Ignore the port when checking permissions. Bug 200644, r=dwitte, sr=darin


git-svn-id: svn://10.0.0.236/trunk@148927 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-06 20:25:13 +00:00
mvl%exedo.nl
6a86068833 Put back a line that shouldn't have been removed for bug 161130
git-svn-id: svn://10.0.0.236/trunk@148926 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-06 20:21:05 +00:00
mvl%exedo.nl
4018692979 Prevent crashes due to the permissions array not being initialized.
bug 223201, r=dwitte, sr=darin


git-svn-id: svn://10.0.0.236/trunk@148658 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-31 19:09:08 +00:00
timeless%mozdev.org
69290f94cc Bug 223199 hostList leaks on OOM in nsPermissionManager::GetEnumerator
r=dwitte sr=roc


git-svn-id: svn://10.0.0.236/trunk@148505 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-30 02:09:13 +00:00
dwitte%stanford.edu
00018f0913 move cookies to use hashtables instead of a sorted list, and implement a sane notifications
system for cookies and permissions. this will improve perf a bunch, and also sets the stage
for a more performant and flexible cookiemanager UI by providing better notifications.

bugs 143939 and 221185, with r=bsmedberg+mvl, sr=darin and r=mvl, sr=bz respectively.


git-svn-id: svn://10.0.0.236/trunk@148263 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:53:19 +00:00
mvl%exedo.nl
2b39cc7aa4 Try the scheme if no host is found when showing a cookie dialog. bug 209689, r=dwitte, sr=darin
git-svn-id: svn://10.0.0.236/trunk@147838 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-10 15:08:43 +00:00
mvl%exedo.nl
544e48f258 Fix typos
git-svn-id: svn://10.0.0.236/trunk@146778 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 17:02:32 +00:00
mvl%exedo.nl
b3d24730a2 Ignore bogus lines that old builds can create when reading cookperm.txt. bug 215461. r=dwitte, sr=darin
git-svn-id: svn://10.0.0.236/trunk@146776 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 16:56:04 +00:00
mvl%exedo.nl
c03e250d71 Followup to bug 217636, assertion is the wrong way around. Debug only. r=dwitte, sr=darin, a=asa
git-svn-id: svn://10.0.0.236/trunk@146541 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-03 20:45:23 +00:00
mvl%exedo.nl
19e72a41ce Bug 217636, fix cookperm.txt indexes. r=dwitte, sr=darin, a=asa
git-svn-id: svn://10.0.0.236/trunk@146442 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-29 17:13:40 +00:00
dwitte%stanford.edu
e8ec89d756 Bug 212284: Adding a web site to allowed popup site list crashes Mozilla [@ nsPermissionManager::Add ]
fixing a crasher regression from yesterday's landing of bug 209475.

patch by mvl; r=dwitte, sr=bz, a=dbaron.


git-svn-id: svn://10.0.0.236/trunk@144690 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 00:04:02 +00:00
darin%netscape.com
d8f1949973 MSVC++ uses old-school variable scoping with |for| loop initializers. fixes win32 bustage.
git-svn-id: svn://10.0.0.236/trunk@144611 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-09 01:29:51 +00:00
dwitte%stanford.edu
9d62d39ae0 Bug 209475: Make nsIPermissionManager more flexible for extensions.
Changes nsIPermissionManager.idl to accept type strings rather than integers; this allows consumers to register unique types more easily, without fear of conflicting with an already-existing one.

Also fixes some bounds-checking fu (sr=bz on irc for those additional portions).

patch by mvl; r=dwitte, sr=bz.


git-svn-id: svn://10.0.0.236/trunk@144606 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-09 00:20:57 +00:00
timeless%mozdev.org
aed1be9567 Bug 200697 - Make nsPermissionManager use hashtables, decrease memory used
patch by dwitte@stanford.edu r=bsmedberg@covad.net sr=alecf a=asa


git-svn-id: svn://10.0.0.236/trunk@141817 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-25 20:13:05 +00:00
dmose%mozilla.org
2bbd695dac Speed up nsPermissionManager by using hashtables; decrease footprint by not using an array of permission_TypeStructs (bug 200697). Thanks to Michiel van Leeuwen <mvl@exedo.nl> for the patch. r=dwitte@stanford.edu; sr=alecf@flett.org
git-svn-id: svn://10.0.0.236/trunk@141636 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 23:33:31 +00:00
cbiesinger%web.de
7ec3727456 176950 patch by dwitte@stanford.edu r=darin sr=jag cookie permissions site blocking does not appy to fully qualified node names from within the site.
git-svn-id: svn://10.0.0.236/trunk@140693 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 13:20:37 +00:00
timeless%mozdev.org
df60c36ac7 Bug 199216 adding domain.com to whitelist doesn't allow popups from *.domain.com to appear
patch by mvl@exedo.nl r=dwitte sr=jag


git-svn-id: svn://10.0.0.236/trunk@140306 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-26 00:46:32 +00:00
cbiesinger%web.de
1f1970b7d2 198829 patch by mvl@exedo.nl r=dwitte@stanford.edu sr=dmose Blocking cookies does not remain persistent
git-svn-id: svn://10.0.0.236/trunk@140117 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-23 22:35:02 +00:00
bzbarsky%mit.edu
70156d33e8 Checking in permissions rewrite phase 1 (troop deployment in the permission
gulf).  Bug 191380, patch by mvl@exedo.nl (Michiel van Leeuwen),
r=dwitte@stanford.edu, sr=darin.


git-svn-id: svn://10.0.0.236/trunk@140010 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-22 01:24:51 +00:00
dbaron%dbaron.org
f5b5bace95 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136002 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 20:32:55 +00:00
morse%netscape.com
5438aed499 bug 161952, remove-all doesn't update cookieperm.txt file, cls@seawood.org, r=morse, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@129512 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-13 08:14:35 +00:00