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

270 Коммитов

Автор SHA1 Сообщение Дата
Mark Hammond 3cd7c18fda Bug 1058433 - nsPermissionManager now records the mod-time of a permission and allows removal of ones modified since a specified time. r=ehsan 2014-09-15 11:33:12 +10:00
Mark Hammond 00a32c79d1 Bug 506446 - nsPermissionManager now reads a file with default permissions. r=bsmedberg 2014-09-12 13:24:10 +10:00
Ehsan Akhgari 1b5135fef3 Bug 1060994 - Fix more bad implicit constructors in permission checker; r=bsmedberg
--HG--
extra : rebase_source : 455e38e7ff128a9a1b158dc256e86a012a6cc007
2014-09-02 18:20:38 -04:00
Benoit Jacob f5daf8e5a1 Bug 1028588 - Fix dangerous public destructors in extensions/ - r=ehsan 2014-06-23 18:40:02 -04:00
Birunthan Mohanathas 5f1fde8824 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
Gabor Krizsanits fb3e4c0034 Bug 980023 - Localstorage access with nsEp. r=bholley 2014-03-11 08:41:55 +01:00
Magnus Melin ae2409391b Bug 457296 - allow content manager to removing mail address permissions. r=josh 2014-01-25 21:00:10 +02:00
Ryan VanderMeulen 36f61bfd01 Backed out changeset fa9b60c88118 (bug 457296) for bustage on a CLOSED TREE. 2014-02-05 15:32:15 -05:00
Magnus Melin 5ea6ac3d67 Bug 457296 - allow content manager to removing mail address permissions. r=josh 2014-02-05 21:49:00 +02:00
Ehsan Akhgari 1b83407ce9 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
Bobby Holley b11d6b321a Bug 946815 - Handle nsIExpandedPrincipal instances in the permission manager API. r=baku 2013-12-17 18:01:41 -08:00
Bobby Holley 13dad8b91f Bug 946815 - Hoist system-principal checks into CommonTestPermission. r=baku 2013-12-17 18:01:41 -08:00
Trevor Saunders d43c55ca0e bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj 2013-12-12 20:50:01 -05:00
Mike Conley c5eff3cccc Bug 457296 - Allow nsIPermissionManager to accept mailto URLs. r=jdm. 2013-11-18 23:34:00 -05:00
Nathan Froyd 05e020c835 Bug 918651 - part 7a - fix source files bootlegging things from IPDL headers; rs=ehsan 2013-10-18 16:57:55 -04:00
Mark Hammond 5dc67fecdc Bug 921342 - fix compiler warning about not enough args to macro ENSURE_NOT_CHILD_PROCESS_. r=bsmedberg 2013-10-01 11:02:34 +10:00
Robert O'Callahan 03e7828db2 Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Justin Lebar 3e059c7221 Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Justin Lebar 051c5b560a Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else

