Commit Graph

96 Commits

Author SHA1 Message Date
Jan Varga
3efec9fd96 Bug 1089764 - Treat persistent storage as temporary storage; r=bent 2014-11-01 02:21:25 +01:00
Jan Varga
9519625048 Bug 1068787 - Quota usage not decreased when removing unsuccessfully copied files; r=bent 2014-10-28 20:06:54 +01:00
Jan Varga
b1e3edde39 Bug 1056939 - indexedDB.open fails for certain database names - part 2; r=bent 2014-10-13 21:12:25 +02:00
Ben Turner
e30152a851 Bug 994190 - 'Modify main-thread IndexedDB to use PBackground', r=khuey. 2014-09-26 16:21:57 -07:00
Ben Turner
4937da099f Backout bug 994190 and merge over some stuff that landed afterwards on a CLOSED TREE. 2014-09-17 19:36:01 -04:00
Ben Turner
aede706b17 Bug 994190 - 'Modify main-thread IndexedDB to use PBackground', r=khuey. 2014-09-13 12:12:19 -04:00
Ehsan Akhgari
99fed18e00 Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku 2014-09-01 18:26:43 -04:00
Tim Taubert
93552370c0 Bug 1028187 - Enable IndexedDB for about:looppanel and about:loopconversation, sharing an origin r=bz 2014-07-03 17:16:08 -07:00
Benoit Jacob
e7849f4c94 Bug 1035394 - Fix dangerous public destructors in dom - r=ehsan 2014-07-08 17:23:17 -04:00
Jan Varga
e4e43c0bee Bug 1006485 - Part a: Rename FileHandle to MutableFile and LockedFile to FileHandle; r=bent 2014-06-12 05:35:29 +02:00
Victor Porof
298ca2ed1b Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj 2014-05-23 17:12:29 -04:00
Luke Wagner
5fb0eca135 Bug 968272 - use less conservative temporary storage policy in QuotaManager (r=janv) 2014-05-20 17:19:59 -05:00
Kyle Huey
643d853aa4 Bug 996133: Remove unnecessary NS_DISPATCH_NORMAL arguments to NS_DispatchToMainThread. r=ehsan 2014-05-23 12:53:17 -07:00
Chris Peterson
80ee21aac6 Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE in dom. r=smaug 2014-04-20 00:36:40 -07:00
Jan Varga
e5fda4b6a0 Bug 984789 - FileHandle: Eliminate nsIFileStorage; r=bent 2014-05-07 16:33:02 +02:00
Jan Varga
43bc3fb64e Bug 975696 - Split ArchiveReader and FileHandle implementation into separate dirs. r=bent f=baku 2014-05-07 16:32:12 +02:00
Luke Wagner
b81aceaabb Bug 980447 - Follow-up fixes in clearStoragesForURI to address follow-up comments (r=janv) 2014-04-15 21:30:26 -05:00
Birunthan Mohanathas
eeb9aaaa94 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
Luke Wagner
d271fee400 Bug 980447 - Add persistenceType argument to nsIQuotaManager.clearStoragesForURI (r=janv) 2014-04-14 15:48:49 -05:00
Jeff Walden
3444928ec3 Bug 969165 - Convert Atomic<T> where T != bool but is used as a bool over to Atomic<bool>, now that it's supported, in dom/. r=bent 2014-02-06 22:17:07 -08:00
Jan Varga
8ff02abf2c Bug 965982. r=bent 2014-01-31 09:50:15 -08:00
Jan Varga
65561d45ff Bug 924348 - Intermittent PROCESS-CRASH | /tests/dom/indexedDB/test/test_add_put.html | application crashed [@ sqlite3LeaveMutexAndCloseZombie] or [@ hashDestroy]. r=khuey
CLOSED TREE
2014-01-13 13:27:19 -05:00
Ehsan Akhgari
68bfe70f09 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
Luke Wagner
713797d27a Bug 929236 - Cache asm.js compiled code in Gecko (r=janv) 2013-11-18 15:49:53 -06:00
Andrea Marchesini
e3503d741f Bug 932119 - convert nsIAtom to nsString in QuotaManager and IndexedDB, r=janv 2013-11-25 16:53:48 +00:00
Boris Zbarsky
aa614f08eb Bug 882541 part 2. Fix a bug that crept in with overloading a string and a nullable number and then passing in null, due to the number conversion being conditional on the input type in that case. r=khuey
Also removes a footgun conversion operator on Nullable that was causing it to silently convert to int32_t.
2013-10-11 12:28:23 -04:00
Ed Morley
bbd49c5702 Backed out changeset d8636e485e85 (bug 882541) 2013-10-14 17:30:49 +01:00
Boris Zbarsky
c11c5f6208 Bug 882541 part 2. Fix a bug that crept in with overloading a string and a nullable number and then passing in null, due to the number conversion being conditional on the input type in that case. r=khuey
Also removes a footgun conversion operator on Nullable that was causing it to silently convert to int32_t.
2013-10-11 12:28:23 -04:00
Andrea Marchesini
7e0afb2a23 Bug 916094 - Assertions removed from IDBFactory::Create() when it's used in JS from chrome in IPC. r=bent 2013-09-19 14:45:25 +02:00
Jan Varga
f354bdf37d Bug 785884 - Implement support for temporary storage (aka shared pool). r=ehsan, r=bent 2013-09-11 06:18:36 +02:00
Robert O'Callahan
51222bdd45 Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg 2013-09-02 20:41:57 +12:00
Trevor Saunders
cdee3ddd94 bug 905410 - remove most remaining usage of nspr atomics outside of xpcom/ r=ehsan 2013-08-12 05:51:49 -04:00
Ehsan Akhgari
1ab9c7bcb4 Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:

# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type

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 "*.cc" \
         -o -iname "*.mm" \) | \
    xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
                   media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
                   modules/libmar/src/mar_private.h \
                   modules/libmar/src/mar.h


# assert_replacer.py
#!/usr/bin/python

import sys
import re

pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")

def replaceInPlace(fname):
  print fname
  f = open(fname, "rw+")
  lines = f.readlines()
  for i in range(0, len(lines)):
    while True:
      index = re.search(pattern, lines[i])
      if index != None:
        index = index.start()
        lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
        for j in range(i + 1, len(lines)):
          if lines[j].find("                 ", index) == index:
            lines[j] = lines[j][0:index] + lines[j][index+4:]
          else:
            break
      else:
        break
  f.seek(0, 0)
  f.truncate()
  f.write("".join(lines))
  f.close()

argc = len(sys.argv)
for i in range(1, argc):
  replaceInPlace(sys.argv[i])
2013-07-18 13:59:53 -04:00
Joshua Cranmer
9d0f9fd9af Bug 884061 - Part 4: Remove nsAtomicRefcnt.h, r=jlebar 2013-07-11 15:21:45 -05:00
Joshua Cranmer
46b6048262 Bug 884061 - Part 3f: Use NS_DECL_THREADSAFE_ISUPPORTS in dom/, r=smaug,dhylands. 2013-07-18 21:21:20 -05:00
Ben Turner
13c1aed454 Bug 888105 - '.DS_Store files can screw up origin initialization.' r=janv. 2013-06-29 19:25:15 -07:00
Jan Varga
3ef4972643 Bug 878703 - Cleanup usage of IO thread only objects. r=bent 2013-06-05 10:11:23 +02:00
Ben Turner
5c98ba8c59 Bug 861287 - 'Integrate IndexedDB into the gecko profiler'. r=khuey. 2013-03-15 23:58:50 -07:00
Ben Turner
f34960c249 Backout bug 861287 for gcc build failures. 2013-04-25 08:30:28 -04:00
Ben Turner
83a996ac9e Bug 861287 - 'Integrate IndexedDB into the gecko profiler'. r=khuey. 2013-03-15 23:58:50 -07:00
Ben Turner
a8153c7739 Bug 856032 - 'Quota management enabled even for origins with unlimited permission granted'. r=janv. 2013-03-31 17:10:27 -07:00
Ryan VanderMeulen
23c53444bb Backed out changeset 3a242f8d8298 (bug 856032) for mochitest-2 failures. 2013-03-30 16:15:06 -04:00
Ben Turner
a0e2281493 Bug 856032 - 'Quota management enabled even for origins with unlimited permission granted'. r=janv. 2013-03-30 11:30:16 -07:00
Jan Varga
d067a001e6 Bug 767944 - Implement a manager for centralized quota and storage handling. r=bent 2013-03-26 12:13:17 +01:00
Jan Varga
cce084987f Bug 820715 - Move quota related pieces from IndexedDatabaseManager to QuotaManager. r=bent 2012-12-19 18:45:57 +01:00
Jan Varga
836d404c2e Bug 787804 - Rewrite quota handling (eliminate test_quota.c). r=bent,asuth,vladan 2012-12-17 20:25:10 +01:00