Commit Graph

238 Commits

Author SHA1 Message Date
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
Aryeh Gregor
963057b5ac Bug 782252 - Use NS_FAILED instead of boolean test for ToInteger()/ToFloat(); r=ehsan 2012-08-13 16:49:48 +03:00
Mike Hommey
c1b35e7b2a Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Aryeh Gregor
2e7996f8d1 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
57c0ad57fb Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Gregor Wagner
bdf70a2faf 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
d890fdb95e Bug 775817 - Update [most] tests to use the new permission manager api. r=sicking 2012-07-23 11:08:07 -07:00
Mounir Lamouri
8dd15b6732 Bug 774819 - Handle system principals in nsPermissionManager when taking principals. r=sicking 2012-07-18 08:24:01 -07:00
Mounir Lamouri
3ae2b86ae9 Bug 769586 - Make PopupWindowManager using principal to test permissions instead of URI. r=sicking 2012-07-15 18:37:31 -07:00
David Zbarsky
dc54928699 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
Nathan Froyd
5b30baa4c3 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Mounir Lamouri
ea613037ec Bug 769583 - Add methods to nsIPermissionManager to take principals instead of URIs. r=sicking 2012-07-09 12:26:12 +02:00
David Zbarsky
cd3c58ee76 Bug 763350 - Clean up some includes in content/ and dom/ r=smaug 2012-07-01 16:45:59 -07:00
Justin Lebar
4c3ea02bd1 Bug 769585 - Fix vim modelines. DONTBUILD rs=mrbkap 2012-06-29 12:42:59 +02:00
David Rajchenbach-Teller
6f078e357d Bug 702344 - Async requests for nsPermissionManager::RemoveAll();r=mak 2012-04-30 18:21:50 +02:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Benjamin Smedberg
2187798a40 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
Geoff Lankow
c4d2ef72bf Bug 718255 - Merge nsIPrefBranch2 with nsIPrefBranch - Part G, remove remaining uses of nsIPrefBranch2; r=bsmedberg 2012-01-18 23:23:28 +13:00
Rafael Ávila de Espíndola
fab5927386 Bug 711447 - Close connection in nsPermissionManager. r=dwitte.
--HG--
extra : rebase_source : 0df435f943142b7a09de36fdb03e01114ef20f15
2011-12-21 17:04:49 -05:00
Mark Banner
741ef0f1a0 Bug 557047 - Replace mailnews specific ifdef (MOZ_MAIL_NEWS) in cookie code with tests for a protocol flag. r=sdwilsh,sr=bzbarsky 2011-12-05 12:35:23 +00:00
Ed Morley
7bc582f20f Backout 4997c6f8b24d (bug 616542) for causing locally run mochitest-browser-chrome test runs to fail 2011-11-05 18:35:59 +00:00
Rail Aliiev
8a56fd9db2 Bug 616542 - Shorten file path length of mochitest; r=ted 2011-11-04 21:13:42 +00:00
Rafael Ávila de Espíndola
b9622317ab Bug 688913 - Finalize statements in extensions/cookie and toolkit/components/contentprefs. r=mak. 2011-10-28 10:55:20 -04:00
Ehsan Akhgari
2a602a5685 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
d8e503c38b 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
Michael Wu
990540dee3 Bug 676188 - Misc misuses of PRBool caught by the compiler, r=jimm,jst,bz,dougt,roc,mak 2011-08-30 11:55:14 -07:00
Benjamin Stover
2cfa2fc739 Bug 674615 Remove nsPermissionManager's GetSingleton r=dwitte 2011-08-30 10:45:09 -07:00
Benjamin Smedberg
22f2972acb Merge the electrolysis branch to mozilla-central. 2011-08-19 10:15:52 -04:00
Malini Das
a0832b693a Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- plain tests 2/2. r=jmaher, a=test-only 2011-08-12 12:21:44 -04:00
Benjamin Smedberg
9432e1edba 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
Michael Wu
6a28121ce1 Bug 671417 - Incorrect use of PRBool when other types are more appropriate or vice versa, r=bz,ehsan,dwitte,joe,vlad,luke,mak,roc 2011-07-26 23:43:37 -07:00
Josh Matthews
d6d7c63173 Bug 621367 - nsPermissionManager doesn't allow enumerator access in content processes (r=dwitte) 2011-07-13 18:03:44 +02:00
Chris Coulson
fcf6940d0c Test case for bug 667087; r=dwitte 2011-06-28 17:40:17 -04:00
Ed Morley
223c46b36b Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted 2011-06-12 03:49:00 -04:00
Ehsan Akhgari
143a202de9 Bug 650522 - Test handling of host names with a single character before a dot correctly; r=dwitte 2011-04-18 18:27:37 -04:00
Joel Maher
6993636556 Bug 616999. Xpcshell manifest support; manifest files. r=ted, a=test-only 2011-05-20 11:54:01 -04:00
Ehsan Akhgari
680e9b757e Bug 649012 - Fix some flaky mochitests which rely on non-zero timeout values; rs=ted 2011-04-16 19:39:34 -04:00
Serge Gautherie
692dce2d14 Bug 228448 - Remove '=='/'!=' 'PR_FALSE'/'PR_TRUE'; (Hv1) /extensions/*.
r=cbiesinger.
2011-04-14 17:25:00 +02:00
Jonathan Kew
20281c115e Backed out changeset 80451fb8f11c (bug 585152) as per discussion in the bug. 2011-04-13 14:35:06 +01:00
Paul Biggar
bc3d36f617 Bug 585152 - Reland Date.now() fractional changes, along with fixed tests. (r=jwalden,dolske,gavin, rs=jwalden)
For the tests, I put a Math.floor around anything which looked like it did string concatenation. In principal that was r+ by dolske and gavin, and jwalden r+ed the extension to the rest of the tests.

Backout policy: the jsdate.cpp changes can be backed out trivially. The test changes should backout cleanly, but we're not hosed if they don't.
2010-08-06 13:35:00 -07:00
L. David Baron
52ee86d378 Backout changeset b583111a88aa (bug 585152) for causing mochitest-browser-chrome orange on opt builds. 2011-04-12 01:29:41 -07:00
Paul Biggar
c0aeeea187 Bug 585152 - Reland Date.now() fractional changes, along with fixed tests. (r=jwalden,dolske,gavin, rs=jwalden)
For the tests, I put a Math.floor around anything which looked like it did string concatenation. In principal that was r+ by dolske and gavin, and jwalden r+ed the extension to the rest of the tests.

Backout policy: the jsdate.cpp changes can be backed out trivially. The test changes should backout cleanly, but we're not hosed if they don't.
2010-08-06 13:35:00 -07:00
Matheus Kerschbaum
93480c6366 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now; r=bsmedberg 2011-04-02 19:14:00 -07:00
Shawn Wilsher
4f383e2f5d Bug 645099 - Stop using [deprecated] Storage methods in the permission manager
r=bz
2011-03-31 10:19:31 -07:00
Kyle Huey
61ff9410c4 Backed out changeset a5dbece71e4a due to test failures 2011-03-31 09:11:21 -04:00
Matheus Kerschbaum
1f81122982 Bug 639754 - Remove MOZ_IPC checks since IPC is always built now. r=bsmedberg 2011-03-31 07:22:55 -04:00
Josh Matthews
d0f1f79e8b Bug 619559 - Make permission manager notify observers in content processes. r=dwitte a=jst 2010-12-25 02:31:01 -05:00
Josh Matthews
8ab207648f Bug 618716 - Fix warnings in nsPermissionManager.cpp r=dwitte a=jst 2010-12-12 14:36:00 -05:00
Dan Witte
2685d64a45 Fix bug 616264. r=ehsan,sdwilsh, a=beta9+ 2010-12-22 13:50:56 -08:00
Dão Gottwald
305932379f Bug 617910 - Broken instanceof checks in head_cookies.js. r=sdwilsh 2010-12-09 20:10:30 +01:00
Dão Gottwald
a232bd091d browser_test_favicon.js doesn't use Firefox-specific API anymore, remove MOZ_PHOENIX ifdef
--HG--
extra : rebase_source : 1a1e84700c9f1a605d14d8b6ffd42a33bdbb62da
2010-11-29 14:35:29 +01:00
Dan Witte
ee902f29f9 Bug 612072 - Crash [@ nsCookieService::EnsureReadDomain(nsCString const&) ]. r=sdwilsh, a=betaN+ 2010-11-22 13:50:25 -08:00
Dan Witte
f66a56c850 Bug 547031 - Improve async error handling in cookies. Part 7: Tweak license boilerplates. r=sdwilsh, a=betaN+ 2010-11-12 09:32:36 -08:00
Dan Witte
b09a36ff06 Bug 547031 - Improve async error handling in cookies. Part 6: Implement async error handling. r=sdwilsh, a=betaN+ 2010-11-12 09:32:35 -08:00
Dan Witte
0b42ea484f Bug 547031 - Improve async error handling in cookies. Part 4: Fix SELECT bug in EnsureReadComplete(). r=sdwilsh, a=betaN+ 2010-11-12 09:32:35 -08:00
Dan Witte
4ac1130d65 Bug 547031 - Improve async error handling in cookies. Part 3: Get the sync database connection early so it can't fail. r=sdwilsh, a=betaN+ 2010-11-12 09:32:35 -08:00
Dan Witte
5390824121 Bug 547031 - Improve async error handling in cookies. Part 2: Clean up TryInitDB(). r=sdwilsh, a=betaN+ 2010-11-12 09:32:35 -08:00
Dan Witte
7550955b03 Bug 547031 - Improve async error handling in cookies. Part 1: Refactor to allow multiple DBStates. r=sdwilsh, a=betaN+ 2010-11-12 09:32:35 -08:00
Dan Witte
f108ef023f Bug 590843 - Fix bugs in purge logic. r=sdwilsh, a=final+ 2010-11-10 10:31:11 -08:00
Chris Jones
703c658a1c Bug 562424: Switch IPDL interfaces to infallible TArray. r=bent a=blocking 2010-11-08 20:49:00 -06:00
Dan Witte
4df35d9668 Bug 608422 - cookies.sqlite-wal takes too much space for Fennec. Add test. r=mfinkle, a=beta2+ 2010-11-02 15:56:20 -07:00
Dan Witte
f1c9396e04 Bug 605908 - test_parent.js leaks objects. Part 1: nsPermissionManager leak. r=jdm, a=sdwilsh 2010-10-21 11:36:14 -07:00
Dan Witte
de72081999 Bug 605671 - Intermittent failure in test_permmanager_notifications.js | exception thrown from do_timeout callback: ReferenceError: obs is not defined. r=jdm, a=test-only 2010-10-21 11:36:14 -07:00
Dan Witte
bfecb83756 Bug 599799 - Cookies are doubled when switching between FF3.6 and FF4beta. Part 3: make test_eviction.js tolerant to slow execution. r=sdwilsh, a=betaN+ 2010-10-19 17:24:53 -07:00
Dan Witte
24b845a1a0 Bug 599799 - Cookies are doubled when switching between FF3.6 and FF4beta. Part 2: migration tests. r=sdwilsh, a=betaN+ 2010-10-19 17:24:53 -07:00
Dan Witte
68ea23abd0 Bug 591447 - Cookie rowids may collide if PR_Now() winds backward. Part 3: test improvements. r=sdwilsh, a=betaN+ 2010-10-19 17:24:52 -07:00
Dan Witte
3b44c6986f Bug 595305 - Factor cookie third-party URI code into separate API. Tests. r=bent, a=betaN+ 2010-10-19 09:37:03 -07:00
Alon Zakai
eda9c383ed Add missing MOZ_IPC ifdef in e14e2cc7d786 a=bustage-fix 2010-10-09 20:07:57 -07:00
Alon Zakai
3fad238bbf Bug 599428 - Optimize permissions IPC. r=dwitte a=blocking-fennec 2010-10-09 11:07:38 -07:00
Dan Witte
d42bd3da0a Back out test changes due to Windows failure. a=bustage 2010-10-07 17:07:24 -07:00
Dan Witte
5ac89c40a1 Fix test bustage on Windows. a=bustage 2010-10-07 15:41:48 -07:00
Dan Witte
d35ee96b79 Bug 591447 - Cookie rowids may collide if PR_Now() winds backward. Part 3: test improvements. r=sdwilsh, a=beta8+ 2010-10-07 14:00:17 -07:00
Ehsan Akhgari
03894bd5c2 Bug 568816 - Switching out of privacy mode fails when privacy mode is enabled via the command line option 'privacy-toggle'; r=zpao,dolske,jimm sr=rstrong a=blocking-beta7+
--HG--
rename : browser/components/privatebrowsing/test/unit/test_0-privatebrowsing.js => browser/components/privatebrowsing/test/unit/do_test_0-privatebrowsing.js
rename : browser/components/privatebrowsing/test/unit/test_0-privatebrowsing.js => browser/components/privatebrowsing/test/unit/test_0-privatebrowsingwrapper.js
2010-10-02 11:53:37 -04:00
Ehsan Akhgari
ff11ef48ac Backed out changeset b08b684644a1 (bug 568816) because of Ts regression on Windows 2010-10-03 22:18:18 -04:00
Ehsan Akhgari
b4c63ec0a1 Bug 568816 - Switching out of privacy mode fails when privacy mode is enabled via the command line option 'privacy-toggle'; r=zpao,dolske sr=rstrong a=blocking-beta7+
--HG--
rename : browser/components/privatebrowsing/test/unit/test_0-privatebrowsing.js => browser/components/privatebrowsing/test/unit/do_test_0-privatebrowsing.js
rename : browser/components/privatebrowsing/test/unit/test_0-privatebrowsing.js => browser/components/privatebrowsing/test/unit/test_0-privatebrowsingwrapper.js
2010-10-02 11:53:37 -04:00
Dão Gottwald
1706c20845 Bug 587901 - test and nsSidebar.js fixes. r+a=dolske 2010-09-08 15:30:44 +02:00
Kyle Huey
aec23b90fe Backed out changeset 1633907c75b7 2010-09-08 07:39:35 -04:00
Dão Gottwald
f25a5f88b0 Bug 587901 - Remove favicon from Location Bar and add indicator for sites without identity information. r+a=dolske 2010-09-08 09:47:49 +02:00
Dan Witte
6bba1507c0 Bug 590611 - Raise cookies per basedomain limit to 150. r=sdwilsh, a=betaN+ 2010-09-01 16:27:10 -07:00
Jonas Sicking
1fb16b80d7 Fix missing comments from patch for bug 546857 2010-08-21 18:48:01 +02:00
Bobby Holley
ae9d0e0ff2 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
c8ed6b7843 Fix missing comments from patch for bug 546857 2010-08-20 17:50:35 -07:00
Jonas Sicking
f56b8d6804 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
efd0cccb18 Bug 580450 - Clean up IPC::URI. r=dwitte 2010-07-26 15:59:34 -04:00
Dan Witte
590da7c4c9 Bug 572223 - too much cookies.sqlite io. Part 8: test write + close + read combination. 2010-08-02 17:03:25 -07:00
Dan Witte
54322e823d Bug 572223 - too much cookies.sqlite io. Part 4: tests. r=sdwilsh 2010-07-29 12:17:43 -07:00
Dan Witte
dfcfc976fb Revert bug 572223 to fix creation of duplicate cookies. 2010-08-01 12:24:38 -07:00
Dan Witte
8528b7d534 Bug 572223 - too much cookies.sqlite io. Part 4: tests. r=sdwilsh 2010-07-29 12:17:43 -07:00
Chris Jones
d37c23f270 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
84a215c2da Bug 564535 - permission manager needs to be remoted [r=dwitte] 2010-07-15 10:04:25 -04:00
Dan Witte
b2c9e41036 Add new images to circumvent caching during tests. b=450450 2010-07-02 17:40:29 -07:00
Dan Witte
bd456200bd Switch from Cache-Control: no-cache to no-store to see if it fixes random orange. b=450450 2010-07-02 10:24:03 -07:00
Benjamin Smedberg
4d172dd53d Merge mozilla-central, including the Electrolysis changes, into the branch for bug 568691. 2010-07-01 11:55:57 -04:00
Benjamin Smedberg
abf280675d Testing fixes for bug 568691 - change xpcshell do_load_module to do_load_manifest, and switch the relevant tests to use manifests and the new function. 2010-06-25 10:43:25 -04:00
Benjamin Smedberg
762def30bb Merge mozilla-central into the static-xpcom-registration branch. 2010-06-23 17:26:25 -04:00
Dan Witte
28ea03e548 Bug 573061 - Add persistent cookie tests. Part 2: revise and add tests. r=sdwilsh 2010-06-21 17:50:35 -07:00
Benjamin Smedberg
f13550a209 Bug 568691 part B - mechanical changes to in-tree binary modules needed to get them building and registering correctly. After this patch, xpcshell appears to work. 2010-06-10 14:11:40 -04:00