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

1180 Коммитов

Автор SHA1 Сообщение Дата
Michael Layzell e757604c6f Bug 1173523 - Part 2: Tests for new methods nsIPrincipal::MatchesURI and nsIPrincipal::Matches, r=ehsan 2015-07-16 14:49:24 -04:00
Michael Layzell 9d564ec2dd Bug 1173523 - Part 1: Expose an nsIPrincipal from nsIPermission rather than a host string, appId, and isInBrowserElement, r=ehsan 2015-07-16 14:49:22 -04:00
Ehsan Akhgari 025cee7b63 Bug 1184397 - Release the observer service when the permission manager shuts down; r=jdm 2015-07-16 13:39:28 -04:00
Birunthan Mohanathas d029488550 Bug 1182408 - Part 2: Use nsTHashTable::Iterator in nsPermissionManager. r=ehsan 2015-07-15 12:58:08 -07:00
Birunthan Mohanathas 6329372a9d Bug 1182408 - Part 1: Move permission key checks out of loop. r=ehsan 2015-07-14 10:53:12 -07:00
Wes Kocher ff2f0d32cf Backed out 24 changesets (bug 1173523, bug 1172080, bug 817007, bug 1165263) for android reftest bustage CLOSED TREE
Backed out changeset 84fe04b2e7d1 (bug 1172080)
Backed out changeset 0ff004760a1f (bug 1172080)
Backed out changeset af147585ad55 (bug 1165263)
Backed out changeset c3af8ebb6db0 (bug 1165263)
Backed out changeset cd3f33a888fe (bug 1165263)
Backed out changeset e5db39044a1e (bug 1165263)
Backed out changeset c01c9ed77061 (bug 1165263)
Backed out changeset fb723aaa4267 (bug 1165263)
Backed out changeset f754e52e74dc (bug 1165263)
Backed out changeset c6bda3a0afd6 (bug 817007)
Backed out changeset bfa100253349 (bug 817007)
Backed out changeset b787b3f9aadc (bug 1173523)
Backed out changeset 4a0676b73f77 (bug 1173523)
Backed out changeset 82034a4560c5 (bug 1173523)
Backed out changeset 4bdb91114c7a (bug 1173523)
Backed out changeset 72406261eccc (bug 1173523)
Backed out changeset 541b6faf7196 (bug 1173523)
Backed out changeset 1caac4569616 (bug 1173523)
Backed out changeset 0d4f9f9e1b4e (bug 1173523)
Backed out changeset 2d5661eb966c (bug 1173523)
Backed out changeset 89833c0bb0cd (bug 1173523)
Backed out changeset ea64d70eacfe (bug 1173523)
Backed out changeset a8e4f1c0c445 (bug 1173523)
Backed out changeset cf498d466b85 (bug 1173523)
2015-07-14 14:00:32 -07:00
Michael Layzell 52f1ea5402 Bug 1172080 - Part 2: Use ^ instead of ! to delimit originAttributes from the URI in nsIPrincipal.origin, r=bholley 2015-07-14 15:06:42 -04:00
Michael Layzell 4e4701aa65 Bug 1165263 - Part 2: Update unit tests for nsPermissionManager to reflect new internals, r=ehsan 2015-07-14 15:06:34 -04:00
Michael Layzell c05bef0d22 Bug 1165263 - Part 1: Update nsPermissionManager to use origins instead of hosts internally, r=ehsan 2015-07-14 15:06:33 -04:00
Michael Layzell 369527316f Bug 817007 - Part 1: Remove <file> hack from the permission manager, r=ehsan 2015-07-14 15:06:31 -04:00
Michael Layzell 18a0810f4e Bug 1173523 - Part 10: Update nsIPermission and nsIPermissionManager tests to use new API for nsIPermission, r=ehsan 2015-07-14 15:06:26 -04:00
Michael Layzell 567aeb78e9 Bug 1173523 - Part 2: Tests for new methods nsIPrincipal::MatchesURI and nsIPrincipal::Matches, r=ehsan 2015-07-14 15:06:16 -04:00
Michael Layzell 56a5f8273e Bug 1173523 - Part 1: Expose an nsIPrincipal from nsIPermission rather than a host string, appId, and isInBrowserElement, r=ehsan 2015-07-14 15:06:15 -04: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
Geoff Brown 52d4e225a0 Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06: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
Juan Gomez 258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Michael Layzell 6265522c59 Bug 1170200 - Part 2: Update JavaScript consumers of nsIPermissionManager::Remove; r=ehsan 2015-07-03 17:12:27 -04:00
Michael Layzell 3eb46d5372 Bug 1170200 - Part 1: Change the API for nsIPermissionManager::Remove() to accept a URI instead of a string; r=ehsan 2015-07-03 17:12:17 -04:00
Ehsan Akhgari 4484832cb5 Backout bug 1170200 because of test failures on a CLOSED TREE 2015-07-03 16:43:47 -04:00
Michael Layzell 39a5778c7e Bug 1170200 - Part 2: Update JavaScript consumers of nsIPermissionManager::Remove; r=ehsan 2015-07-03 14:18:23 -04:00
Michael Layzell 0e9fa18ac8 Bug 1170200 - Part 1: Change the API for nsIPermissionManager::Remove() to accept a URI instead of a string; r=ehsan 2015-07-03 14:17:11 -04:00
Ryan VanderMeulen 5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez 702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Mike Perry 97f6857b2c Bug 967812 - Pref to make Permissions Manager memory-only. r=ehsan
This patch exposes a pref 'permissions.memory_only' that isolates the
permissions manager to memory, preventing it from writing to disk.
2015-06-11 11:00:00 -04:00
Christoph Kerschbaumer 6b24d4a573 Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update newChannel2 (r=sicking,paolo) 2015-05-21 19:52:03 -07:00
Rex Hung 5ad5ccc859 Bug 1124126 - Retry database connection for the case of corrupted permissions.sqlite. r=bsmedberg 2015-05-20 23:09:00 -04:00
Bobby Holley 3b6ba803a8 Bug 1165162 - Serialize originSuffix into .origin. r=gabor,sr=sicking
We also provide an opt-out for the original behavior, and use it in various
consumers that look like they need fixing up. Most of the usage here is in
code with persistence considerations, where we may need some sort of migration
path.
2015-05-20 17:11:49 -07:00
Jed Davis ead6235994 Bug 1157950 - Don't opt in to permission DB corruption and data loss. r=ehsan 2015-04-24 14:28:00 -04: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
Bobby Holley e61971d74b Bug 1164292 - Switch nsIPrincipal::origin to ACString. r=gabor 2015-05-15 11:51:51 -07: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
David Major ebde6b9f4f Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
--HG--
extra : rebase_source : 0c47c99bb8b92f8361a51fd81b20a2cc8647a986
2015-04-27 19:59:27 -04:00
Andrea Marchesini e6f385fb3d Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Jonathan Griffin d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Chih-Kai (Patrick) Wang 22287fd2c7 Bug 1129315 - require app processes update permissions after forked from nuwa. r=jdm 2015-03-12 16:53:22 +08:00
Anish 45de248a8b Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher,mwargers 2015-02-19 11:53:01 -05:00
Carsten "Tomcat" Book c0d53e2918 Backed out changeset 6885e993936a (bug 1056851) for crashtest failures 2015-02-19 15:02:05 +01:00
Anish e7006d8a59 Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher 2015-02-19 07:26:41 -05:00
Christoph Kerschbaumer e83e426f75 Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - in extensions/ (r=ehsan) 2015-02-17 10:09:16 -08:00
Magnus Melin cb8cf22e82 Bug 1073095 - nsPermissionManager.cpp references a browser path by default in kDefaultsUrlPrefName. Make the permissions.manager.defaultsUrl pref overridable. r=benjamin
--HG--
rename : browser/app/default_permissions => browser/app/permissions
2015-02-13 23:32:41 +02:00
Ehsan Akhgari 1e88271572 Bug 1119268 - Mark virtual overridden functions as MOZ_OVERRIDE in misc code; r=bsmedberg 2015-01-12 23:26:30 -05:00
Wes Kocher 4a8e595770 Backout c034dba7a417 2015-01-12 14:46:48 -08:00
Ehsan Akhgari d517a30886 Bug 1119268 - Mark virtual overridden functions as MOZ_OVERRIDE in misc code; r=bsmedberg 2015-01-12 16:35:06 -05:00
Ehsan Akhgari 4354953b4f Bug 1118486 - Part 1: Use `= delete` instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -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 MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Gavin Sharp 85abd2f149 Bug 575918: enable IPC tests on Mac since they work now, r=bsmedberg
--HG--
extra : rebase_source : 5b7214167249b3c276a9e240d867ce34193a5953
2015-01-02 17:00:20 -08:00
Ehsan Akhgari b47acf7317 Bug 1116542 - Remove the code to handle shutdown-cleanse from the permission manager; r=jdm
shutdown-cleanse has not been a thing for quite a while.
2014-12-31 09:31:28 -05:00
Christoph Kerschbaumer 80e49c0256 Bug 1087730: Make JS callers of ios.newChannel call ios.newChannel2 in extensions/ (r=mmc) 2014-10-24 14:51:41 -07:00
Chris Peterson 22d0c4b343 Bug 1107814 - Part 1: Mark more directories as FAIL_ON_WARNINGS for all compilers. r=gps 2014-12-04 16:24:03 -08:00
Fernando Jiménez b7f5cb74cd Bug 1068635 - [Loop] Not remembering + allow access to the contact list, 2nd time Loop is started -> Crash./mach build Tests. r=baku 2014-10-17 15:47:36 +02:00
Fernando Jiménez f59b7b0589 Bug 1068635 - [Loop] Not remembering + allow access to the contact list, 2nd time Loop is started -> Crash!. r=baku, sicking 2014-10-17 15:47:35 +02:00
Boris Zbarsky 427f80e0de Bug 1082843. Don't import Promise.jsm into the global scope in xpcshell tests. r=yoric 2014-10-15 00:42:54 -04:00
Andrew Halberstadt d292ee73f1 Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Jason Duell 773f767321 Bug 966713 - Intermittent test_cookies_read.js times out. r=mcmanus 2014-09-15 12:42:00 +02:00
Shu-yu Guo 59ccd2fecb Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
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
Trevor Saunders d75ed5bf7f bug 1059490 - mark more classes MOZ_FINAL r=froydnj 2014-08-27 14:26:48 -04:00
Ted Clancy (:tedders1) 5089d86b4a Bug 1000315 - Part 8: Various tests skip uninstall prompt. r=sicking 2014-06-12 09:53:54 -07:00
Peter Van der Beken aa69331685 Bug 1041808 - Thousands of about:blank windows when cookies policy set to "Keep until: I close Firefox". r=smaug.
--HG--
extra : rebase_source : 8706fb4ca98b9d01893dd4544d395161a4277474
2014-08-13 17:55:28 +02:00
Mike Hommey 5f6ba110e6 Bug 1043802 - Remove TOOLS_DIRS and TEST_TOOLS_DIRS. r=gps 2014-07-29 08:55:55 +09:00
Benoit Jacob f5daf8e5a1 Bug 1028588 - Fix dangerous public destructors in extensions/ - r=ehsan 2014-06-23 18:40:02 -04:00
Nathan Froyd 84041459a1 Bug 1003306 - part 2 - use services::GetPermissionManager everywhere that's appropriate; r=ehsan 2014-04-29 13:27:26 -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
Marco Castelluccio 1629623676 Bug 993326 - Use SpecialPowers.autoConfirmAppInstall to confirm app installation and stop using the browser.mozApps.installer.dry_run pref. r=fabrice 2014-04-17 16:43:04 -04:00
Neil Rashbrook 757dacf9be Bug 514280 Remove concrete classes from interface maps r=bsmedberg 2014-03-28 08:40:13 +00:00
Bill McCloskey fd05f3eb04 Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 21:38:19 -07:00
Wes Kocher 3b83e5bb22 Backed out changeset 88425ad0f06a (bug 982828) for introducing various mochitest-5 failures on a CLOSED TREE
* * *
Backed out changeset 94f9ebdc6662 (bug 982828)
2014-03-13 19:41:21 -07:00
Bill McCloskey e784b5aef6 Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 15:41:41 -07:00
Bill McCloskey 006786a6b4 Backed out changeset d6261f65070a 2014-03-13 15:52:27 -07:00
Bill McCloskey ed100f425c Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 15:41:41 -07:00
Vaibhav Agarwal c75ff964a1 Bug 971132 - B2G mochitests should use the new manifest format for runtests; r=jmaher 2014-03-13 10:40:10 -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
Magnus Melin 93cec0dbc6 Bug 958865 - extensions/cookie/test should use standard Services.perms. r=jdm 2014-01-12 13:06:20 +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
Trevor Saunders a5e1ff750d bug 941736 - unify sources in extensions/ r=ehsan 2013-11-21 12:44:11 -05:00
Mike Conley c5eff3cccc Bug 457296 - Allow nsIPermissionManager to accept mailto URLs. r=jdm. 2013-11-18 23:34:00 -05:00
Mike Hommey 2812d11fce Bug 939632 - Remove LIBRARY_NAME for leaf libraries. r=gps
Landing on a CLOSED TREE.
2013-11-19 11:50:54 +09:00
Mike Hommey e06d795c71 Bug 939074 - Remove most LIBXUL_LIBRARY. rs=gps 2013-11-19 11:48:10 +09:00
Mike Hommey 26bc04d200 Bug 939044 - Rename remaining MODULE definitions to XPIDL_MODULE. r=mshal 2013-11-19 11:47:43 +09:00
Mike Hommey e80e877ab7 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Mike Hommey ffe0380912 Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps 2013-11-19 11:47:14 +09: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
Mike Hommey b000a846c2 Bug 929905 - Consolidate sources in moz.build. r=gps 2013-10-25 08:23:05 +09:00
Brian O'Keefe 9c9d71fddb Bug 928709 - Convert chromium-config.mk to mozbuild, r=mshal 2013-10-02 13:17:55 -04:00
Ed Morley 19c3a05bcd Backed out changeset b2e1c92b7e39 (bug 899495) for build failures on a CLOSED TREE 2013-10-09 15:06:24 +01:00
Genti Tola e1bc398e31 Bug 899495 - Correct the usage patterns of TestPermissionFromPrincipal in nsPermissionManager. r=mounir 2013-10-07 12:34:31 +02:00
Ms2ger f4153f40d4 Bug 900980 - Part a: Move unconditional assignments to EXPORT_LIBRARY to moz.build; rs=gps 2013-10-03 09:11:13 +02:00
Ms2ger 1ee1f27aa3 Bug 922268 - Remove empty makefiles; r=gps 2013-10-03 09:10:00 +02: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
Gregory Szorc 54c1de66d6 Bug 920223 - Part 3: Mass convert MOCHITEST_BROWSER_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:06 +02:00