Boris Zbarsky
b0e7faec5a
Bug 1241349 part 3. Add a binding_detail::UnprivilegedJunkScopeOrWorkerGlobal function which returns a global object that can be used for some bindings things. r=bholley
2016-02-10 23:31:33 -05:00
Boris Zbarsky
24566ec012
Bug 1243001 part 7. Stop wrappercaching dom::Promise when SPIDERMONKEY_PROMISE is defined. r=peterv
...
nsWrapperCache expects the object it stores to have an ObjectMoved op that will
notify the wrapper cache when the object is moved. SpiderMonkey promises don't
have a way to do this.
The XPCConvert changes are needed to allow code that passes around Promise
objects as nsISupports to continue working instead of ending up with
double-wrapped nsISupports (XPCWrappedNative for an nsISupports XPCWrappedJS)
around the SpiderMonkey Promise.
2016-02-09 17:40:31 -05: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
Jeff Walden
5af86098d3
Bug 1216150 - Split xpc::InitGlobalObject into an options-setting component and a global-object-modifying component, with the options-setting component being called before global object creation in all callers. r=bz
2016-02-01 12:48:03 -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
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Tom Schuster
4d6aaf2f25
Bug 1242214 - Rename JSPropertyDescriptor JS::PropertyDescriptor everywhere else. r=smaug
2016-01-28 11:28:04 +01:00
Ehsan Akhgari
46cedd4e9b
Bug 1242211 - Mark MozMapRooter as final; r=baku
2016-01-25 10:15:45 -05:00
Olli Pettay
996520ebd1
Bug 1157469 - null check wrapper in case WrapNode fails, r=bholley
2016-01-11 20:32:12 +02:00
Lars T Hansen
1b2551c10b
Bug 1231337 - part 2, conditionally enable shared memory for dedicated workers. r=khuey
...
--HG--
extra : rebase_source : 9da6daa1211937d0fe1ca11eccce4ea90ca0e637
extra : histedit_source : 4d08c392a2766d46dcb41b14dea24d4c4f9be855
2016-01-06 16:31:38 +01:00
Terrence Cole
3a07971436
Bug 1238786 - Part 2: We no longer need to null check before using trace APIs; r=smaug
...
--HG--
extra : rebase_source : 5fdbdaa7be739afd93294b729d878ed33c55b5ce
2016-01-12 13:07:54 -08:00
Terrence Cole
fd0fcea703
Bug 1235923 - Part 2: Use new Root tracing APIs in Gecko; r=smaug
2015-12-30 11:31:16 -08:00
Terrence Cole
97c4c6520f
Backout 7621c3ea95cb11e1c376a9f705accc0f90057c0a (bug 1235923) for build bustage on a CLOSED TREE.
...
--HG--
extra : rebase_source : 6c54aa7e1af75c270ab2b6833b56c780c537e297
2016-01-06 12:05:06 -08:00
Terrence Cole
d38e840e6f
Bug 1235923 - Part 2: Use new Root tracing APIs in Gecko; r=smaug
2015-12-30 11:31:16 -08:00
Tooru Fujisawa
88d3b3ecc6
Bug 1180290 - Part 5: Remove getter/setter variant for ThrowInvalidThis message. r=bz
2016-01-06 17:54:00 +09:00
Terrence Cole
bb224242a8
Bug 1235598 - Part 2: Use TraceEdge exclusively in Gecko; r=smaug
...
--HG--
extra : rebase_source : 27afd7eecd5a13f8d28b888b64d5e44b3c4a74a5
2015-12-30 08:52:14 -08:00
Jeff Walden
5be7be38a1
Bug 1235615 - Split JS::CompartmentOptions into JS::CompartmentCreationOptions that are immutable characteristics of a compartment, and JS::CompartmentBehaviors that may be changed after the compartment's been created. r=terrence
...
--HG--
extra : rebase_source : f08c380ae247d3308d4c36788ac765de1b75af50
2015-12-28 16:15:52 -06:00
Nicholas Nethercote
550252abf1
Bug 1231256 (part 3) - Remove unused parameter from TryToOuterize(). r=roc.
...
--HG--
extra : rebase_source : 0376ed10b93d69cd6545acdd20315610f4d2833c
2015-12-07 14:03:18 -08:00
Boris Zbarsky
e4fd35820f
Bug 1048695 part 2. Make interface members not be exposed based on their nonExposedGlobals. r=peterv
2015-12-01 12:02:36 -05:00
Sunny Sidhu
268b906ced
Bug 1225782 - Removes GlobalPropertiesAreOwn(). r=bz
2015-11-20 10:00:00 +01:00
Boris Zbarsky
c19412a7ac
Bug 1224007 part 1. Rename ThrowMethodFailed to MaybeSetPendingException and make it an ErrorResult instance method. r=peterv
2015-11-20 16:29:40 -05:00
Boris Zbarsky
7c672a451f
Bug 1225392 part 2. WebIDL autogenerated iterators should chain up to %IteratorPrototype%. r=qdot
2015-11-18 18:26:07 -05:00
Olli Pettay
9eb0f0cb58
Bug 1220900 - Remove unused JSBindingFinalized, r=peterv
2015-11-09 18:24:09 +02:00
Jan de Mooij
73b313f3b4
Bug 1125423 part 6 - Remove nsGlobalWindow::OuterObject and ObjectToOuterObjectValue. r=bz
2015-11-06 19:03:52 +01:00
Jan de Mooij
fffc37012e
Bug 1125423 part 2 - Rename stopAtOuter argument to *Unwrap functions to stopAtWindowProxy. r=bz
2015-11-06 19:03:52 +01:00
Jan de Mooij
a84c33ecb0
Bug 1125423 part 1 - Attach WindowProxies to globals instead of using innerObject/outerObject hooks. r=bz,luke
2015-11-06 19:03:51 +01:00
Boris Zbarsky
7ae3b58eb6
Bug 1039986. Make Function.prototype.toString work on Web IDL interface objects. r=jorendorff,peterv
2015-10-27 16:25:14 -04:00
Jon Coppeard
59be23d316
Bug 930414 - Replace |thisObject| object op with |thisValue| and use if for modules r=shu r=smaug
2015-10-21 10:21:44 +01: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
Jeff Walden
75b257996c
Bug 1052139 - Make more parts of the global object's prototype chain immutable, when we flip that switch. r=bz
...
--HG--
extra : rebase_source : 7d196acc689d26153ba2462ff2c78fc94ec7351a
2015-10-08 15:08:13 -07:00
Phil Ringnalda
23f82e924e
Back out 2 changesets (bug 1052139) for mochitest-jetpack bustage
...
Backed out changeset 3dc503961322 (bug 1052139)
Backed out changeset 6f278bc63614 (bug 1052139)
2015-10-02 22:10:24 -07:00
Jeff Walden
c29c28268a
Bug 1052139 - Make the [[Prototype]] of all objects on the window object's [[Prototype]] chain be immutable, BUT also disable the code that actually respects immutable-prototype handling. When we want to enable this, it'll then be a one-line change. r=bz
...
--HG--
extra : rebase_source : e8116d4aed87f03f4e0b91b60c6ccf43f040b31a
2014-11-28 02:58:23 -05:00
Martin Thomson
4574e04530
Bug 1155923 - Add Deprecated attribute to interfaces, r=peterv
...
--HG--
extra : transplant_source : q%B6%21%A22%A6%8Ftg%C8%1D%02%91/%C7%8A%AA%E2%C6g
2015-09-28 11:25:04 -07:00
Carsten "Tomcat" Book
4952084732
Backed out 3 changesets (bug 1155923) for causing test failures in promises-call.html
...
Backed out changeset 321a932e01a7 (bug 1155923)
Backed out changeset 6ac38acd6ab2 (bug 1155923)
Backed out changeset 2981db92416a (bug 1155923)
2015-09-28 14:02:41 +02:00
Martin Thomson
d4f1b7fa44
Bug 1155923 - Add Deprecated attribute to interfaces. r=peterv
...
--HG--
extra : transplant_source : %E7_%24v%EA%08%AB1%A2%2BPl%AE%85%B9-%A6%D9%FEG
2015-09-24 16:31:47 -07: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
Tom Schuster
e3fbb8bc43
Bug 603201 - Change GetProperty receiver argument to Value in the browser. r=smaug
2015-09-18 00:14:41 +02:00
Michael Layzell
0097c41e01
Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan
2015-09-12 16:53:33 -04:00
Cameron McCormack
57f66406e3
Bug 968923 - part 4 - hook up use counters to WebIDL bindings; r=bz
2015-02-05 12:53:01 -05:00
Boris Zbarsky
57621e1167
Bug 1135961. Implement subclassing of DOM objects. r=peterv
2015-07-31 13:30:55 -04:00
Olli Pettay
49e1f7bbd7
Bug 1183604, add some more assertions to help implementing new cycle collectable classes, r=mccr8
...
--HG--
extra : rebase_source : e9f4bf6a9dce11e816b0f4f0cf1bfad61f831eeb
2015-07-29 13:28:45 +03:00
Ryan VanderMeulen
a4bdad4b8a
Backed out changeset 40c187d91db4 (bug 1183604) for hazard analysis failures.
...
CLOSED TREE
2015-07-28 21:20:34 -04:00
Olli Pettay
d6c700fd74
Bug 1183604, add some more assertions to help implementing new cycle collectable classes, r=mccr8
...
--HG--
extra : rebase_source : 2afa00fa6890ec4f2634aa53d361fd837c6161ae
2015-07-28 20:02:15 +03:00
Kan-Ru Chen
5c2f3fc74e
Bug 1179718 - Rename CheckPermissions to CheckAnyPermissions. r=bz
2015-07-17 11:07:53 +08:00
Kan-Ru Chen
a5886f19c7
Bug 1179718 - Add a CheckAllPermissions extended attribute to WebIDL. r=bz
2015-07-17 11:06:23 +08:00
Nicholas Nethercote
97e7794926
Bug 1182973 - Use nsTHashtable::Iterator in dom/bindings/. r=bz.
...
Changing the return type of Enumerator from PLDHashOperator to void -- possible
because the only such functions always return PL_DHASH_NEXT -- is a double-win
here.
- It lets us remove the dependency on pldhash.h.
- It makes it easier to replace the enumeration with iteration.
--HG--
extra : rebase_source : ea66e7a287ba4577ebc5988fbf54ebfa902e67d5
2015-07-14 07:49:30 -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
Boris Zbarsky
8d3a6f26dd
Bug 1180851. Don't make ThrowMethodFailed an inline function, because there's no really good reason to and we might as well save the codesize. r=peterv
2015-07-09 22:51:28 -04:00
Boris Zbarsky
d39d28be5c
Bug 1180770
part 2. Remove the unused ifaceName/memberName arguments of ThrowMethodFailedWithDetails and rename it to ThrowMethodFailed. r=peterv
2015-07-09 22:51:28 -04:00