This is a mechanical change made with sed.  Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
David Rajchenbach-Teller 7631a5973e Bug 702559 - First implementation of mozIStorageAsyncConnection;r=mak
* * *
Bug 702559 - Implementation of transaction helper compatible with mozIStorageAsyncConnection;r=mak
2013-06-27 09:00:59 -04:00
Ed Morley 67356c3a8c Backed out changeset fa98df7a3493 (bug 702559) for xpcshell orange 2013-06-26 12:56:40 +01:00
David Rajchenbach-Teller 198d5dbf1f Bug 702559 - First implementation of mozIStorageAsyncConnection;r=mak 2013-06-26 05:45:49 -04:00
Benjamin Smedberg f80b28d0a3 Bug 883420 - Add an API to set a new expireTime for an existing permission, r=ehsan sr=mounir 2013-06-24 08:51:07 -04:00
Benjamin Smedberg fbcb1e7196 Bug 874197 - Change nsIPermissionManager.TYPE_SESSION to also respect expiration times if they are specified. r=jdm sr=mounir 2013-06-06 15:59:32 -04:00
Benjamin Smedberg 0892e623d9 Bug 874196 - Add an API to get the specifics of a permission given a host/type: this will allow the plugin click-to-activate UI to manage permissions by the matching host and determine whether the current permission is per-session or persistent. r=jdm sr=mounir 2013-06-06 15:59:31 -04:00
David Zbarsky 45aa3d2bde Bug 864206 - Use dom::Touch instead of nsIDOMTouch where possible r=Ms2ger 2013-05-17 13:17:53 -07:00
matekm 9d92ba2ff6 Bug 784739 - Switch from NULL to nullptr in extensions/; r=ehsan 2013-04-02 21:06:20 -04:00
Mounir Lamouri 252467e965 Bug 815640 - Make permission manager aware of "file://". r=sicking 2013-02-04 17:10:28 +00:00
Mounir Lamouri a13145c6a8 Bug 816956 - Don't try to check all parent hosts in the Permission Manager (but only until the domain name). r=sicking 2013-02-04 23:41:52 +00:00
Mounir Lamouri a9a81dbda3 Bug 823093 - Skip permission entries with invalid appId. r=sicking 2012-12-20 13:25:36 +01:00
Ryan VanderMeulen 0c0f4a7dea Backed out changeset eb2f0c1fffc2 (bug 820613) for xpcshell failures.
--HG--
extra : rebase_source : 7fff4cec5a4d7839cd3ede5cd0322631e11f9d38
2013-01-26 14:05:31 -05:00
Shriram Kunchanapalli 07a2e5d95d Bug 820613 - Remove all references to shutdown-cleanse. r=bsmedberg 2013-01-17 00:40:56 +05:30
Mounir Lamouri 1de8f30170 Bug 830983 - Make 'webapps-clear-data' handler working for real when browserOnly is true. r=sicking 2013-01-19 00:15:55 +00:00
L. David Baron 257eebefc8 Backout changeset aa20a6097d0b (bug 830983) for causing mochitest-other orange in test_app_cleardata_permissions.html. 2013-01-18 11:00:19 +00:00
Alexandre Poirot 25afd243ab Bug 830983 - Prevent removing in-memory app permissions when deleting only its in-browser permissions., r=sicking 2013-01-18 11:04:40 +01:00
Andrea Marchesini 5bbb7954d5 Bug 827895 - Settings app should not show the session permissions of apps, r=mounir 2013-01-10 21:23:39 +01:00
Andrea Marchesini 5bdf23a61f Bug 827050 - Clear cookies and stored data in the browser clears remember my choice permissions for PROMPT_ACTION WebAPIs, r=mounir
--HG--
rename : dom/tests/mochitest/localstorage/frame_clear_browser_data.html => extensions/cookie/test/frame_clear_browser_data.html
rename : extensions/cookie/test/test_app_uninstall_permissions.html => extensions/cookie/test/test_app_cleardata_permissions.html
2013-01-07 18:37:01 +01:00
Phil Ringnalda c4574bd3fa Back out fef358e6d5e6 (bug 827050) for Linux/Windows xpcshell orange in test_cache_jar_wrap.js 2013-01-07 22:01:41 -08:00
Andrea Marchesini 588ffec51f Bug 827327 - Remember my permissions for the privileged apis in a privileged app is broken. r=sicking 2013-01-07 21:29:22 -05:00
Andrea Marchesini bfbca2d401 Bug 827050 - Clear cookies and stored data in the browser clears remember my choice permissions for PROMPT_ACTION WebAPIs, r=mounir
--HG--
rename : dom/tests/mochitest/localstorage/frame_clear_browser_data.html => extensions/cookie/test/frame_clear_browser_data.html
rename : extensions/cookie/test/test_app_uninstall_permissions.html => extensions/cookie/test/test_app_cleardata_permissions.html
2013-01-07 18:37:01 +01:00
Ed Morley 10ffedee08 Backout 66a04865fe51 (bug 827050) for xpcshell orange on a CLOSED TREE 2013-01-07 11:37:10 +00:00
Andrea Marchesini 585e1e539c Bug 827050 - Clear cookies and stored data in the browser clears remember my choice permissions for PROMPT_ACTION WebAPIs r=sicking 2013-01-07 11:31:21 +01:00
Andrea Marchesini d70f7ca23e Bug 811026 - [Permissions] Grant a prompted permission for the duration of the session, r=sicking 2013-01-05 14:02:29 -08:00
Ehsan Akhgari 4ad1b6649d Backed out changeset 66a7359f9be2 (bug 791546) because it broke the build 2013-01-03 18:36:16 -05:00
Shriram Kunchanapalli 25d2ca6bd4 Bug 791546: Removes nsCRT::strcmp(const PRUnichar* s) from nsCRT.h and replaces it occurrences with NS_strcmp; r=bsmedberg 2012-12-24 08:47:18 +05:30
Jeff Walden 120886ca73 Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger 2012-12-14 18:58:45 -05:00
Mounir Lamouri ee12f3c912 Bug 814554 - Don't stop reading the permissions database when an invalid entry is found. r=sicking 2012-11-27 23:29:19 +00:00
Mounir Lamouri 73a3557c9c Bug 785632 - Remove the permission manager workaround for Gaia. r=jlebar 2012-09-25 23:50:17 +01:00
Chris Jones 423b0a4485 Back out bug 785632 for breaking several things (7de3b05cd7d8)
--HG--
extra : rebase_source : 316d258d39e86a760326c14f3196fff5319dc2b1
2012-09-25 21:21:35 -07:00
Mounir Lamouri e95b56b36b Bug 785632 - Remove the permission manager workaround for Gaia. r=jlebar 2012-09-25 23:50:17 +01:00
Mike Habicher 5b69de0f54 Bug 776934 - Add permissions check to camera API. r=jlebar 2012-09-21 06:32:18 -04:00
David Zbarsky 2e22ef6983 Fix virtual dtor warning, no bug, blanket r=bz 2012-09-19 23:57:04 -04:00
Mounir Lamouri b04b02b2ff Bug 787717 - r=bsmith 2012-09-19 18:25:17 +01:00
Mounir Lamouri 0912706617 Bug 724878 - Make nsPermissionManager DB access (except init) async. r=jlebar 2012-09-08 15:48:20 +02:00
Randell Jesup 65539ef89c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Mounir Lamouri 2d431e023d Bug 786296 - Remove permissions when an app is uninstalled. r=jlebar,fabrice 2012-08-31 11:34:28 -03:00
Mounir Lamouri 11a64b3607 Bug 785631 - Temporarily allow permissions if they don't match the app/browserElement info. r=cjones
This is a workaround for Gaia.
2012-08-26 15:59:59 -03:00
Mounir Lamouri 3ed95c9cd2 Bug 784878 - Use version 2 by default when no version in found in permissions.sqlite. r=sicking
This is a patch to workaround the fact that talos has wrongly gerenated
permissions.sqlite files which don't have a user_version and are version 2.
This is going to be replaced by a MOZ_ASSERT by bug 784884.
2012-08-23 11:42:52 -07:00
Mounir Lamouri a263ac2cb9 Bug 777072 - 6/7 Update the Permission Manager database to save appId/isInBrowserElement. r=sicking 2012-08-23 11:38:26 -07:00
Mounir Lamouri 0eb75e0f22 Bug 777072 - 5/7 - Update IPC::Permission to use appId/isInBrowserElement. r=sicking 2012-08-23 11:38:01 -07:00
Mounir Lamouri a2e5fe652d Bug 777072 - 4/7 - Update nsPermission to use appId/isInBrowserElement. r=sicking 2012-08-23 11:37:31 -07:00
Mounir Lamouri 13f8b46e72 Bug 777072 - 3/7 - Update nsHostTable and nsHostEntry to make them aware of new security model. r=sicking,jlebar 2012-08-23 11:47:55 -07:00
Mounir Lamouri 25c6e98012 Bug 777072 - 2/7 - AddInternal() and CommonTestPermission() should use nsIPrincipal. r=sicking 2012-08-25 09:53:48 -07:00
Mounir Lamouri 418f10907f Bug 777072 - 1/7 - Move the logic from methods taking URIs to method taking nsIPrincipals. r=sicking 2012-08-23 11:35:54 -07:00
Ehsan Akhgari e368dc9c85 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 061fd9f9ca Bug 782252 - Use NS_FAILED instead of boolean test for ToInteger()/ToFloat(); r=ehsan 2012-08-13 16:49:48 +03:00
Aryeh Gregor c81630fddb Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Gregor Wagner 48bb60b4c6 Bug 776764 - Allow permissionDB parent directory to not be the default profile directory. r=fabrice 2012-07-24 11:22:14 -07:00
Mounir Lamouri 5464a18491 Bug 774819 - Handle system principals in nsPermissionManager when taking principals. r=sicking 2012-07-18 08:24:01 -07:00
David Zbarsky 59051c7ccf Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (extensions/cookie); r=mak 2012-07-12 14:07:26 -04:00
Mounir Lamouri 54aa3cb424 Bug 769583 - Add methods to nsIPermissionManager to take principals instead of URIs. r=sicking 2012-07-09 12:26:12 +02:00
David Rajchenbach-Teller 642ec0956f Bug 702344 - Async requests for nsPermissionManager::RemoveAll();r=mak 2012-04-30 18:21:50 +02:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Benjamin Smedberg eaa4878487 Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Rafael Ávila de Espíndola df24103177 Bug 711447 - Close connection in nsPermissionManager. r=dwitte.
--HG--
extra : rebase_source : 0df435f943142b7a09de36fdb03e01114ef20f15
2011-12-21 17:04:49 -05:00
Rafael Ávila de Espíndola 1498c9fca4 Bug 688913 - Finalize statements in extensions/cookie and toolkit/components/contentprefs. r=mak. 2011-10-28 10:55:20 -04:00
Ehsan Akhgari 92064e6d3f Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Benjamin Stover 5f522bf736 Bug 674615 Remove nsPermissionManager's GetSingleton r=dwitte 2011-08-30 10:45:09 -07:00
Benjamin Smedberg 3ad781c193 Bug 666748 - Optionally support a pool of content processes instead of a single one. r=jdm The followup patch for 669640 must land together with this one. 2011-08-02 15:35:42 -04:00
Josh Matthews 49858f3ead Bug 621367 - nsPermissionManager doesn't allow enumerator access in content processes (r=dwitte) 2011-07-13 18:03:44 +02:00
Matheus Kerschbaum 4eb6429f47 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg 2011-04-02 19:14:00 -07:00
Shawn Wilsher 40a235bbf9 Bug 645099 - Stop using [deprecated] Storage methods in the permission manager
r=bz
2011-03-31 10:19:31 -07:00
Kyle Huey 959ea8bc3e Backed out changeset a5dbece71e4a due to test failures 2011-03-31 09:11:21 -04:00
Matheus Kerschbaum b06dc06820 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now. r=bsmedberg 2011-03-31 07:22:55 -04:00
Josh Matthews eb4e568e5d Bug 619559 - Make permission manager notify observers in content processes. r=dwitte a=jst 2010-12-25 02:31:01 -05:00
Josh Matthews 2ffd687e92 Bug 618716 - Fix warnings in nsPermissionManager.cpp r=dwitte a=jst 2010-12-12 14:36:00 -05:00
Chris Jones 339106b788 Bug 562424: Switch IPDL interfaces to infallible TArray. r=bent a=blocking 2010-11-08 20:49:00 -06:00
Dan Witte a6e5900b55 Bug 605908 - test_parent.js leaks objects. Part 1: nsPermissionManager leak. r=jdm, a=sdwilsh 2010-10-21 11:36:14 -07:00
Alon Zakai 106c2d532f Add missing MOZ_IPC ifdef in e14e2cc7d786 a=bustage-fix 2010-10-09 20:07:57 -07:00
Alon Zakai 984b79bca9 Bug 599428 - Optimize permissions IPC. r=dwitte a=blocking-fennec 2010-10-09 11:07:38 -07:00
Jonas Sicking ce596ea823 Fix missing comments from patch for bug 546857 2010-08-21 18:48:01 +02:00
Bobby Holley fb797f7aec Backout of changesets c866e73f3209 and baff7b7b32bc because of sicking's push-and-run bustage. a=backout 2010-08-20 23:42:24 -04:00
Jonas Sicking 6e2c9b1a30 Fix missing comments from patch for bug 546857 2010-08-20 17:50:35 -07:00
Jonas Sicking deafeb0a9e Bug 546857 Part 2: Allow permissions to be set on files. r=dwitte a=blocker 2010-08-19 16:06:07 -07:00
Josh Matthews f0ccb9c187 Bug 580450 - Clean up IPC::URI. r=dwitte 2010-07-26 15:59:34 -04:00
Chris Jones 613ff7284a Bug 578262: Clean up style in and remove build warnings from new-ishly merged e10s code. r=bsmedberg
--HG--
rename : dom/ipc/ContentProcessChild.cpp => dom/ipc/ContentChild.cpp
rename : dom/ipc/ContentProcessChild.h => dom/ipc/ContentChild.h
rename : dom/ipc/ContentProcessParent.cpp => dom/ipc/ContentParent.cpp
rename : dom/ipc/ContentProcessParent.h => dom/ipc/ContentParent.h
rename : dom/ipc/ContentProcessProcess.cpp => dom/ipc/ContentProcess.cpp
rename : dom/ipc/ContentProcessProcess.h => dom/ipc/ContentProcess.h
rename : dom/ipc/PIFrameEmbedding.ipdl => dom/ipc/PBrowser.ipdl
rename : dom/ipc/PContentProcess.ipdl => dom/ipc/PContent.ipdl
2010-07-19 13:33:33 -05:00
Alon Zakai 3a1ca13d73 Bug 564535 - permission manager needs to be remoted [r=dwitte] 2010-07-15 10:04:25 -04:00
Dan Witte 7911153c5a test failure fix. 2009-10-16 16:16:31 -07:00
Sid Stamm 0e1cce64fa Bug 519263 - Session and time-based expiration for permissions in permissions manager. r=dwitte,
sr=mrbkap. First patch! Yay!!
2009-10-16 14:01:04 -07:00
Ehsan Akhgari 63383cd735 Bug 488811 - nsIPermissionManager.removeAll() should delete DB and re-init rather than just bailing; r=dwitte sr=bzbarsky 2009-04-18 10:12:09 +03:30
Fred Jendrzejewski 424883d380 Bug 466622. Replace nsCStringArray with nsTArray<nsCString> for more consistent code and fewer heap allocations. r+sr=roc,r=bsmedberg
--HG--
extra : rebase_source : b963bf5de9d9c445b14620479691482512e0faf2
2009-01-22 17:15:34 +13:00
Arpad Borsos c72ef7d248 Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan 2008-10-10 17:04:34 +02:00
dwitte@stanford.edu cd7f7e893e Bug 416207 - Update cookie/permission services from changes to mozIStorageService::OpenDatabase. r=sdwilsh, sr=mconnor, a=beltzner 2008-02-28 00:23:12 -08:00
dwitte@stanford.edu 8eb96a90ea tweaking debug warning to reduce noise. 2008-01-11 16:38:38 -08:00
dwitte@stanford.edu bd5df04b78 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+. 2007-12-04 22:37:36 -08:00
sayrer@gmail.com 2efc644b24 Bug 396648. nsPermissionManager tries to open two files that usually don't exist. r/sr=biesi, a=bzbarsky 2007-09-20 22:09:54 -07:00
jwalden@mit.edu 6d7584839a 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. 2007-07-08 00:08:04 -07:00
dcamp@mozilla.com 1b552952ed Bug 378685 - Permission manager should operate on innermost URI, r=dveditz sr=mconnor 2007-06-21 09:32:46 -07:00
kaie%kuix.de 16051c655c bug 370802, nsIPermissionManager: Add ability for exact hostname testing
r/sr=cbiesinger
2007-02-20 15:24:36 +00:00
cbiesinger%web.de 5b2acd0545 bug 341008 Fix sscanf error checking
r=mvl sr=darin a=darin
2006-06-15 13:52:00 +00:00
gavin%gavinsharp.com 25e3210412 Bug 334319: buffer overrun in nsPermissionManager::Read when reading an invalid cookperm.txt file, r=mvl, sr=darin 2006-04-22 13:32:25 +00:00
cbiesinger%web.de 55f9f3d9c7 bug 333263 only call Read() when mPermissionsFile is initialized
r=mvl sr=darin
2006-04-11 15:09:51 +00:00
joshmoz%gmail.com d5218ccc10 Don't warn when expected error path is taken. b=327052 r=darin sr=bz 2006-02-14 18:12:47 +00:00
mvl%exedo.nl 660a01e085 Don't crash when setting a previously deleted cookie permission.
bug 300301, r=dwitte, sr=darin, a=mconnor.
2005-07-17 10:10:31 +00:00
timeless%mozdev.org 2313cf8ce8 Bug 298278 remove useless references to nsVoidArray
r=mvl sr=darin a=tor
2005-06-28 21:20:04 +00:00
timeless%mozdev.org 0310217f8d Bug 243385 Crash [@ nsPermissionManager::GetHost]
patch by db48x@yahoo.com / gautheri@noos.fr r=mvl sr=bz
2005-01-17 09:13:27 +00:00
dwitte%stanford.edu dee773b6e5 make cookie & permission files non-world-readable.
b=59557, patch by Pavel Kankovsky (peak@argo.troja.mff.cuni.cz), r=dwitte, sr=bz.
2004-07-20 07:27:28 +00:00
dwitte%stanford.edu bdf2a2307d sprinkle some asserts, and remove redundant #include. 2004-07-19 23:38:35 +00:00
dwitte%stanford.edu e338583f48 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.
2004-07-19 22:00:03 +00:00
dwitte%stanford.edu bd8bee85d7 quick fix to get cookie/permission file saving working on trunk again, while we hash out a real fix.
b=251648, r+sr=darin
2004-07-16 20:08:08 +00:00
mvl%exedo.nl 2ebd61764c init mChangedList
bug 251247, r=dwitte, sr=darin
2004-07-15 15:16:42 +00:00
dwitte%stanford.edu 76c59a7697 add Finish() method to nsISafeFileOutputStream, and tweak things slightly.
b=251091, r=mvl, sr=darin
2004-07-15 05:52:37 +00:00
mvl%exedo.nl 149a807e1b use nsISafeFileOutputStream to prevent hostperm.1 from being truncated when the disk is full
bug 145557, r=dwitte, sr=darin, a=asa
2004-07-10 11:04:33 +00:00
mvl%exedo.nl ae01124eaf fix compiler warning
Bug 244080, patch by tenthumbs@cybernex.net, r=mvl, sr=darin
2004-06-04 08:56:50 +00:00
roc+%cs.cmu.edu 0e3ff503fb Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin 2004-05-22 22:15:22 +00:00
bienvenu%nventure.com 4d40ab419f 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 2004-04-22 15:32:54 +00:00
gerv%gerv.net 86486431ae Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 22:14:17 +00:00
mvl%exedo.nl 0b2a2ee20d 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
2004-03-12 18:02:38 +00:00
mvl%exedo.nl 054f4164df 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
2004-02-10 19:57:33 +00:00
mvl%exedo.nl 20c77dd560 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
2004-02-08 13:04:13 +00:00
timeless%mozdev.org 93aa40c3fa Bug 229147 mHost = ArenaStrDup from nsHostEntry can fail and needs to be handled
r=mvl sr=bz
2004-02-04 16:15:38 +00:00
mvl%exedo.nl a559a5ed2b 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
2003-11-06 20:25:13 +00:00
mvl%exedo.nl 1f3c16d801 Put back a line that shouldn't have been removed for bug 161130 2003-11-06 20:21:05 +00:00
mvl%exedo.nl 289a063ebf Prevent crashes due to the permissions array not being initialized.
bug 223201, r=dwitte, sr=darin
2003-10-31 19:09:08 +00:00
timeless%mozdev.org 8d41a79bf6 Bug 223199 hostList leaks on OOM in nsPermissionManager::GetEnumerator
r=dwitte sr=roc
2003-10-30 02:09:13 +00:00
dwitte%stanford.edu e42be4a132 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.
2003-10-22 06:53:19 +00:00
mvl%exedo.nl ceadcb4de1 Try the scheme if no host is found when showing a cookie dialog. bug 209689, r=dwitte, sr=darin 2003-10-10 15:08:43 +00:00
mvl%exedo.nl 43a7507a05 Fix typos 2003-09-11 17:02:32 +00:00
mvl%exedo.nl b2a4670f8f Ignore bogus lines that old builds can create when reading cookperm.txt. bug 215461. r=dwitte, sr=darin 2003-09-11 16:56:04 +00:00
mvl%exedo.nl 4471172a59 Followup to bug 217636, assertion is the wrong way around. Debug only. r=dwitte, sr=darin, a=asa 2003-09-03 20:45:23 +00:00
mvl%exedo.nl d50e7e7202 Bug 217636, fix cookperm.txt indexes. r=dwitte, sr=darin, a=asa 2003-08-29 17:13:40 +00:00
dwitte%stanford.edu 0348122ca5 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.
2003-07-11 00:04:02 +00:00
darin%netscape.com bae7bd0843 MSVC++ uses old-school variable scoping with |for| loop initializers. fixes win32 bustage. 2003-07-09 01:29:51 +00:00
dwitte%stanford.edu ee64b32c3e 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.
2003-07-09 00:20:57 +00:00
timeless%mozdev.org e68310fe9e Bug 200697 - Make nsPermissionManager use hashtables, decrease memory used
patch by dwitte@stanford.edu r=bsmedberg@covad.net sr=alecf a=asa
2003-04-25 20:13:05 +00:00
dmose%mozilla.org e1e383cfa8 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 2003-04-22 23:33:31 +00:00
cbiesinger%web.de 3544502fde 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. 2003-04-04 13:20:37 +00:00
timeless%mozdev.org 17be30a1b5 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
2003-03-26 00:46:32 +00:00