Commit Graph

518 Commits

Author SHA1 Message Date
Justin Lebar
15bec44d6e Bug 806168 - Test for bugs 802366 and 806127. r=bent
--HG--
rename : dom/indexedDB/test/test_webapp_clearBrowserData.html => dom/indexedDB/test/webapp_clearBrowserData.js
extra : rebase_source : baa5325286fa456eaf5c828b4a59a0ba57680e21
2012-10-30 15:55:06 -04:00
Jan Varga
922043c200 Bug 786688 - Part 3: Automatic tests. r=sicking 2012-10-30 07:12:18 +01:00
Jan Varga
118e4386f6 Bug 786688 - Part 2: Code cleanup. r=sicking 2012-10-30 07:11:58 +01:00
Jonas Sicking
6118c870a6 Bug 786688 - Part 1: Add chrome only openForPrincipal() and deleteForPrincipal(). r=bent 2012-10-30 07:07:09 +01:00
Ben Turner
f28b7974ea Bug 786295 - 'Delete IndexedDB related to an app when uninstalled'. r=bz+khuey+sicking. 2012-10-23 09:31:19 -07:00
Doug Turner
4a040cfbad Bug 793955, 802867 - DeviceStorage files returned by DeviceStorage.get() don't always have lastModifiedDate. r=bent. a=blocking-basecamp 2012-10-18 11:29:32 -07:00
Bill McCloskey
0728920867 Bug 714050 - Add support for optional JS helper threads (r=luke) 2012-10-16 11:57:09 -07:00
Till Schneidereit
fd911d77cf Bug 784400 - Bump heap size of IndexedDB JSRuntime to deal with heap size increase caused by self-hosting code. r=luke 2012-10-11 14:43:00 +02:00
Ehsan Akhgari
8f596b4339 Bug 799126 - Rename ClearRecentHistory to ForgetAboutSite; r=jdm
--HG--
rename : browser/components/privatebrowsing/src/ClearRecentHistory.jsm => browser/components/privatebrowsing/src/ForgetAboutSite.jsm
2012-10-08 11:55:41 -04:00
Nicholas Nethercote
9dd67d2d7e Bug 793076 (part 1) - Remove unnecessary |cx| parameters. r=jwalden.
--HG--
extra : rebase_source : 0cfe86ca3b2de60b0097f6cd4686dfabe6748897
2012-09-20 21:41:49 -07:00
Kyle Huey
3b1062dc73 Bug 797889: Make sure IndexedDB does not send messages to thechild after it has begun shutting down. r=bent 2012-10-05 12:09:33 -07:00
Ehsan Akhgari
803b082135 Bug 774963 - Remove removeDataFromDomain from nsIPrivateBrowsingService, and put it in its own JS module, ClearRecentHistory; r=jdm 2012-10-03 11:29:10 -04:00
Kyle Huey
55ffd0e4d8 Bug 780778: Make sure we already release stuff on the right thread. r=bent
--HG--
extra : rebase_source : 554edc65d83af084a26679d046a90d38f499e142
2012-10-03 12:05:20 -07:00
Isaac Aggrey
a53c93b026 Bug 795351: Replace LL_MAXINT, LL_MININT, LL_MAXUINT with stdint versions; r=ehsan 2012-09-28 14:55:23 -05:00
Isaac Aggrey
0cc4b12d36 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Terrence Cole
185355684f Bug 791322 - Move Rooted to js:: namespace; r=billm
These should not be part of the public API.

