Yoshi Huang
dc3740f0fa
Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking.
2015-11-03 09:50:54 +08:00
Gregor Wagner
81a213c732
Bug 1222478 - Enable more mulet tests. r=gerard-majax
2015-11-06 20:01:45 +01:00
Birunthan Mohanathas
94998cf5fe
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Nathan Froyd
e4e2da55c9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Chris Peterson
e086e82ea1
Bug 1208355 - Fix -Wshadow warnings in dom/datastore. r=baku
2015-10-01 23:37:25 -07:00
Andrea Marchesini
13a4bac306
Bug 1186805 - Replace nsBaseHashtable::EnumerateRead() calls in dom/datastore/ with iterators, r=njn
2015-09-30 11:59:52 +01:00
Andrea Marchesini
f9e038905f
Bug 1200851 - DataStoreService should update its permission map when the homescreen changes, r=fabrice
2015-09-18 13:49:24 +08:00
Nicholas Nethercote
69d088e45f
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Yoshi Huang
2e408d4ba7
Bug 1165272 - Part 1: remove getAppCodebasePrincipal. r=bholley
2015-08-17 17:03:19 +08:00
Bobby Holley
8f42e826dc
Backed out 3 changesets (bug 1165272) for b2g sanity blocker.
2015-08-25 11:16:21 -07:00
Yoshi Huang
f41381bebf
Bug 1165272 - Part 1: Remove getAppCodebasePrincipal. r=bholley
2015-08-24 01:31:00 -04:00
Ryan VanderMeulen
972ca0f591
Bug 1085575 - Skip test_app_install.html on OSX debug. rs=khuey
2015-08-06 13:41:33 -04:00
Andrew McCreight
a495d23e46
Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor
2015-07-21 11:31:44 -07:00
Ryan VanderMeulen
13755b4c04
Backed out changeset 553a3e1e7b18 (bug 1176341) for bustage.
...
CLOSED TREE
2015-07-21 13:00:55 -04:00
Andrew McCreight
c38a7a94b3
Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor
2015-07-21 09:44:37 -07:00
Birunthan Mohanathas
47ed3a3675
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
Wes Kocher
502ddcea03
Backed out changeset 74293125739a (bug 1176341)
2015-07-10 12:48:20 -07:00
Andrew McCreight
206afa0d7f
Bug 1176341 - De-holder nsIXPConnect::CreateSandbox. r=baku,gabor
2015-07-10 07:41:33 -07:00
Andrea Marchesini
079dd0bf49
Bug 1181329 - Make DataStore available to privileged homescreen app, r=fabrice
2015-07-07 23:19:14 +01:00
Juan Gomez
01df2f691b
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Ryan VanderMeulen
e6131fc8b8
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.
2015-06-25 19:48:42 -04:00
Juan Gomez
2128198065
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-06-24 14:11:00 -04:00
Birunthan Mohanathas
084be39cfd
Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElement calls. r=froydnj
2015-05-28 11:07:44 -07:00
Birunthan Mohanathas
f7fa42cc65
Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElements calls. r=froydnj
2015-05-28 11:07:43 -07:00
Andrea Marchesini
c61d61c287
Bug 1167423 - patch 7 - Handle return values of FallibleTArray functions in DataStore API, r=smaug
2015-05-25 12:50:15 +01:00
Bobby Holley
4d24bef4e9
Bug 1165162 - Stop recreating principals from the message manager. r=smaug
2015-05-20 17:08:56 -07:00
Andrew McCreight
c979f253c0
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Boris Zbarsky
6a3f2d3909
Bug 1157898 part 1. Make code of the form "return rv.ErrorCode();" where rv is an ErrorResult use StealNSResult instead. r=peterv
...
This patch was generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 's/return ([a-zA-Z0-9]+)\.ErrorCode\(\);/return \1.StealNSResult();/'
2015-04-27 09:18:51 -04:00
Andrea Marchesini
0a7d105a0f
Bug 1156632 - Remove unused forward class declarations - patch 3 - dom/{events,xbl,xslt,xul} and others, r=ehsan
2015-04-22 08:29:18 +02:00
Daniel Holbert
d7c678a90f
Bug 1152169 followup: Mark FirstRevisionIdCallback methods Run() and HandleEvent() as 'override'. rs=ehsan
2015-04-16 13:42:28 -07:00
Andrea Marchesini
eecf391129
Bug 1152169 - DataStoreService should check if the first revision exists, r=bent
2015-04-16 12:25:42 +01:00
Nathan Froyd
fba75178ed
Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
...
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1"). Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Wes Kocher
599525318e
Backed out changeset 050848a5273c (bug 1153988) for Windows build bustage CLOSED TREE
2015-04-14 14:42:59 -07:00
Nathan Froyd
5ba322e426
Bug 1153988 - create nsNullPrincipals directly, rather than going through do_CreateInstance; r=smaug
...
There's a better way to create null principals than
do_CreateInstance("@mozilla.org/nullprincipal;1"). Let's do that and
save ourselves some XPCOM overhead.
2015-04-13 14:47:41 -04:00
Nathan Froyd
68d9d5628d
Bug 1153267 - part 1 - use smart-pointer .forget() instead of NS_ADDREF+assign; r=ehsan
2015-03-31 10:03:49 -04:00
Ben Turner
8e9d4603ee
Bug 1112702 - Make IndexedDB transactions non-durable by default, r=khuey.
2015-01-25 22:30:09 -08:00
Andrea Marchesini
d2e04cc024
Bug 1143526 - DataStore API should create DOMError with proper error messages, r=fabrice
2015-03-31 23:23:52 +01:00
Wes Kocher
97410b1a59
Backed out changeset 3be650e84eea (bug 1112702)
2015-03-30 19:45:56 -07:00
Ben Turner
0c7e4c1ceb
Bug 1112702 - Make IndexedDB transactions non-durable by default, r=khuey.
2015-01-25 22:30:09 -08:00
Phil Ringnalda
d09277f0f4
Backed out 5 changesets (bug 866846, bug 1131776, bug 1131766, bug 1144806, bug 1112702) on suspicion of causing Windows debug devtools-4 storage crashes
...
CLOSED TREE
Backed out changeset 142d9ae5826c (bug 1131776)
Backed out changeset 0b4de21b759f (bug 1112702)
Backed out changeset 1b4ead852ae0 (bug 1131766)
Backed out changeset cbd862dd036f (bug 866846)
Backed out changeset 178412a2fe8b (bug 1144806)
2015-03-29 12:55:11 -07:00
Ben Turner
b23dc0cf0a
Bug 1112702 - Make IndexedDB transactions non-durable by default, r=khuey.
2015-01-25 22:30:09 -08:00
Andrea Marchesini
94545cbb2e
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Boris Zbarsky
a536df4967
Bug 1143529 part 1. Stop manually calling WrapObject in DataStoreService::GetDataStoresResolve. r=baku
2015-03-23 12:18:03 -04:00
Ehsan Akhgari
5cccea6f0f
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
Boris Zbarsky
988b8e01be
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Boris Zbarsky
b97b658efd
Bug 1117172 part 2. Change the non-wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, Codegen.py, and
StructuredClone.cpp. The rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/WrapObject\((JSContext *\* *(?:aCx|cx)),(\s*)(JS::MutableHandle<JSObject\*> aReflector)/WrapObject(\1,\2JS::Handle<JSObject*> aGivenProto,\2\3/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx)), this, aReflector/\1, this, aGivenProto, aReflector/'
2015-03-19 10:13:32 -04:00
Boris Zbarsky
47026f3bb1
Bug 1140573 part 3. Drop the parent argument from js::NewFunctionWithReserved. r=waldo
2015-03-09 12:50:07 -04:00
Anish
d6962a9b5b
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
24df8222d0
Backed out changeset 6885e993936a (bug 1056851) for crashtest failures
2015-02-19 15:02:05 +01:00
Anish
e982da177f
Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher
2015-02-19 07:26:41 -05:00