Commit Graph

96 Commits

Author SHA1 Message Date
Mark Hammond
6a50186739 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
8ca63f18ef 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
09d2312322 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
cab87a0cce 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
5835e56afc 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
4fbed7888f Backed out changeset fa98df7a3493 (bug 702559) for xpcshell orange 2013-06-26 12:56:40 +01:00
David Rajchenbach-Teller
8115e2b5dd Bug 702559 - First implementation of mozIStorageAsyncConnection;r=mak 2013-06-26 05:45:49 -04:00
Benjamin Smedberg
26f4a9f225 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
e10a91cce0 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
ae7ec2eea5 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
66e862daca Bug 864206 - Use dom::Touch instead of nsIDOMTouch where possible r=Ms2ger 2013-05-17 13:17:53 -07:00
matekm
97c84bb143 Bug 784739 - Switch from NULL to nullptr in extensions/; r=ehsan 2013-04-02 21:06:20 -04:00
Mounir Lamouri
f846eae2ad Bug 815640 - Make permission manager aware of "file://". r=sicking 2013-02-04 17:10:28 +00:00
Mounir Lamouri
90cd5415ee 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
d328474123 Bug 823093 - Skip permission entries with invalid appId. r=sicking 2012-12-20 13:25:36 +01:00
Ryan VanderMeulen
d5d782111a Backed out changeset eb2f0c1fffc2 (bug 820613) for xpcshell failures.
--HG--
extra : rebase_source : 7fff4cec5a4d7839cd3ede5cd0322631e11f9d38
2013-01-26 14:05:31 -05:00
Shriram Kunchanapalli
5a7f15d5b3 Bug 820613 - Remove all references to shutdown-cleanse. r=bsmedberg 2013-01-17 00:40:56 +05:30
Mounir Lamouri
e1dc94f6a3 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
54459b6fea 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
337c26de98 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
b8ef9097c5 Bug 827895 - Settings app should not show the session permissions of apps, r=mounir 2013-01-10 21:23:39 +01:00
Andrea Marchesini
aef0354f7d 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
070ec313da 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
49a486f8ee 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
8cee541032 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
299de2e8df Backout 66a04865fe51 (bug 827050) for xpcshell orange on a CLOSED TREE 2013-01-07 11:37:10 +00:00
Andrea Marchesini
89ec9d93a7 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
1a0052f653 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
726d181e3b Backed out changeset 66a7359f9be2 (bug 791546) because it broke the build 2013-01-03 18:36:16 -05:00
Shriram Kunchanapalli
2239414ab6 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
e0523203c9 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
6d79cdc121 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
c2f8861934 Bug 785632 - Remove the permission manager workaround for Gaia. r=jlebar 2012-09-25 23:50:17 +01:00
Chris Jones
a9e25eb7d3 Back out bug 785632 for breaking several things (7de3b05cd7d8)
--HG--
extra : rebase_source : 316d258d39e86a760326c14f3196fff5319dc2b1
2012-09-25 21:21:35 -07:00
Mounir Lamouri
7bae845a1d Bug 785632 - Remove the permission manager workaround for Gaia. r=jlebar 2012-09-25 23:50:17 +01:00
Mike Habicher
4f1885c23e Bug 776934 - Add permissions check to camera API. r=jlebar 2012-09-21 06:32:18 -04:00
David Zbarsky
8a9b502147 Fix virtual dtor warning, no bug, blanket r=bz 2012-09-19 23:57:04 -04:00
Mounir Lamouri
7745ecab62 Bug 787717 - r=bsmith 2012-09-19 18:25:17 +01:00
Mounir Lamouri
e00045ebd8 Bug 724878 - Make nsPermissionManager DB access (except init) async. r=jlebar 2012-09-08 15:48:20 +02:00
Randell Jesup
29ac5c0b8c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Mounir Lamouri
994c0bc77a Bug 786296 - Remove permissions when an app is uninstalled. r=jlebar,fabrice 2012-08-31 11:34:28 -03:00
Mounir Lamouri
33fd35d389 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
8b14a87907 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
f2974f3cbd 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
fe72c430a5 Bug 777072 - 5/7 - Update IPC::Permission to use appId/isInBrowserElement. r=sicking 2012-08-23 11:38:01 -07:00
Mounir Lamouri
ccfaecab9f Bug 777072 - 4/7 - Update nsPermission to use appId/isInBrowserElement. r=sicking 2012-08-23 11:37:31 -07:00
Mounir Lamouri
86ed743386 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
b08e6d9c87 Bug 777072 - 2/7 - AddInternal() and CommonTestPermission() should use nsIPrincipal. r=sicking 2012-08-25 09:53:48 -07:00
Mounir Lamouri
801e6085c8 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
8c296bbcd4 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