--HG--
extra : rebase_source : 00a69ee54f06e3f557cd9ec2f3b059df10aa32df
2012-09-24 18:08:22 -07:00
Bobby Holley
5af5a73d3d Bug 792036 - Automated fixups. r=mccr8
find /files/mozilla/build/d/_tests/testing/mochitest/tests/ | egrep "\.(xhtml|html|xml|js)$" | grep -v SimpleTest | grep -vi mochikit | grep -v simpleThread | grep -v test_ipc_messagemanager_blob.html | grep -v "indexedDB/test" | xargs grep -l Components |  xargs grep -L enablePrivilege | perl -pe 's#.*mochitest/tests/##' | xargs perl -p -i.bakkk -e 's/Components\.interfaces(\s|;|\.|\[)/SpecialPowers\.Ci$1/g, s/SpecialPowers\.wrap\(Components\)\.(.)(lasses|tils|nterfaces|esults)/SpecialPowers.C$1/g, s/(?<![\.a-zA-Z])Components/SpecialPowers\.Components/g, s/window\.Components/window\.SpecialPowers\.Components/g'
2012-09-24 14:46:29 +02:00
Bobby Holley
4d82dab5b4 Bug 792036 - Expose |Components| to content in the indexedDB test harness. r=bent 2012-09-24 14:46:27 +02:00
Ben Turner
637587502a Bug 792834 - 'Make sure to always set errors on failed requests'. r=khuey. 2012-09-20 11:20:15 -07:00
Ben Turner
61a19fad51 Bug 792833 - 'Do not unset current transaction until after savepoint has been released'. r=khuey. 2012-09-20 09:26:58 -07:00
Kyle Huey
adcac0600c Bug 774250: Use GetPath instead of GetNativePath so that IndexedDB works for people with non-ASCII usernames. r=bent 2012-09-19 14:02:08 -07:00
Ehsan Akhgari
cd2f4f62af Backout changeset c1cd7da16cd6 (bug 774250) for Linux Moth orange
--HG--
extra : rebase_source : 00e260bc4a75c6780c7863121cfc170f960ae010
2012-09-19 20:25:56 -04:00
Kyle Huey
bd5877ee3f Bug 774250: Use GetPath instead of GetNativePath so that IndexedDB works for people with non-ASCII usernames. r=bent
--HG--
extra : rebase_source : 644ec1830e0725e37ee4cceefd113b61b64158a3
2012-09-19 14:02:08 -07:00
Koosha Khajeh Moogahi
e98cd6bf45 Bug 788242: Implement and make use of void versions of NS_ENSURE_* macros; r=ehsan,bsmedberg 2012-09-14 14:30:31 +04:30
Ms2ger
10ec580e54 Bug 787933 - Stop using stdin types in IPC code; r=bsmedberg+cjones sr=cjones 2012-09-17 10:37:20 +02:00
Nathan Froyd
9b227bf10d Bug 786703 - fix dom/ build failures from introducing PARALLEL_DIRS; r=glandium 2012-09-11 07:47:42 -04:00
Daniel Holbert
f8dfa24152 Bug 789382: Change nsIScriptError methods init() and initWithWindowID() to take nsAString, rather than wchar / PRUnichar*. r=bz sr=bsmedberg 2012-09-09 16:29:12 -07:00
Randell Jesup
29ac5c0b8c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Jonas Sicking
a33daca88f Bug 769880: Make createIndex throw InvalidAccessError instead of NotSupportedError. r=khuey 2012-08-31 18:33:24 -03:00
Kyle Huey
0baaffe99f Bug 687332: Part 2 - Move event handlers off of DOM objects and keep track of them solely in the event listener manager. r=smaug,bz 2012-08-30 20:45:16 -07:00
Ben Turner
54bdae8e6b Bug 786771 - Fix for 'ASSERTION: Must have an actor here'. r=mrbkap.
--HG--
extra : transplant_source : %9D%D0o%D2%C7%9F%22%5E%21%91%B4%A0ly%60%FE%CA%17%FAP
2012-08-29 17:50:28 -07:00
Mounir Lamouri
816d52b077 No bug - Update tests for bug 756645 to use permissions instead of whitelist in prefs. r=bent
--HG--
extra : rebase_source : f05215f2c72538a3b5bb4382710c1fa5f9cc1759
2012-08-28 14:05:33 -03:00
Ben Turner
3fbf8c41f7 Bug 786003 - 'Fix file handle leak in nsDOMFileReader, add tests to IndexedDB'. r=jst.
--HG--
extra : transplant_source : %FB%7Ew%94%1C%9D%29%DD%B9%08%EC%FC%E5N%B7P%3F.1%C9
2012-08-28 07:59:18 -07:00
Mounir Lamouri
ff8261b707 Bug 756645 - Implement IndexedDB apps isolation. r=bent 2012-08-28 09:46:46 -03:00
Rafael Ávila de Espíndola
fa9b9c167a Bug 786148 - s/IPC/ipc/. r=ted.
This makes our builds a bit more reproducible. Without it when processing

