Aidin Gharibnavaz
6863090c8a
Bug 1235830 - Renaming GetInternalNSEvent to WidgetEvent, in nsIDOMEvent r=smaug
...
MozReview-Commit-ID: Hm8Owq17KXn
--HG--
extra : transplant_source : 2%82%D5%89%19%94%7C%E7%CA1%99%B5%24%1F5%E1%C0%1F%DE%07
2016-02-12 19:10:07 +03:30
ISHIKAWA, Chiaki
be2b50a7f8
Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
...
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check
- the outdated 0666 octal constant is still parsed correctly,
- the outdated 0666 octal constant raises syntax error flag
in strict mode, etc.
So leave them alone.
2016-02-15 08:57:00 +01:00
Kyle Huey
590c6ec6dd
Bug 1150737: Make executeSoon work properly on workers, enable tests. r=bent
2016-02-10 22:35:50 -08:00
Jan Varga
9b4516ad03
Bug 1183959 - Move FlushPendingFileDeletions() from PContent to PBackground; r=khuey
2016-02-10 16:11:25 +01:00
Myk Melez
a6aff185d2
Bug 1238576 - disable mozApps API on desktop/Android; r=ehsan,ochameau,bz,mcmanus,jmaher,marco
2016-02-08 11:24:22 -08:00
Birunthan Mohanathas
690e6fe38b
Bug 1235261 - Part 3: Switch remaining uses of AutoFallibleTArray to AutoTArray. r=froydnj
...
This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-02-02 17:36:30 +02:00
Birunthan Mohanathas
9137955c65
Bug 1235261 - Part 2: Switch some uses of AutoFallibleTArray to AutoTArray. r=froydnj
...
This changes some function signatures to take a nsTArray<T>& instead of a
FallibleTArray<T>& because AutoTArray does not inherit from FallibleTArray.
This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-02-02 17:36:30 +02:00
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
f82794ec09
Bug 1229376 - Downgrade lastVacuumSize > 0 assertion to an NS_ASSERTION so we don't have to star it all over the place, rs=khuey
2016-01-31 16:59:44 -08:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
720fce4f80
Bug 1235261 - Part 3: Switch remaining uses of AutoFallibleTArray to AutoTArray. r=froydnj
...
This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-01-31 17:12:12 +02:00
Birunthan Mohanathas
53bb27f2a4
Bug 1235261 - Part 2: Switch some uses of AutoFallibleTArray to AutoTArray. r=froydnj
...
This changes some function signatures to take a nsTArray<T>& instead of a
FallibleTArray<T>& because AutoTArray does not inherit from FallibleTArray.
This is effectively a no-op because the affected array operations already use
`mozilla::fallible`.
2016-01-31 17:12:12 +02:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Bill McCloskey
c663839ade
Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm)
2016-01-28 20:56:37 -08:00
Andrew McCreight
1f5db5ab06
Bug 1243113 - Enable test_blob_worker_xhr_* tests on e10s Windows. r=khuey
...
--HG--
extra : rebase_source : db27c66182ee0540bc9d2a5356c68cb0be2bcb2a
2016-01-28 12:33:00 -05:00
Kyle Huey
e1512917bd
Bug 1195149
- Upgrade the !mInWriteTransaction check to a MOZ_RELEASE_ASSERT. r=janv
...
--HG--
extra : amend_source : 1603d25a31a2e04752ff498426d2e0e1ce102673
2016-01-22 11:18:00 -05:00
Lars T Hansen
afa80bc73e
Bug 1239666 - part 2, dom/indexedDB change. r=khuey
...
--HG--
extra : rebase_source : 1e6fc476f61ab42b5ed59b68506fc2ac5e7ea10a
extra : histedit_source : a093ba98d7ac9353cc24b7d93c18d77ed4496d42
2016-01-18 09:48:23 +01:00
Andrea Marchesini
83b88d383f
Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug
2016-01-12 18:16:59 +00:00
Ehsan Akhgari
7a3453ad7a
Bug 1237363 - Part 1: Unregister all service workers registered in mochitests at the end of the test; r=jdm
2016-01-12 09:51:19 -05:00
Carsten "Tomcat" Book
6692893d20
Backed out changeset 5f6a58676e87 (bug 1231378)
2016-01-12 15:48:57 +01:00
Andrea Marchesini
001e241382
Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug
2016-01-12 13:54:53 +00:00
Nathan Froyd
1965bce699
Bug 1236632 - remove unused variable in FactoryOp::WaitForTransactions; r=janv
...
This variable got left behind during the refactoring in bug 1125102.
2016-01-04 14:29:33 -05:00
Nicholas Nethercote
9c93b28807
Bug 1231256 (part 2) - Remove unused BlobDirState parameters from SetLazyData(). r=jld.
...
--HG--
extra : rebase_source : f88823ad01734efedf275dc67c1e4e1d2bc6a3ba
2015-12-07 14:00:51 -08:00
Andrea Marchesini
32580a380e
Bug 1231100 - Get rid of nsIDOMFileReader - patch 2, r=sicking
2015-12-09 15:52:38 -05:00
Andrea Marchesini
c2230f21f8
Bug 1231100 - Get rid of nsIDOMFileReader - patch 1, r=sicking
2015-12-09 15:52:15 -05:00
Jan Beich
814acd7ab8
Bug 1228208 - Make sure ICU flags are prepended before system flags. r=glandium
2015-12-02 09:40:50 +00:00
Mike Hommey
3a7b31cfb5
Bug 1228444 - Rename DIST_FILES to FINAL_TARGET_PP_FILES. r=gps
...
This makes it clearer that really it's the same thing as FINAL_TARGET,
with preprocessing.
We still keep DIST_FILES in backend.mk because it's shorter and doesn't
really matter.
2015-12-01 08:25:22 +09:00
Mike Hommey
655579a1fa
Bug 1228444 - Don't silence "no preprocessor directives found" warnings for DIST_FILES. r=gps
...
and move files without preprocessor directives to FINAL_TARGET_FILES.
2015-12-01 08:25:22 +09:00
Ting-Yu Chou
b758bfd85c
Bug 1214516 - Sync check PBackgroundChild existence to initiate indexed DB open/delete request right away if it exists. r=khuey
2015-11-25 10:57:07 +08:00
Nicholas Nethercote
6f9bc492d5
Bug 1187151 (part 5) - Replace nsBaseHashtable::Enumerate() calls in dom/ with iterators. r=khuey.
2015-11-24 16:55:01 -08:00
Nicholas Nethercote
2ef69fa23a
Bug 1187151 (part 4) - Replace nsBaseHashtable::Enumerate() calls in dom/ with iterators. r=khuey.
2015-11-24 16:54:42 -08:00
Nicholas Nethercote
0cea25ad8c
Bug 1187151 (part 3) - Replace nsBaseHashtable::Enumerate() calls in dom/ with iterators. r=khuey.
2015-11-24 16:54:27 -08:00
Andrew McCreight
738b476cb2
Bug 1226311, part 2 - Remove SpecialPowers.isMainProcess usage from various IndexedDB tests. r=janv
...
isMainProcess() is used in a few places to disable tests when run in a
content process. However, these tests are either never run in e10s or
pass when run with e10s, so remove all of the testing code. Some of
this was to work around issues with test_ipc.html which does not seem
to exist any more.
This patch also removes some code for disabling a test on Windows 2003.
2015-11-25 08:09:32 -08:00
Andrew McCreight
f417b30660
Bug 1226311, part 1 - Remove some obsolete includes for test_ipc.html in indexeddb. r=janv
...
test_ipc.html doesn't seem to exist any more.
2015-11-25 08:09:32 -08:00
Nicholas Nethercote
39043b2d44
Bug 1187116 (part 6) - Replace nsBaseHashtable::EnumerateRead() calls in dom/indexedDB/ with iterators. r=khuey.
2015-11-18 21:04:22 -08:00
Nicholas Nethercote
bb8aa825e5
Bug 1187116 (part 5) - Replace nsBaseHashtable::EnumerateRead() calls in dom/indexedDB/ with iterators. r=khuey.
2015-11-18 21:04:10 -08:00
sajitk
5fb2c53074
Bug 1219478: Replace PRLogModuleInfo usage with LazyLogModule in dom folders except media.r=amerchesini
2015-11-23 11:09:25 -08:00
Jan Varga
01bc2fb8bb
Bug 961049 - Part 9: Fix asynchronous deletion of files to work on PBackground; r=baku
2015-11-22 10:44:43 +01:00
Jan Varga
736e2d562c
Bug 961049 - Part 8: Move getFileReferences() from PContent under new protocol PBackgroundIndexedDBUtils; r=baku
2015-11-22 10:44:33 +01:00
Jan Varga
e52ccb9b1e
Bug 961049 - Part 7: QuotaManager on PBackground indexedDB changes; r=baku
2015-11-22 10:44:24 +01:00
Jan Varga
c1c950896a
Bug 961049 - Part 3: Move PersistenceType serializer from indexedDB to quota module; r=baku
2015-11-22 10:43:34 +01:00
Jan Varga
80e3425247
Bug 961049 - Part 2: Remove Utilities.h; r=baku
2015-11-22 10:43:23 +01:00
Jan Varga
27f90d36a3
Bug 961049 - Part 1: Remove unused members and methods; r=baku
2015-11-22 10:43:09 +01:00
Phil Ringnalda
dc2edc3740
Bug 1183959 - Disable test_file_os_delete.html on e10s
...
CLOSED TREE
2015-11-12 20:01:39 -08:00
Kyle Huey
bdbb2ec50a
Bug 1224061: Make Event::InitEvent infallible. r=smaug
2015-11-13 08:09:42 +08:00
Carsten "Tomcat" Book
4d6f05d2f8
merge mozilla-inbound to mozilla-central a=merge
2015-11-09 14:55:30 +01:00
Gregor Wagner
96837db759
Bug 1222478 - Enable more mulet tests. r=gerard-majax
2015-11-06 20:01:45 +01:00
Andrew McCreight
d8c072ada0
Bug 1220732 - Enable some bc tests. r=mrbkap
...
--HG--
extra : rebase_source : 851b8270c99ac544a7980a3ff82cb9a59029373a
2015-11-03 09:04:00 +01:00
Nicholas Nethercote
3de6145563
Bug 1187116 (part 4) - Replace nsBaseHashtable::EnumerateRead() calls in dom/indexedDB/ with iterators. r=khuey.
...
--HG--
extra : rebase_source : ecedfe01df7931b83b7e9886c39901d543727749
2015-11-01 21:47:23 -08:00
Nicholas Nethercote
4f80b46a1b
Bug 1187116 (part 3) - Replace nsBaseHashtable::EnumerateRead() calls in dom/indexedDB/ with iterators. r=khuey.
...
--HG--
extra : rebase_source : e97f1b776de07c7a84abaa9ec88de3d34d2f8ad1
2015-11-01 21:46:47 -08:00
Nicholas Nethercote
d497526369
Bug 1187116 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in dom/indexedDB/ with iterators. r=khuey.
...
--HG--
extra : rebase_source : 0796707bdb84db9cafcc824b6f38f8bc63ae616b
2015-11-01 21:46:29 -08:00
Nicholas Nethercote
ce68f45883
Bug 1187116 (part 1) - Replace nsBaseHashtable::EnumerateRead() calls in dom/indexedDB/ with iterators. r=khuey.
...
--HG--
extra : rebase_source : a7b8a1b76ffbb31a38a5082b06aa6457a4151cfd
2015-11-01 21:45:14 -08:00
Birunthan Mohanathas
9985829ecc
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Wes Kocher
8d99befba7
Merge m-c to inbound, a=merge
...
--HG--
extra : commitid : CprilDXCNVx
2015-10-27 14:15:23 -07:00
Nathan Froyd
69382a523a
Bug 1216964 - remove nsAutoArrayPtr use from ActorsParent; r=khuey
...
We could have just replaced it directly with UniquePtr, but it seemed
just as easy to use UniqueFreePtr and adapt the code to use
AdoptingBlobVariant, which was apparently added after the XXX comment.
2015-10-20 14:24:29 -04:00
Yoshi Huang
176a15f268
Bug 1196665 - Add originAttributes into SpecialPowers. r=bholley
...
From 7bb0fbba24f4f65d3fa83efe223b1431cd71fdb6 Mon Sep 17 00:00:00 2001
---
dom/apps/tests/test_third_party_homescreen.html | 8 +-
.../test/test_messagemanager_assertpermission.html | 4 +-
dom/base/test/test_messagemanager_targetchain.html | 16 +--
...rowserElement_AllowEmbedAppsInNestedOOIframe.js | 11 +-
.../mochitest/browserElement_CopyPaste.js | 9 +-
.../browserElement_DisallowEmbedAppsInOOP.js | 9 +-
.../mochitest/browserElement_Proxy.js | 10 +-
.../browserElement_SetInputMethodActive.js | 3 +-
.../mochitest/browserElement_SetVisibleFrames.js | 17 ++--
.../mochitest/browserElement_SetVisibleFrames2.js | 16 +--
.../priority/test_ExpectingSystemMessage2.html | 16 +--
.../mochitest/priority/test_NestedFrames.html | 16 +--
dom/cache/test/mochitest/driver.js | 11 +-
.../test/mochitest/test_cache_orphaned_body.html | 33 +-----
.../test/mochitest/test_cache_orphaned_cache.html | 33 +-----
dom/cache/test/mochitest/test_cache_restart.html | 11 +-
dom/cache/test/mochitest/test_cache_shrink.html | 33 +-----
dom/indexedDB/test/file.js | 12 +--
dom/indexedDB/test/helpers.js | 9 +-
dom/indexedDB/test/webapp_clearBrowserData.js | 6 +-
dom/inputmethod/mochitest/test_bug1043828.html | 5 +-
dom/inputmethod/mochitest/test_bug944397.html | 5 +-
.../mochitest/test_focus_blur_manage_events.html | 5 +-
.../mochitest/test_input_registry_events.html | 5 +-
.../mochitest/test_simple_manage_events.html | 5 +-
.../tests/test_permission_for_nested_oop_app.html | 3 +-
.../tests/test_permission_for_two_oop_apps.html | 3 +-
dom/ipc/tests/test_permission_helper.js | 21 ++--
.../test_permission_when_oop_app_crashes.html | 3 +-
dom/tv/test/mochitest/head.js | 5 +-
.../test_SpecialPowersPushAppPermissions.html | 14 ++-
.../tests/Harness_sanity/test_bug816847.html | 6 +-
.../components/SpecialPowersObserver.js | 4 +-
.../content/SpecialPowersObserverAPI.js | 24 +----
testing/specialpowers/content/specialpowersAPI.js | 111 ++++++++-------------
35 files changed, 173 insertions(+), 329 deletions(-)
2015-10-07 14:35:43 +08:00
Yoshi Huang
0f75eb4970
Backout e54c3b878993
2015-10-27 15:49:11 +08:00
Yoshi Huang
425b3272f5
Bug 1196665 - Add originAttributes into SpecialPowers. r=bholley
2015-10-07 14:35:43 +08:00
Jan Varga
1df1276418
Bug 1203803 - Remove forced cleanup from FactoryOp::ActorDestroy() since it cause more harm than good; r=khuey
2015-10-22 08:38:06 +02:00
Nathan Froyd
01583602a9
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
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd
fe57e31ffe
Bug 1212027 - part 7 - modify IPDL codegen to store sub-protocols in a hashtable rather than an array; r=jld,nical,cpearce,billm
2015-10-07 14:30:33 -04:00
Jan Varga
e34c9c269d
Bug 1203803 - Fix "Intermittent Assertion failure: IsOnBackgroundThread()" a=sheriffduty
2015-10-10 02:57:00 +02:00
Carsten "Tomcat" Book
15df2c2f4b
Backed out changeset 2387ada86428 (bug 1203803) for landing with negative review and causing assertions
2015-10-14 14:29:37 +02:00
Jan Varga
77ae4508cb
Bug 1203803: Force cleanup for specific states only; r=khuey a=CLOSED TREE
2015-10-13 10:19:43 -07:00
Nick Fitzgerald
f3032c8c01
Bug 1201620 - Make SavedFrame stacks structured cloneable; r=sfink
2015-10-12 13:29:48 -07:00
Jan Varga
d7ad4e8aba
Followup build fix for bug 1185223; r=buildbustage
2015-10-10 10:16:31 +02:00
Jan Varga
90b70db80f
Bug 1185223 - crash at [@ mozilla::dom::quota::QuotaObject::Release() ]; r=khuey
2015-10-10 09:28:09 +02:00
Andrea Marchesini
13352c21d4
Bug 1212009 - ReadFullySerializableObjects() doesn't use the aIndex param and it can be removed, r=smaug
2015-10-07 20:32:14 +01:00
Carsten "Tomcat" Book
08997000eb
Backed out 2 changesets (bug 1202902
) to recking bug 1202902
to be able to reopen inbound on a CLOSED TREE
...
Backed out changeset 647025383676 (bug 1202902
)
Backed out changeset d70c7fe532c6 (bug 1202902
)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d
Backed out 1 changesets (bug 1202902
) for causing merge conflicts to mozilla-central
...
Backed out changeset cfc1820361f5 (bug 1202902
)
--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6
Bug 1202902
- Scripted fix the world.
2015-10-06 14:00:31 -07:00
Andrew McCreight
5171450b27
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-05 09:38:14 -07:00
Wes Kocher
f0d829220d
Backed out changeset 821791826960 (bug 1197893) for Nexus build failures CLOSED TREE
2015-10-02 16:17:05 -07:00
Andrew McCreight
35cd15b8de
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-02 15:09:02 -07:00
Andrew McCreight
7a2c6267d4
Backed out changeset 6fa9cdf4002b for breaking the build.
2015-10-02 10:49:28 -07:00
Andrew McCreight
404740a102
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-02 10:42:08 -07:00
Tooru Fujisawa
59f52342c7
Bug 1207494 - Part 9: Remove use of expression closure from dom/indexedDB/. r=khuey
...
--HG--
extra : commitid : 9tEgENbueXg
extra : rebase_source : b23c853af0346325812e8a0a4ac42bb7c3ffae27
2015-09-23 18:39:14 +09:00
Jason Orendorff
deb2270515
Bug 1054756, part 5 - Remove Class::convert.
...
--HG--
extra : commitid : 6KCxWrCseSZ
extra : rebase_source : 63f3cd6ec1ade43c732ffd9b661fe6f2dca9eb4b
2015-03-20 16:28:59 -05:00
Andrea Marchesini
7373ebaca0
Bug 1209919 - Improving naming and comments in StructuredCloneHelper, r=smaug
...
--HG--
rename : dom/base/StructuredCloneHelper.cpp => dom/base/StructuredCloneHolder.cpp
rename : dom/base/StructuredCloneHelper.h => dom/base/StructuredCloneHolder.h
2015-09-30 13:22:08 +01:00
Wes Kocher
b19d88b060
Backed out 7 changesets (bug 1206168, bug 1177318, bug 1054756) for hazard build failures CLOSED TREE
...
Backed out changeset e892727a373a (bug 1206168)
Backed out changeset 6c93d1044b7e (bug 1054756)
Backed out changeset 105433ce195b (bug 1054756)
Backed out changeset 13128a88f2b9 (bug 1054756)
Backed out changeset c250abf4fd17 (bug 1054756)
Backed out changeset fc9fef646a97 (bug 1054756)
Backed out changeset c8897f109a08 (bug 1177318)
2015-09-23 12:31:19 -07:00
Jason Orendorff
54e92d9beb
Bug 1054756, part 5 - Remove Class::convert.
...
--HG--
extra : commitid : KrjkP1flM3c
extra : rebase_source : 8c367e3158528e92ac8ebc51521d32472f1e5bb1
2015-03-20 16:28:59 -05:00
Jeff Walden
4046fe1490
Bug 1179003 - Convert the infallible objectClassIs proxy hook into a fallible getBuiltinClass hook that indicates class type via outparam. r=efaust, r=bz on DOM bits, r=billm on IPC bits
...
--HG--
extra : rebase_source : 6ddc3727c411fdfced6338e5e383a10572575f0f
2015-08-28 21:55:40 -07:00
Ted Mielczarek
56db76a2f3
bug 1206312 - add IndexedDatabaseManager include to IDBKeyRange. r=bz
...
--HG--
extra : commitid : 8lD7bllThUV
extra : rebase_source : f3811569a5812ec737c41d8d38bb49bf21f69984
2015-09-18 20:29:45 -04:00
Shu-yu Guo
64db2267cf
Bug 1202902
- Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff)
2015-09-15 11:19:45 -07:00
Michael Layzell
d71e4e3134
Bug 1202014 - Don't use-after-move in ActorsChild.cpp, r=khuey
2015-09-14 16:04:10 -04:00
Andrea Marchesini
26d2b33735
Bug 1203916 - Get rid of NS_DOMReadStructuredClone and NS_DOMWriteStructuredClone, r=smaug
2015-09-15 01:05:44 +08:00
Phil Ringnalda
cb9f3c6c86
Merge m-c to b-i
2015-09-12 16:04:10 -07:00
Michael Layzell
1eaae658aa
Bug 1156802 - Part 2: Remove all explicit move constructors, r=ehsan
2015-09-12 12:34:45 -04:00
Reuben Morais
33dc3930e7
Bug 1204183 - Test the object_data upgrade from bug 1202788. r=janv
2015-09-12 12:51:21 -03:00
Reuben Morais
e3e708534a
Bug 1202788 - Upgrade object_data table to new format (follow-up to bug 871846). r=janv
2015-09-11 12:12:52 -03:00
Jan Varga
7d81dbbfad
Bug 1068975 - Remove FileInfo from File; r=baku
2015-09-09 13:15:14 +02:00
Jan Varga
2a061d3c3b
Bug 771288 - Multiprocess FileHandle support (FileHandle on PBackground); r=baku
...
--HG--
rename : dom/filehandle/FileHandle.cpp => dom/filehandle/FileHandleBase.cpp
rename : dom/filehandle/FileHandle.h => dom/filehandle/FileHandleBase.h
rename : dom/filehandle/FileRequest.h => dom/filehandle/FileRequestBase.h
rename : dom/filehandle/MutableFile.cpp => dom/filehandle/MutableFileBase.cpp
rename : dom/filehandle/MutableFile.h => dom/filehandle/MutableFileBase.h
2015-09-09 13:15:05 +02:00
Kyle Huey
e53cd4fe95
Bug 1200004 - Fix IDB permission handling around navigated windows. r=baku
2015-09-08 10:11:36 +02:00
Shihua Zheng
8b824c5ed4
Bug 871846 - Tests for locale aware indexes. r=janv
2014-07-20 14:29:54 -07:00
Reuben Morais
5e1f2a6b18
Bug 871846 - Implement IDBLocaleAwareKeyRange. r=janv r=sicking
2015-09-04 16:12:52 -03:00
Reuben Morais
9a1f803114
Bug 871846 - Handle locale aware indexes. r=janv
2015-09-04 16:12:44 -03:00
Reuben Morais
0e18f3afbd
Bug 871846 - Database changes for locale aware indexes. r=janv
2015-09-04 16:12:37 -03:00
Reuben Morais
e493377d61
Bug 871846 - API changes for locale aware indexes. r=janv r=sicking
2015-09-04 16:12:29 -03:00
Reuben Morais
dd7ac5dc3c
Bug 871846 - ICU usage and infrastructure bits. r=janv
2014-08-04 13:59:57 -07:00
Nicholas Nethercote
95676dc27c
Bug 1200484 (part 10) - Use JS column numbers in indexedDB. r=khuey.
...
--HG--
extra : rebase_source : a7549e74d28e92911e014e152a245828f01291ad
2015-09-01 18:01:02 -07:00
Nicholas Nethercote
f44287005f
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.
--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Michael Layzell
cd6e65d4d5
Bug 1147821 - Update IndexedDB to use common StorageAllowedForWindow logic, r=khuey
2015-08-28 10:10:30 -04:00
Yoshi Huang
e6070e9062
Bug 1165272 - Part 2: replace getNoAppCodebasePrincipal. r=bholley
2015-08-18 15:01:42 +08:00
Yoshi Huang
4347bb2318
Bug 1165272 - Part 1: remove getAppCodebasePrincipal. r=bholley
2015-08-17 17:03:19 +08:00
Kyle Huey
917ae4a9ce
Bug 1196840: Make IDBTransaction::ObjectStoreNames const. r=baku
2015-08-25 13:30:18 -07:00
Bobby Holley
edfe287f26
Backed out 3 changesets (bug 1165272) for b2g sanity blocker.
2015-08-25 11:16:21 -07:00
Yoshi Huang
de47f4b89f
Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley
2015-08-24 01:18:00 -04:00
Yoshi Huang
12efacfa8c
Bug 1165272 - Part 1: Remove getAppCodebasePrincipal. r=bholley
2015-08-24 01:31:00 -04:00
Birunthan Mohanathas
258615a1ba
Bug 1168606 - Part 5: Send two records with every ObjectStoreCursorResponse. r=khuey
2015-08-19 14:59:29 -07:00
Birunthan Mohanathas
ee9767e694
Bug 1168606 - Part 4: Allow current key to be provided with PBackgroundIDBCursor::Continue. r=khuey
...
The key is assumed to be unset for now.
2015-08-19 14:59:28 -07:00
Birunthan Mohanathas
0464f60bc0
Bug 1168606 - Part 3: Allow multiple ObjectStoreCursorResponses in a CursorResponse. r=khuey
...
For now, we assume that the array only ever contains a single response.
2015-08-19 14:59:25 -07:00
Michael Layzell
e826e765e4
Bug 1165217 - Use nsIPrincipal instead of nsIURI/appId/inBrowser for nsIQuotaManager, r=janv
2015-08-18 20:24:30 -04:00
Birunthan Mohanathas
a727c82e51
Bug 1192023 - Make UpdateType an enum class. r=khuey
2015-08-06 14:34:39 -07:00
Birunthan Mohanathas
752bf80bb4
Bug 1192023 - Use enum class instead of CheckpointMode_ prefix. r=khuey
2015-08-06 14:34:35 -07:00
Birunthan Mohanathas
69151f6831
Bug 1192023 - Flatten away AppId enum. r=khuey
2015-08-06 14:34:33 -07:00
Birunthan Mohanathas
e95e1e7d13
Bug 1192023 - Use enum class instead of MaintenanceAction_ prefix. r=khuey
2015-08-06 14:34:29 -07:00
Birunthan Mohanathas
9f71a11dba
Bug 1192023 - Use enum class instead of State_ prefix. r=khuey
2015-08-06 14:34:27 -07:00
Kyle Huey
76e3009ab8
Bug 1179909: Refactor stable state handling. r=smaug
...
This is motivated by three separate but related problems:
1. Our concept of recursion depth is broken for things that run from AfterProcessNextEvent observers (e.g. Promises). We decrement the recursionDepth counter before firing observers, so a Promise callback running at the lowest event loop depth has a recursion depth of 0 (whereas a regular nsIRunnable would be 1). This is a problem because it's impossible to distinguish a Promise running after a sync XHR's onreadystatechange handler from a top-level event (since the former runs with depth 2 - 1 = 1, and the latter runs with just 1).
2. The nsIThreadObserver mechanism that is used by a lot of code to run "after" the current event is a poor fit for anything that runs script. First, the order the observers fire in is the order they were added, not anything fixed by spec. Additionally, running script can cause the event loop to spin, which is a big source of pain here (bholley has some nasty bug caused by this).
3. We run Promises from different points in the code for workers and main thread. The latter runs from XPConnect's nsIThreadObserver callbacks, while the former runs from a hardcoded call to run Promises in the worker event loop. What workers do is particularly problematic because it means we can't get the right recursion depth no matter what we do to nsThread.
The solve this, this patch does the following:
1. Consolidate some handling of microtasks and all handling of stable state from appshell and WorkerPrivate into CycleCollectedJSRuntime.
2. Make the recursionDepth counter only available to CycleCollectedJSRuntime (and its consumers) and remove it from the nsIThreadInternal and nsIThreadObserver APIs.
3. Adjust the recursionDepth counter so that microtasks run with the recursionDepth of the task they are associated with.
4. Introduce the concept of metastable state to replace appshell's RunBeforeNextEvent. Metastable state is reached after every microtask or task is completed. This provides the semantics that bent and I want for IndexedDB, where transactions autocommit at the end of a microtask and do not "spill" from one microtask into a subsequent microtask. This differs from appshell's RunBeforeNextEvent in two ways:
a) It fires between microtasks, which was the motivation for starting this.
b) It no longer ensures that we're at the same event loop depth in the native event queue. bent decided we don't care about this.
5. Reorder stable state to happen after microtasks such as Promises, per HTML. Right now we call the regular thread observers, including appshell, before the main thread observer (XPConnect), so stable state tasks happen before microtasks.
2015-08-11 06:10:46 -07:00
Jeff Walden
1b62a9d07b
Bug 1158399 - Expose the [[DateValue]] field in Date objects only through a ClippedTime class that enforces prior TimeClip-ing on the given value. r=evilpie, r=bz, r=dhylands, r=mt, r=froydnj, r=khuey, r=baku, r=smaug
...
--HG--
extra : rebase_source : 803fe39f338b6b32cb0fe2be6cf4056bab57283a
2015-05-01 19:12:52 -07:00
Reuben Morais
5066ffe155
Bug 1184667 - Remove some unnecessary const_casts from ActorsParent.cpp. r=janv
2015-08-05 15:25:14 -03:00
Kyle Huey
82f329af94
Bug 1188117: Do not allow IDBCursor.delete while cursor update is in progress. r=baku
2015-07-28 15:59:55 -07:00
Kyle Huey
0c59dad482
Bug 1180978: Don't proceed with opening an invalidated database. r=janv,baku
2015-07-22 14:46:19 +08:00
Kyle Huey
b030401bd9
Bug 1185836. Nuke warnings from orbit. r=me
2015-07-21 17:07:05 +08:00
Kyle Huey
15a5ec1edf
Bug 1185836: Fix warnings r=me.
...
CLOSED TREE
2015-07-21 16:52:44 +08:00
Kyle Huey
5129adf6dd
Bug 1185836: Replace several EnumerateRead calls with the new hashtable iterators. r=baku
2015-07-21 16:38:31 +08:00
Brian Birtles
966c333f8b
Bug 1182981 part 3 - Use nsTHashtable::Iterator in ActorsParent; r=khuey
...
--HG--
extra : commitid : 11ASXiomEJ5
2015-07-21 14:46:32 +09:00
Brian Birtles
188b788e88
Bug 1182981 part 4 - Use nsTHashtable::Iterator in IDBDatabase; r=njn
...
--HG--
extra : commitid : AYXTBTdzFTR
2015-07-21 10:48:54 +09:00
Kyle Huey
c14ad0ee62
Bug 1184410: Track whether or not the transaction has been active on the connection thread. r=janv
...
Because StartTransactionOp is a TransactionDatabaseOperationBase, it is possible for it to never run DoDatabaseWork, if the transaction is invalidated before StartTransactionOp runs. In the case of a readwrite transaction, we'll never BeginWriteTransaction() on the connection.
CommitOp, on the other hand, is a DatabaseOperationBase. It doesn't check IsInvalidatedOnAnyThread before running, so it will try to commit the transaction and the assertions will fire because we never called BeginWriteTransaction.
Reworking the inheritance here, if possible, would be hard. Keeping track of the active state on both the background and connection threads is easy though, and we do this sort of thing all over dom/workers. So do that.
This should resolve several intermittent oranges where MOZ_ASSERT(!mInReadTransaction) fires upon committing a transaction.
CLOSED TREE
2015-07-16 10:34:49 -07:00
Ben Turner
6262017c4a
Bug 1179025 - Protect against using cursors on a deleted objectStore/index, r=janv.
2015-07-02 10:47:53 -07: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
Ryan VanderMeulen
5109d15769
Backed out changeset d29782c360fe (bug 1180978) for causing indexedDB assertions.
...
CLOSED TREE
2015-07-10 12:35:15 -04:00
Kyle Huey
c7a5521db6
Bug 1180978: Don't proceed with opening an invalidated database. r=janv,baku
2015-07-10 07:38:53 -07:00
Birunthan Mohanathas
5609390bdb
Bug 1168606 - Part 2: Convert DelayedDeleteRunnable into reusable DelayedActionRunnable class. r=bent
2015-06-09 07:57:19 -07:00
Birunthan Mohanathas
d39c90fbcb
Bug 1168606 - Part 1: Extract Cursor response data population into shared function. r=bent
2015-07-07 11:27:04 -07: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
Ryan VanderMeulen
b47de52156
Backed out changeset d6063656f171 (bug 1179025) for Werror bustage.
...
CLOSED TREE
--HG--
extra : rebase_source : 1145bb0bc348b09d14e9239a378ec35d1f474f8e
2015-07-06 14:00:58 -04:00
Ben Turner
dd5d843851
Bug 1179025 - Protect against using cursors on a deleted objectStore/index, r=janv.
2015-07-02 10:47:53 -07:00
Juan Gomez
258ad59e3f
Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
2015-07-03 18:29:00 -07:00
Jonathan Watt
aaa5cbde27
Bug 1177688, part 6 - Follow-up to provide a default BlobDirState::eUnknownIfDir arg to BlobImplBase's ctor to avoid excessively specifying the same argument. r=baku
2015-06-23 00:31:40 +01:00
Jonathan Watt
2cd9883d4c
Bug 1177688, part 1 - Add API and functionality to the BlobImpl classes so that BlobImpl's that are created from an nsIFile can provide information about whether or not the nsIFile was a directory. r=baku
2015-06-23 00:31:28 +01:00
Martin Thomson
3f054841ce
Bug 1176434 - Enabling indexedDB for content JS sandboxes, r=bent
...
--HG--
extra : commitid : DYgglyPMmSl
2015-07-02 13:30:15 -07:00
Ryan VanderMeulen
3da97f6aee
Backed out changeset c725221a7c45 (bug 1179025) for Werror bustage.
...
CLOSED TREE
2015-07-02 14:22:28 -04:00
Ben Turner
34db19da89
Bug 1179025 - Protect against using cursors on a deleted objectStore/index, r=janv.
...
--HG--
extra : rebase_source : 47580ae73fea87338eb5a33387e7e1afda47a119
2015-07-02 10:47:53 -07:00
Boris Zbarsky
07d97d9536
Bug 1178806. IndexedDB autoincrement overflow should be throwing ConstraintError per spec. r=bent
2015-07-01 00:15:30 -04:00
Boris Zbarsky
86db80c6f3
Bug 1178803. Fix the handling of the 'length' key in IDB keypaths when operating on a string. r=bent
2015-07-01 00:15:30 -04:00
Jan de Mooij
303b210317
Bug 1177892 part 3 - Remove OBJECT_TO_JSVAL. r=evilpie
2015-06-30 21:09:46 -07:00
Daniel Holbert
7e76a840ac
Bug 1130775 followup: Add 'override' keyword to macro-provided AddRef/Release methods for QuotaClient::GetDirectoryLockListener. rs=ehsan
2015-06-30 10:06:24 -07:00
Jan Varga
283acfefd3
Bug 1170021 - Part 2: Move DirectoryLock out of QuotaManager class; r=bent
2015-06-30 14:59:53 +02:00
Jan Varga
baba1643c1
Bug 1130775 - Convert synchronized ops and storage registration into unified directory locks; r=bent
...
--HG--
rename : dom/quota/OriginOrPatternString.h => dom/quota/OriginScope.h
2015-06-30 14:59:27 +02:00