#include "IPC/IPCMessageUtils.h

we end up in

#include "ShadowLayers.h"

which in the final XUL translates into the symbol (run nm -a to see it):

 - 00 0000   SOL ../../../../gfx/layers/IPC/ShadowLayers.h

now when some file in gfx/layers/ipc does

#include "ShadowLayres.h"

the file found is the local one with the lowercase directory name and we end up
with

 - 00 0000   SOL ../../../../gfx/layers/ipc/ShadowLayers.h

--HG--
extra : rebase_source : 96c68f6a3448eedaa280039960df911a9c707cac
2012-08-28 08:41:04 -04:00
Matt Brubeck
eb061fb9e8 Back out changeset 5ff334b7781d (bug 786003) because of test failures on Windows on a CLOSED TREE 2012-08-27 16:28:51 -07:00
Ben Turner
0c20914759 Bug 786003 - 'Add a few extra tests for blobs in IndexedDB'. r=jst. 2012-08-27 12:40:06 -07:00
Ben Turner
b6699a748b Bug 770046 - 'test_ipc.html does not notice failures'. r=khuey. 2012-08-27 11:10:34 -07:00
Philipp von Weitershausen
f47e2a9937 Bug 776825 - Separate message managers into senders and broadcasters. r=smaug
--HG--
rename : content/base/public/nsIFrameMessageManager.idl => content/base/public/nsIMessageManager.idl
2012-08-27 11:13:02 -03:00
Nathan Froyd
4c779437cc Bug 783357 - part 1: add XPIDL_FLAGS to make idl dependencies more explicit; r=khuey 2012-08-24 16:01:30 -04:00
Jan Varga
ed76a52681 Bug 763854 - Check file references (cleanup stored files) only when needed. r=bent 2012-08-24 11:51:33 -07:00
Ryan VanderMeulen
c09c1aabbe Backout 4bb90f8c6909 (bug 756645) due to Android opt M3 orange on a CLOSED TREE. 2012-08-23 22:54:15 -04:00
Luke Wagner
ce71e55555 Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Ryan VanderMeulen
6a130b0407 Merge m-c to inbound. 2012-08-23 19:50:46 -04:00
Ben Turner
2e0265c8ef Bug 784726 - 'Remove old IPC::URI'. r=cjones+khuey.
--HG--
rename : ipc/glue/IPCSerializableParams.ipdlh => ipc/glue/InputStreamParams.ipdlh
extra : transplant_source : %A6%BC%8B%8D%3A_%7Df%2B%FE%AA%94%81%AB%CAW%15K%A7%03
2012-08-23 12:33:46 -07:00
Mounir Lamouri
9d6c98efec Bug 756645 - Implement IndexedDB apps isolation. r=bent 2012-08-23 11:45:01 -07:00
Ehsan Akhgari
217645f36e Bug 579517 - Part 4: Manually rewrite some parts of the code base not covered by the automated conversion; r=bsmedberg 2012-08-22 11:59:54 -04: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
Bobby Holley
2c8383dd1e Bug 783173 - Fix test_ipc implementations to handle mandatory __exposedProps__. r=khuey 2012-08-17 09:21:17 -07:00
Aryeh Gregor
809d00113d Bug 782606 - Use NS_FAILED instead of boolean test (dom/indexedDB/, dom/workers/); r=khuey 2012-08-14 12:10:41 +03:00
Ehsan Akhgari
b457a9ddf0 Merge removal of nsnull 2012-08-14 11:29:00 -04:00
Aryeh Gregor
e2dd9c2028 Bug 626472 part 3 - Remove nsnull for good; r=ehsan 2012-08-12 13:43:47 +03:00
Honza Bambas
5fe7a22e2c Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
Kyle Huey
5f75ce7335 Bug 781700: Revert test changes. 2012-08-10 15:57:59 -07:00
Kyle Huey
d6ed5b18de Bug 781700: Disable failing test in xpcshell. 2012-08-10 11:04:16 -07:00
Kyle Huey
018dc47367 Bug 781700: Don't hold strong references to databases from the synchronization queue, so that GCing a database will unblock waiting operations. r=bent
--HG--
extra : rebase_source : 2f1b2405ffc91831d33eb91e4b2d61c2b1ac872b
2012-08-10 09:15:02 -07:00
Aryeh Gregor
982100775b Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Kyle Huey
00e79dfadf Bug 775206. r=bent 2012-08-09 18:06:21 -07:00
Ed Morley
36e594f3ce Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-08-08 17:18:26 +01:00
Johnny Stenback
8bb3a5943a Backing out 77e5cdc7af9a due to it landing w/o following our code checkin process. 2012-08-07 09:11:04 -07:00
Ms2ger
c861fd0028 Bug 743573 - Fix a number of build warnings in dom/; r=mounir 2012-08-07 09:06:29 +02:00
Ms2ger
004e85239d Bug 770046 - Disable test. 2012-07-16 18:15:36 +02:00
Ms2ger
cb4d106015 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Mike Hommey
c1b35e7b2a Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Ed Morley
4eb11bee72 Revert inbound to 3d5d1daa2505 to stop OS X M5 failures (backout not clean/could have been a bad merge) on a CLOSED TREE 2012-08-04 18:05:15 +01:00
Ms2ger
b927c10310 Bug 716822 - Move attributes and methods on nsIDOMNSEvent to nsIDOMEvent; r=smaug 2012-08-04 09:44:00 +02:00
Ben Turner
98a57bfb9c Bug 778968 - 'Avoid stat-ing remote blobs on the main thread'. r=janv.
--HG--
extra : transplant_source : %90%87%047%07BA%97%E0%F1n%1DY%08D%7C%E39%20%0F
2012-08-02 23:25:30 -07:00
Ben Turner
f8dee3f4cb Backed out changeset 46653198caac 2012-08-02 21:53:03 -07:00
Ben Turner
b77c1c5db1 Bug 778968 - 'Avoid stat-ing remote blobs on the main thread'. r=janv. 2012-08-02 13:42:30 -07:00
Ben Turner
1ef4c0de5b Bug 759427 - 'Multiprocess blob support for MessageManager and IndexedDB'. r=smaug+janv+khuey (rs=sicking for nsBlobURI changes).
--HG--
extra : transplant_source : %95%B5y%11%C5%AB%D9%CF%FF%7C%5E%BB%E5%DA%F5j%83o%29%EB
2012-08-01 23:02:29 -07:00
Eric Faust
6d4e293e26 Bug 752223 - Implement JS_NumberValue(), replacing JS_NewNumberValue(). (r=luke) 2012-08-01 17:59:47 -07:00
Jan Varga
8ddf4945c0 Bug 780625 - Followup fix for "Don't install quota handlers on chrome databases". r=bent 2012-08-08 06:35:48 +02:00
Kyle Huey
e55940e70c Bug 779638: Delay dropping the transaction until later to avoid races. r=bent 2012-08-01 14:15:12 -07:00
Kyle Huey
d9f7b8ce1d Bug 754142: Don't install quota handlers on chrome databases. r=bent 2012-08-01 14:09:23 -07: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
Siddharth Agarwal
f98cae0130 Bustage fix from bug 769908 - remove trailing whitespace after a backslash 2012-07-24 18:58:51 +05:30
Sean DuBois
9010529313 Bug 769908 - Switch DIR_INSTALL to INSTALL. r=ted 2012-07-23 20:02:20 -04: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
Aryeh Gregor
0c8f5adf50 Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan 2012-07-20 14:16:17 +03:00
Ryan VanderMeulen
7ad11464cb Merge m-c to inbound. 2012-07-20 17:37:53 -04:00
Olli Pettay
c992398490 Bug 765163 - Implement code generator for simple DOM events, r=jst,khuey 2012-07-20 19:42:08 +03:00
Benjamin Peterson
22a7b2002f Bug 761723 - Save script sources to implement Function.prototype.toString. r=jorendorff,njn,jimb,jst,Ms2ger
--HG--
extra : rebase_source : de1b55647780a30f98fe84d29ee3cb4a437a3ece
2012-07-20 20:17:38 +02:00
Dão Gottwald
cea0e2a669 Bug 767133 - Add slide-in animation for arrow panels. r=Enn,Mossop 2012-07-18 16:15:24 +02:00
Kyle Huey
26d0df6160 Back out 353b4785836a which was landed even after the module owner explicitly said not to. r=me
--HG--
extra : rebase_source : ff4a63d2c56435d3aa6b0c572067878cfa09378c
2012-07-18 05:59:21 -07:00
Ms2ger
3832cfe5c5 Bug 770046 - Disable test. 2012-07-16 18:15:36 +02:00
Mounir Lamouri
62e6a8a535 Bug 769597 - IndexedDB should use nsIPermissionManager with principals. r=sicking 2012-07-15 18:35:47 -07:00
Ben Turner
6aa9644815 Bug 772700 - 'IndexedDB - OOP from a JS component or JSM doesn't work'. Disable xpcshell tests entirely until I can figure out how to enable them selectively. 2012-07-14 09:13:40 -04:00
Ben Turner
f44ed8784a Bug 772700 - 'IndexedDB - OOP from a JS component or JSM doesn't work'. r=khuey+mrbkap.
--HG--
rename : dom/indexedDB/test/unit/head_idb.js => dom/indexedDB/test/unit/head.js
extra : transplant_source : %5D1%15%CC%90%E0%F5%0D%0B%FDi%0B%B9YA%D4c%24%D42
2012-07-14 07:24:20 -04:00
Ms2ger
f73be635b4 Backout changeset 592bfc94e628 for X orange. 2012-07-14 11:23:52 +02:00
Ben Turner
c82cc8d4e1 Bug 772700 - 'IndexedDB - OOP from a JS component or JSM doesn't work'. r=khuey+mrbkap.
--HG--
rename : dom/indexedDB/test/unit/head_idb.js => dom/indexedDB/test/unit/head.js
extra : transplant_source : %217%FC%0D%A3%82%DB%F2DB%F1%5Dc%99%B9%C6j%E1U%A2
2012-07-13 23:05:58 -04:00
David Zbarsky
9f711d9f42 Bug 773128 - Fix some build warnings r=bent 2012-07-13 19:06:41 -07:00
Jan Varga
614d6f18db Bug 773182 - Remove unused db description parameter from IDB mochitests. r=sicking 2012-07-13 07:37:28 +02:00
Ehsan Akhgari
2cc2a9c45d Correct the initialization order in the IDBIndex constructor (no bug; DONTBUILD) 2012-07-11 00:25:47 -04:00
Jan Varga
2d731c29c7 Bug 771498 - FileHandle: getFile() should return a DOMRequest (instead of a FileRequest). r=sicking 2012-07-10 07:07:01 +02: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
Daniel Holbert
a9d9553ee3 Bug 771638 - Remove unused variables from IDBObjectStore::GetAddInfo. r=khuey 2012-07-06 14:11:44 -07:00
Kyle Huey
d1532c7382 Bug 765936. r=bent,peterv 2012-07-06 10:28:51 -07:00
Ben Turner
b5f82bb601 Bug 758357 - Only show prompt after 50mb of quota was reached. r=sicking 2012-07-05 14:11:48 -07:00
Daniel Holbert
c493338e00 Bug 770287: Reorder IDBIndex constructor init list to fix build warning. r=khuey 2012-07-03 14:09:35 -07:00