Ehsan Akhgari
1171444160
Bug 1149987 - Part 2: Make ErrorResult unassignable; r=bzbarsky
...
This object is not copyable, so it should probably not be
assignable either, especially since the compiler generated
copy constructor can potentially cause UAF issues on the
mMessage member, for example.
2015-04-08 10:27:36 -04:00
Ehsan Akhgari
451e8342c1
Bug 1149987 - Part 1: Make it possible to send an ErrorResult that doesn't encode a JS exception through the IPDL layer; r=bzbarsky
2015-04-08 10:27:35 -04:00
Nikhil Marathe
9b5f6b134f
Bug 1109751 - Consume FormData support in Fetch API. r=baku
...
--HG--
extra : __touch-noise__ : 2181078256
extra : transplant_source : %A4%7F%FF%9CV%9F%2C%F7%C1%A0%BBoc%CC%BB%0E%8E%F5%80%C1
2015-04-03 22:55:15 -07:00
Wes Kocher
e73d6e8c9e
Backed out 2 changesets (bug 1109751) for asan mochitest-3 failures
...
Backed out changeset 269ce19afa43 (bug 1109751)
Backed out changeset add6d1bd2e52 (bug 1109751)
2015-04-03 12:22:47 -07:00
Nikhil Marathe
dd5c91927a
Bug 1109751 - Consume FormData support in Fetch API. r=baku
...
--HG--
extra : transplant_source : %B0%0F%AB%E9%DBV%D1%86%980%28L%EC%CBI%0A%09%26%FDS
extra : histedit_source : 39fe8278cf135aa63a59ef4024432fab9ce5c7ee
2015-04-02 10:51:13 -07:00
Boris Zbarsky
94eab48905
Bug 1146333. Get rid of WrapCallThisValue and just use ToJSValue, now that we have it. r=peterv
2015-03-30 23:43:45 -04:00
Jason Orendorff
e55a1c46a2
Bug 1123875 - Add a test for strict assignment to a readonly WebIDL attribute. r=peterv.
...
--HG--
extra : rebase_source : 6ed902dfed6a7678f813fc21a4affef798484f1a
extra : source : 06dbe25231c283191c1cc4fea66c1c76add2c91c
2015-03-26 06:13:18 -05:00
Wes Kocher
2f6554bf7c
Backed out 20 changesets (bug 1138499, bug 1148750, bug 1149563, bug 1148652, bug 1123875, bug 1145636, bug 1147660, bug 1148568, bug 1142828) for talos other timeouts CLOSED TREE
...
Backed out changeset 3fc49391f7fe (bug 1148750)
Backed out changeset 75e867c1c39e (bug 1148750)
Backed out changeset 7f6a4e3976f0 (bug 1148750)
Backed out changeset 91d726011835 (bug 1149563)
Backed out changeset fc7c3cf0e526 (bug 1148652)
Backed out changeset 35a01c7e0f8d (bug 1148652)
Backed out changeset 3125cc5a7a65 (bug 1148652)
Backed out changeset a9f10724b83b (bug 1148568)
Backed out changeset 87132a806ab0 (bug 1147660)
Backed out changeset e6b410c7b847 (bug 1147660)
Backed out changeset c350fe54d9c0 (bug 1147660)
Backed out changeset e4b971996b94 (bug 1147660)
Backed out changeset f221db19fb75 (bug 1147660)
Backed out changeset c4599f0cff00 (bug 1142828)
Backed out changeset c7388a9c3935 (bug 1138499)
Backed out changeset 9b51b38317d6 (bug 1138499)
Backed out changeset ad243a3cd06f (bug 1138499)
Backed out changeset fafda276abd9 (bug 1138499)
Backed out changeset 0a00470fdc2a (bug 1145636)
Backed out changeset 06dbe25231c2 (bug 1123875)
--HG--
extra : amend_source : be3290b09642feacd7f517f1e354126b2e905998
2015-04-01 19:17:45 -07:00
Jason Orendorff
68464c731e
Bug 1123875 - Add a test for strict assignment to a readonly WebIDL attribute. r=peterv.
...
--HG--
extra : rebase_source : 3da66c3cd20099f907f58cdc0de2ce31e3bf95a8
2015-03-26 06:13:18 -05:00
Vladimir Vukicevic
223017214a
Bug 1148005; Update WebVR APIs based on latest spec changes; r=baku
2015-04-01 16:02:20 -04:00
Tom Schuster
ac250f9d73
Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv
2015-03-28 14:47:02 +01:00
Boris Zbarsky
bfe065abe8
Bug 1144397. Disallow using fill when dedent would do. r=peterv
2015-03-30 23:43:24 -04:00
L. David Baron
f04f3ed4a7
Back out changeset 64934914c29d (bug 1144397) for widespread test bustage, on a CLOSED TREE.
2015-03-30 21:52:35 -07:00
L. David Baron
8d99e883ef
Back out changeset 616e32e3da77 (bug 1146333) for widespread test bustage.
2015-03-30 21:52:07 -07:00
Boris Zbarsky
ca1bc95bfc
Bug 1146333. Get rid of WrapCallThisValue and just use ToJSValue, now that we have it. r=peterv
2015-03-30 23:43:45 -04:00
Boris Zbarsky
286af0ecae
Bug 1144397. Disallow using fill when dedent would do. r=peterv
2015-03-30 23:43:24 -04:00
Cameron McCormack
07051e8f27
Bug 1072101 - Part 2: Implement FontFaceSet.{entries,values}. r=peterv
2015-03-31 14:05:33 +11:00
Andrew McCreight
89727e3fac
Bug 1147951, part 3 - Remove unnecessary includes of nsIProgrammingLanguage. r=baku
2015-03-30 10:45:39 -07:00
Eddy Bruël
8f6d3f73d2
Bug 1092102 - Implement WorkerDebuggerGlobalScope.setImmediate;r=khuey
2015-03-30 13:54:38 +02:00
Andrew McCreight
69bad032ab
Bug 1147967 - Remove CreateStackFrameLocation. r=bholley
...
This method is defined on nsIXPConnect and StackFrame, but is not used.
Also the non-default constructor that for StackFrame that is no longer used.
2015-03-29 07:52:53 -07:00
Phil Ringnalda
70731646e2
Backed out changeset d72144153749 (bug 1147005) for being on top of a patch on top of a patch being backed out
...
CLOSED TREE
2015-03-28 10:39:09 -07:00
Tom Schuster
8a5dbf7c06
Bug 1147005 - Change JSAddPropertyOp signature. r=jorendorff,peterv
2015-03-28 14:47:02 +01:00
Cameron McCormack
6a34c73ca4
Bug 1146235 - Followup to address review comment correctly.
2015-03-28 15:05:04 +11:00
Cameron McCormack
03ca266d1b
Bug 1146235 - Part 2: Expose @@iterator aliases on XrayWrappers. r=peterv
2015-03-28 11:44:44 +11:00
Cameron McCormack
1350d06002
Bug 1146235 - Part 1: Add support for an [Alias] extended attribute on IDL operations. r=peterv
2015-03-28 11:44:39 +11:00
Cameron McCormack
cfe96041ae
Bug 1146234 - Allow non-object values to be used as the this value when invoking IDL callback functions. r=peterv
2015-03-28 11:44:29 +11:00
Nick Fitzgerald
34bc4ac51a
Bug 1038238 - Part 4: Rename JS::StringifySavedFrameStack to JS::BuildStackString; r=jorendorff
2015-03-27 13:08:46 -07:00
Nick Fitzgerald
2edf06beb3
Bug 1038238 - Part 0: Make js/src/vm/SavedStacks.h use 1-based column numbers,
...
like js::ComputeStackString and other browsers do; r=jorendorff
https://bugzilla.mozilla.org/show_bug.cgi?id=1038238
2015-03-27 13:08:46 -07:00
Jason Orendorff
1def388b28
Bug 1142794 - Change 'receiver' argument to SetProperty functions and ProxyHandler::set methods to be a HandleValue. r=Waldo.
...
Also: Change signature of these functions and methods to all have the same arguments in the same order: (cx, obj, id, v, receiver). Also change v from MutableHandleValue to HandleValue.
There is no change in behavior.
In fact the new error message `JSMSG_SET_NON_OBJECT_RECEIVER` is
impossible to trigger from scripts for now, I think (after re-reading
the whole patch with this in mind). JS_ForwardSetPropertyTo is the only
way to get a non-object receiver into the engine, but no caller
currently does so.
We're installing new pipes here, and they should work, but for now it's
the same cold water flowing through as before. Actually hooking up the
hot water is left for another bug (one with tests, not to put too fine a
point on it).
Notes:
* InvokeGetterOrSetter had to be split into two functions:
InvokeGetter takes a MutableHandleValue out-param,
InvokeSetter a HandleValue in-param.
* Watchpoints can still tamper with values being assigned. So can
JSSetterOps. I'm pleased we can support this craziness in a way that
doesn't have to spread via the type system to encompass the entire
codebase.
* Change in GlobalObject::setIntrinsicValue is not really a change.
Yes, it asserted before, but an exception thrown during self-hosting
initialization is not going to go unnoticed either.
* Since the receiver argument to js::SetProperty() is at the end now, it
makes sense for it to be optional. Some callers look nicer.
--HG--
extra : rebase_source : e89f916fe267800bc73890e11aceef5c4855b272
2015-03-01 13:16:19 -06:00
Boris Zbarsky
eb1c5a9b3a
Bug 1147193. Go back to having our accessors on JSStackFrame infallible. r=bholley
2015-03-26 23:05:16 -04:00
Eddy Bruël
7c855a15e6
Bug 1092102 - Implement WorkerDebuggerGlobalScope.reportError;r=khuey
2015-03-26 20:09:45 +01:00
Jason Orendorff
2e5f991fe0
Bug 1142784, part 2 - Change ProxyHandler::defineProperty() to make the desc argument a non-mutable handle. r=Waldo.
...
--HG--
extra : rebase_source : c40a50b3522e8306d68d8114fe576d4f43006d82
2015-02-17 11:58:43 -06:00
Terrence Cole
dd4ddb761b
Bug 1135985 - Split callback and marking tracers completely; r=jonco, r=mccr8
...
--HG--
extra : rebase_source : b2e435ebf64ec0bac42af7a8f0968578599fd67b
2015-02-25 13:11:37 -08:00
Wes Kocher
49bb55c007
Merge b2g-inbound to m-c a=merge CLOSED TREE
2015-03-23 16:47:58 -07:00
Jocelyn Liu
b83b288476
Bug 1114515 - Par h4: Implement Service, Characteristic, Descriptor interfaces for GATT client DiscoverServices API. r=btian, r=mrbkap
...
This patch covers
1) Add BluetoothGattService, BluetoothGattCharacteristic, BluetoothGattDescriptor interfaces
2) Create services, characteristics, descriptors from handling signals distributed by BluetoothGattManager
--HG--
extra : histedit_source : d5d881f0da1ac57c1ad8a0a59100ff6ba86bfde4
2015-03-23 03:27:00 -04:00
Ehsan Akhgari
3684011d00
Bug 1145631 - Part 2: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the WebIDL codegen; r=froydnj
2015-03-21 12:28:16 -04:00
Ehsan Akhgari
883849ee32
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
f41df78a76
Bug 1143529 part 2. Tighten up the assert in binding Wrap methods. r=peterv
2015-03-23 12:18:05 -04:00
Phil Ringnalda
c4745d28b1
Backed out 9 changesets (bug 1142775, bug 1139683, bug 1143810, bug 1142761, bug 1142784, bug 1142794, bug 1144819) for widespread bustage
...
CLOSED TREE
Backed out changeset 7613fc978d36 (bug 1142794)
Backed out changeset e5f0cb31263d (bug 1142784)
Backed out changeset dcd0af73ac84 (bug 1142784)
Backed out changeset 034f9c8e79ee (bug 1142784)
Backed out changeset ce0ee37e3ca9 (bug 1142775)
Backed out changeset 1519b8f2bbba (bug 1142761)
Backed out changeset 26fd55677841 (bug 1139683)
Backed out changeset 7ebc76a450c3 (bug 1144819)
Backed out changeset 92adb459d519 (bug 1143810)
2015-03-22 09:34:25 -07:00
Jason Orendorff
735dca6f1b
Bug 1142794 - Change 'receiver' argument to SetProperty functions and ProxyHandler::set methods to be a HandleValue. r=Waldo.
...
Also: Change signature of these functions and methods to all have the same arguments in the same order: (cx, obj, id, v, receiver). Also change v from MutableHandleValue to HandleValue.
There is no change in behavior.
In fact the new error message `JSMSG_SET_NON_OBJECT_RECEIVER` is
impossible to trigger from scripts for now, I think (after re-reading
the whole patch with this in mind). JS_ForwardSetPropertyTo is the only
way to get a non-object receiver into the engine, but no caller
currently does so.
We're installing new pipes here, and they should work, but for now it's
the same cold water flowing through as before. Actually hooking up the
hot water is left for another bug (one with tests, not to put too fine a
point on it).
Notes:
* InvokeGetterOrSetter had to be split into two functions:
InvokeGetter takes a MutableHandleValue out-param,
InvokeSetter a HandleValue in-param.
* Watchpoints can still tamper with values being assigned. So can
JSSetterOps. I'm pleased we can support this craziness in a way that
doesn't have to spread via the type system to encompass the entire
codebase.
* Change in GlobalObject::setIntrinsicValue is not really a change.
Yes, it asserted before, but an exception thrown during self-hosting
initialization is not going to go unnoticed either.
* Since the receiver argument to js::SetProperty() is at the end now, it
makes sense for it to be optional. Some callers look nicer.
--HG--
extra : rebase_source : 68cd15627a62728061e663706cb1ff8c7bb292a0
2015-03-01 13:16:19 -06:00
Jason Orendorff
db04193771
Bug 1142784, part 2 - Change ProxyHandler::defineProperty() to make the desc argument a non-mutable handle. r=Waldo.
...
--HG--
extra : rebase_source : 92dd18b10e100e7e2537c151a21d4f3be37e1c08
2015-02-17 11:58:43 -06:00
Tom Schuster
2de182147c
Bug 837630 - Stop hiding __proto__ from O.getOwnPropertyNames. r=Waldo,peterv,past
2015-03-19 17:42:15 +01:00
Boris Zbarsky
dc24477d79
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
d0ebde3bb7
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
41e04c02b0
Bug 1117172 part 1. Allow passing an optional aGivenProto to binding Wrap methods. r=peterv
2015-03-19 10:13:32 -04:00
Andrew McCreight
468e063778
Bug 1137536, part 3 - Move the top level DeferredFinalize functions into their own file. r=smaug
2015-03-18 11:36:03 -07:00
Andrew McCreight
fc0fb081b0
Bug 1137536, part 1 - Move DeferredFinalize out of the cyclecollector namespace. r=smaug
2015-03-18 11:36:03 -07:00
Milan Sreckovic
5fa1db7949
Bug 1129147 - Part 1. Take CanvasPath into a separate file, to avoid circular dependency. r=roc
...
--HG--
rename : dom/canvas/CanvasRenderingContext2D.h => dom/canvas/CanvasPath.h
2015-03-03 10:57:51 -05:00
Cameron McCormack
fcd38bba49
Bug 1141858 - Fix error message for unexpected extended attribute on dictionary members. r=bzbarsky
2015-03-14 16:34:40 +11:00
Ms2ger
656b9c4d5a
No bug - Add an explanatory message to the multiple-inheritance assertion in DOM bindings; rs=bz
...
Review was granted in
<http://logs.glob.uno/?c=mozilla%23content&s=5+Dec+2013&e=5+Dec+2013#c162605 >.
2015-03-13 13:01:28 +01:00
Jonathan Griffin
d1c61bc9b6
Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown
2015-02-06 16:30:37 -08:00
Jason Orendorff
205f49b948
Bug 1130537 - Reimplement js::SetPropertyIgnoringNamedGetter to follow ES6 draft rev 32 9.1.9 [[Set]]. r=efaust.
...
--HG--
extra : rebase_source : 6f7d04b419f7a0d31ab7914df60c51db2658c31f
2015-02-06 16:55:49 -06:00
Andrew McCreight
b1093185b2
Bug 1114804 - Make ISupports use the standard deferred finalizer code. r=peterv
2015-03-10 08:35:47 -07:00
Wes Kocher
8e389f1730
Merge inbound to m-c a=merge CLOSED TREE
2015-03-09 18:27:28 -07:00
Boris Zbarsky
5d2ae0a555
Bug 1140573 part 4. Drop the parent argument from js::NewFunctionByIdWithReserved. r=waldo
2015-03-09 12:50:08 -04:00
Boris Zbarsky
cc3b42e52a
Bug 1140573 part 3. Drop the parent argument from js::NewFunctionWithReserved. r=waldo
2015-03-09 12:50:07 -04:00
Boris Zbarsky
dcb007a0d8
Bug 1140573 part 1. Drop the parent argument from JS_NewFunction. r=waldo
2015-03-09 12:50:03 -04:00
Boris Zbarsky
5d69db0b28
Bug 1140582. Remove the parent argument from JS_NewObjectWithUniqueType. r=waldo
2015-03-09 12:49:50 -04:00
Paolo Amadini
e5306bdeb5
Bug 1140472 - Set an async stack when invoking promise handlers. r=bz
2015-03-09 12:36:29 +00:00
Phil Ringnalda
8f5c1764fb
Merge m-c to m-i
2015-03-07 19:39:49 -08:00
Phil Ringnalda
d5d934be28
Merge f-t to m-c, a=merge
2015-03-07 19:38:53 -08:00
Paolo Amadini
f638425f9d
Bug 1140435 - Part 2 - Allow JS code to provide an async stack when calling a function. r=bz
2015-03-07 13:30:34 +00:00
Paolo Amadini
6652a00032
Bug 1140435 - Part 1 - Add the asyncCause and asyncCaller properties to nsIStackFrame. r=bz
2015-03-07 13:30:34 +00:00
Jon Coppeard
aee7dfb6c9
Bug 1138874 - Fix comments as per review feedback r=bz DONTBUILD
2015-03-06 15:06:57 +00:00
Boris Zbarsky
f0ef2a86aa
Bug 1131802 part 2. Allocate functions with reserved slots for DOM Xrays so we can store the Xray wrapper reference in those slots instead of as the function parent. r=peterv
2015-03-06 16:33:31 -05:00
Catalin Badea
c230b69ed6
Bug 1058311 - Update client interface. Implement matchAll WindowClient. r=baku
2015-03-06 15:04:49 +02:00
Boris Zbarsky
e0532c037e
Bug 1122238 part 3. Drop all the DOMException-cloning and sanitization gunk we added in bug 1107592 and bug 1107953 and bug 1117242 . r=bholley
2015-03-06 01:08:06 -05:00
Boris Zbarsky
1aafe8f735
Bug 1122238 part 2. Stop caching things in JSStackFrame when we're called over Xrays. r=bholley
2015-03-06 01:08:06 -05:00
Boris Zbarsky
e09c0a93ab
Bug 1122238 part 1. Switch to using the new stackframe APIs in JSStackFrame. r=bholley
2015-03-06 01:08:06 -05:00
Boris Zbarsky
19d83a360f
Bug 1139964 part 1. Factor out the guts of BackstagePass::Resolve and BackstagePass::Enumerate to allow reuse for other globals that want to opt in to Exposed=System WebIDL annotations. r=smaug
2015-03-06 01:08:06 -05:00
Jan de Mooij
1e027edc3b
Bug 1140324 - Remove __noSuchMethod__ handling from WebIDL parser and throw an exception instead. r=peterv
...
--HG--
extra : rebase_source : 46e3fec0c5b1f399d209dd5e4038eeed6aabdc28
2015-03-07 16:35:04 +01:00
Jason Orendorff
29bfe274bb
Bug 1113369, part 6 - [[PreventExtensions]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
--HG--
extra : rebase_source : 08631a46c776f6d9e60794ad61308240dde3d94d
2015-02-04 12:01:01 -06:00
Jason Orendorff
cc85989b86
Bug 1113369, part 5 - [[Delete]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
--HG--
extra : rebase_source : 64b0e44bbb7673d139fab920243566db4844b517
2015-02-04 10:20:04 -06:00
Jason Orendorff
9a17368e8e
Bug 1113369, part 4 - [[Set]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
--HG--
extra : rebase_source : ee44b9a7c933addd7f26643443900843b984587b
2015-02-03 19:51:40 -06:00
Jason Orendorff
de9e3b99dc
Bug 1113369, part 3 - [[DefineOwnProperty]] ObjectOpResult support. r=Waldo, r=bz in dom, r=dvander in js/ipc, r=bholley in js/xpconnect.
...
Add an ObjectOpResult out-param for DefineProperty functions everywhere. We leave a few js::DefineProperty() convenience functions with no *result out-param. These have strict behavior: that is, they automatically check the result and throw if it is false. In bug 1125624 these strict signatures may end up being called DefinePropertyOrThrow, as that is what the spec calls it.
--HG--
extra : rebase_source : 36439a8fa433c453f63b02c93fceaf0d8b9e9626
2015-01-30 11:37:07 -06:00
L. David Baron
8de963d8ad
Back out bug 1131802 (changesets 80e90f586329 and 35c268f162db) and patch 2 from bug 1131805 (changeset 4139522bf814) on a CLOSED TREE for assertion failures.
...
Assertion failure: (ptrBits & 1) == 0, at ../../dist/include/js/Value.h
:871
called from XrayCreateFunction
2015-03-06 15:14:52 -08:00
Boris Zbarsky
05aaddd360
Bug 1131805 part 1. Remove remaining JS_GetParent and js::GetObjectParent uses in Gecko. r=bholley
2015-03-06 16:33:31 -05:00
Boris Zbarsky
6523d4990f
Bug 1131802 part 2. Allocate functions with reserved slots for DOM Xrays so we can store the Xray wrapper reference in those slots instead of as the function parent. r=peterv
2015-03-06 16:33:31 -05:00
Boris Zbarsky
824ea37eed
Bug 1139604. Remove incorrect assert from ArrayCache::EntrySlotMustExist and the unused GetUnforgeableHolder function. r=petev
2015-03-06 16:33:30 -05:00
Jon Coppeard
0edff16cda
Bug 1138874 - Change ReparentWrapper() to avoid multiple JS objects pointing to the same native r=bholley
2015-03-05 13:39:53 +00:00
Eddy Bruël
a95bcbb9fd
Bug 1092102 - Implement a WorkerDebuggerGlobalScope;r=khuey
2015-03-04 00:51:53 +01:00
Ehsan Akhgari
c5cbd265c3
Bug 1050456 - Part 2: Add a nsGlobalWindow::GetIsPrerendered helper
2015-03-04 01:31:08 -05:00
Ehsan Akhgari
0857b0109c
Bug 1050456 - Part 1: Prevent prerendered pages from showing the slow script dialog; r=bzbarsky
2015-03-04 01:30:47 -05:00
Boris Zbarsky
8346b9dfaf
Bug 928336. Make defining unforgeable properties on objects faster by just copying them from an unforgeable holder object. r=peterv
2015-03-03 21:01:58 -05:00
Boris Zbarsky
1884c1aea6
Bug 1136896. Speed up fill() and dedent() by memoizing some of the work they currently end up doing on each call. r=jorendorff
2015-03-03 07:12:00 -05:00
Ben Kelly
f9064fc636
Bug 940273 - Part 4 - Initial implementation of Service Worker Cache. r=ehsan,baku,janv
2015-03-02 14:20:00 +01:00
Josh Matthews
65badaa73f
Bug 1137250 - Fix incorrect initialization of Request object. r=bz
2015-02-26 15:40:00 -05:00
Jan de Mooij
db18ff3df9
Bug 1137523 - Unprefix most js_* functions. r=bhackett CLOSED TREE
2015-02-27 16:08:15 +01:00
Boris Zbarsky
f027a773ea
Bug 1136925 part 3. Stop passing parents to js::NewProxyObject. r=waldo
2015-02-26 15:58:59 -05:00
Boris Zbarsky
407a8559b0
Bug 1136925 part 1. Stop passing a parent to JS_CloneObject. r=waldo
2015-02-26 15:58:59 -05:00
Wes Kocher
f657cd0135
Backed out 4 changesets (bug 1136925) for potentially busting m-e10s-dt on a CLOSED TREE
...
Backed out changeset 331761aaae22 (bug 1136925)
Backed out changeset 2faa0e91fe23 (bug 1136925)
Backed out changeset a00f2530c911 (bug 1136925)
Backed out changeset d5e658bc0792 (bug 1136925)
2015-02-26 23:17:34 -08:00
Boris Zbarsky
8552abcc45
Bug 1136925 part 3. Stop passing parents to js::NewProxyObject. r=waldo
2015-02-26 15:58:59 -05:00
Boris Zbarsky
78b6722596
Bug 1136925 part 1. Stop passing a parent to JS_CloneObject. r=waldo
2015-02-26 15:58:59 -05:00
Boris Zbarsky
2fe370bd0d
Bug 1133746. Allow DOMProxyShadows to communicate to the JIT whether the shadowing is done by the expando object or not. r=efaust,peterv
2015-02-26 12:30:02 -05:00
Boris Zbarsky
30f7932607
Bug 1135810. Add more explicit checks for whether a descriptor wants Xrays or not instead of assuming that Xrays are desired if and only if descriptor.workers is false. r=peterv
2015-02-26 09:40:08 -05:00
Boris Zbarsky
bf177935d6
Bug 1136292 part 3. Stop passing a global as the parent arg to JS_NewObjectWithGivenProto in bindings code. r=peterv
2015-02-26 09:40:07 -05:00
Boris Zbarsky
1de627093f
Bug 1136292 part 1. Stop passing a parent to BindingJSObjectCreator methods, since it's always the global anyway. r=peterv
2015-02-26 09:40:07 -05:00
Boris Zbarsky
746d0e6061
Bug 1133760 part 2. Get rid of unforgeable holders; just store unforgeable properties for DOM proxies directly on the expando object. r=peterv
2015-02-26 09:40:07 -05:00
Boris Zbarsky
92822b6be2
Bug 1133760 part 1. The ownPropNames hook can't be called via Xrays, so stop trying to handle that case. r=peterv
2015-02-26 09:40:07 -05:00
Boris Zbarsky
a9831518b7
Bug 1134730. DOM proxy finalizers should not assume that the JS object has an actual reference to the DOM object (and in particular that the slot it's stored in is a private slot). r=peterv
2015-02-26 09:40:07 -05:00
Boris Zbarsky
05d3e6df24
Bug 1135803. Take out the bits that try to handle interface types mapping to JSObject* in worker descriptors, since we never do that anymore. r=smaug
2015-02-24 16:04:22 -05:00
Boris Zbarsky
0417f5bf22
Bug 1135792
. Stop assuming that every binding for a global with a non-worker descriptor is a binding for Window. r=smaug
2015-02-24 16:04:22 -05:00
Boris Zbarsky
de2aa3786f
Bug 1135151. Add a WrapNativeParent specialization for the nsIGlobalObject case, and make Event return nsIGlobalObject as its parent object. r=smaug
2015-02-23 10:03:40 -05:00
Boris Zbarsky
9e8395b4c9
Bug 742194 part 1. Add support for throwing uncatchable exceptions to Web IDL bindings. People keep asking for this. r=khuey
2015-02-20 23:58:36 -05:00
Boris Zbarsky
5c011f5e57
Bug 1134955
. Be more careful with how we stringify property ids for error message reporting. r=jorendorff
2015-02-20 14:16:26 -05:00
Catalin Badea
9804afb257
Bug 1058311 - Remove prefix for SWClients. Rename getServiced to matchAll. Add stub query options for matchAll r=baku
...
--HG--
rename : dom/webidl/ServiceWorkerClient.webidl => dom/webidl/Client.webidl
rename : dom/webidl/ServiceWorkerClients.webidl => dom/webidl/Clients.webidl
rename : dom/workers/test/serviceworkers/test_get_serviced.html => dom/workers/test/serviceworkers/test_match_all.html
2015-02-20 17:16:17 +02:00
Ben Kelly
e3f6f3f034
Bug 1073231 Implement Request and Response Clone() methods. r=nsm r=baku
2015-02-19 20:24:24 -05:00
Boris Zbarsky
b864faa155
Bug 1134112 part 2. When doing dictionary init, if we have a non-optional union member just go ahead and uninit it before we try initing it. That way even if it's already been initialized (e.g. because we default-initialized at some point) things will still work correctly. r=peterv
2015-02-19 14:36:35 -05:00
Boris Zbarsky
fc8317f7a4
Bug 1134112 part 1. When doing fast-init of a Web IDL dictionary, do fast-init of its dictionary members and its ancestors too. r=peterv
2015-02-19 14:36:26 -05:00
Josh Matthews
86618832b4
Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug
2015-02-18 20:34:29 -05:00
Nikhil Marathe
302ff75d63
Bug 1126815 - Implement Response.finalURL. r=bkelly,baku
...
--HG--
extra : rebase_source : 5180d5657c60c7aec33e9f750d24cbee9a2890e2
2015-02-17 10:23:34 -08:00
Ryan VanderMeulen
5abea51e9a
Backed out changeset 25f90464e93b (bug 1065216) for Android mochitest failures.
2015-02-18 16:00:33 -05:00
Josh Matthews
cb61a019fc
Bug 1065216 - Dispatch a fetch event to workers when controlled pages initiate a network load. r=baku,mayhemer,smaug
2015-02-18 14:10:52 -05:00
Carsten "Tomcat" Book
08fafcb3e2
merge mozilla-inbound to mozilla-central a=merge
2015-02-16 15:59:56 +01:00
Jocelyn Liu
71a7aa2236
Bug 1063449 - Add and implement GATT client connection related bluetooth Web APIs. r=btian, r=bz
...
This patch mainly covers:
1) Implement register/unregister client, connect/disconnect methods in BluetoothGatt object.
2) Add/Modify related webidls for 1).
3) Implement result handlers, notifications in BluetoothGattManager.
2015-02-13 17:13:00 +01:00
Boris Zbarsky
a12c99976e
Bug 1131096. Use IDLExposureMixins for IDLInterfaceMember. r=peterv
2015-02-13 14:34:54 -05:00
Boris Zbarsky
08dda68138
Bug 1131796. Don't parent the DOM proxy expando object to the proxy. r=peterv
2015-02-13 14:34:53 -05:00
Wes Kocher
e1e02706d9
Backed out changeset 4d03c3ba2969 (bug 1131796) for bustage on a CLOSED TREE
...
--HG--
extra : amend_source : 07e872ce971a620a08b68fbc2b3afdcccaff8539
2015-02-13 13:25:45 -08:00
Wes Kocher
9d8054d6eb
Backed out changeset 6e0973b390f5 (bug 1131096)
2015-02-13 13:25:31 -08:00
Tom Schuster
797b78de4b
Bug 1124934 - Add a HasProperty ObjectOp. r=jorendorff
2015-02-13 12:20:02 +01:00
Boris Zbarsky
fd45968faa
Bug 1131096. Use IDLExposureMixins for IDLInterfaceMember. r=peterv
2015-02-13 14:34:54 -05:00
Boris Zbarsky
a9e3874e0b
Bug 1131796. Don't parent the DOM proxy expando object to the proxy. r=peterv
2015-02-13 14:34:53 -05:00
Nick Fitzgerald
ead84e4acf
Bug 1117242 - SavedFrame objects should do principal checks for every accessor; r=jimb,jandem,bz
2015-02-13 09:21:50 -08:00
Boris Zbarsky
436b43b3ce
Bug 1132655. Don't allow conversions from DOMString to const XPCOM string references, since it's meant to be an outparam only. r=smaug
2015-02-12 18:39:26 -05:00
Boris Zbarsky
1dcfd471fc
Bug 1132252. An interface with an interface object should not inherit from one that's [NoInterfaceObject]. r=smaug
2015-02-12 18:39:26 -05:00
Tom Schuster
43324bd36f
Bug 1125437 - Get rid of SetPropertyAttributes and use DefineProperty to follow ES6 specification. r=efaust
2015-02-11 23:40:47 +01:00
Tom Schuster
fcb11bbe71
Bug 1131003 - Move jsproxy.h to js/Proxy.h. r=efaust
...
--HG--
rename : js/src/jsproxy.h => js/public/Proxy.h
2015-02-10 19:58:18 +01:00
Boris Zbarsky
efe41d396b
Bug 1127501. Treat external interfaces as only being exposed in Window in Web IDL bindings. r=peterv
2015-02-09 11:42:27 -05:00
Boris Zbarsky
ff62f8c4c5
Bug 1130364. Fix the handling of nestingLevel to actuall increment it more than once. r=peterv
2015-02-09 11:42:27 -05:00
Boris Zbarsky
a5d07f87ac
Bug 1127341. If we make our codegen for a binding depend on the exposure set of an interface argument to one of the binding's methods, we need to adjust the dependency set of the binding accordingly, so we'll regenerate if the exposure set changes. r=khuey
2015-02-09 11:42:26 -05:00
Dhi Aurrahman
5b8f79fc23
Bug 1125766 - Throw proper error types for TextEncoder(), TextDecoder() and TextDecoder.decode(). r=bz
2015-02-04 18:46:26 +07:00
JW Wang
a5730f41d2
Bug 1128379 - improve error handling in MediaKeys::CreateSession. r=bz
2015-02-01 19:12:00 +01:00
Jason Orendorff
8f9fef2147
Bug 1127121 - Remove property key type splitting in ObjectOps. r=bhackett.
...
--HG--
extra : rebase_source : dab65791e3efc9fc625365b6aa5dc26d5cad19fb
2015-01-28 17:12:44 -06:00
Mike Hommey
a35dbaeebf
Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
...
--HG--
rename : memory/mozalloc/fallible.h => memory/fallible/fallible.h
2015-02-02 09:56:13 +09:00
Tom Schuster
42f3ec261e
Bug 1127443 - Move some JS_NewObject callers to JS_NewObjectWithGiveProto
2015-01-31 16:18:51 +01:00
JW Wang
437228dab0
Bug 1121332. Part 4 - implement MediaKeySession.keyStatuses and remove MediaKeySession.getUsableKeyIds. r=bz.
2015-01-31 13:23:07 +13:00
Boris Zbarsky
3d347c5027
Bug 1127206. Don't try to do binding UnwrapArgImpl on worker threads. It can't do anything useful there. r=peterv
2015-01-30 13:54:43 -05:00
Tooru Fujisawa
22c2568415
Bug 1069416 - Part 7: Remove JS_HAS_SYMBOLS from dom. r=smaug
2015-01-28 13:06:38 +09:00
Jeff Walden
e1844a8d25
Bug 1112774 - Add a raft of other conversion methods to js/public/Conversions.h past just JS::ToObject. r=jorendorff
...
--HG--
extra : rebase_source : 5d04a08a8fd51952283ce2a819149da035311b59
2014-12-17 13:50:20 -08:00
Bill McCloskey
2f3d90830b
Bug 1123461 - Make a real interface for js/ipc (r=dvander)
2015-01-26 13:32:18 -08:00
Ehsan Akhgari
3ccf064efa
Bug 1069719 follow-up: Fix indentation
...
DONTBUILD
2015-01-26 11:23:49 -05:00
Ehsan Akhgari
866d758e54
Bug 1069719 - Abort the execution of scripts when a prerendered page calls an IDL blacklisted function; r=bzbarsky
2015-01-26 11:02:56 -05:00
Gijs Kruitbosch
08efec2486
Bug 1116010 - ensure nsITreeView is already QId when returned, r=peterv
2015-01-26 12:05:15 +00:00
Masatoshi Kimura
6cc5dabbee
Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo
2015-01-26 07:22:11 +09:00
Boris Zbarsky
a98237e46b
Bug 1123541. Make sure to assign to resultVar in the binding call generator even if resultVar is predeclared, as long as we have a result to assign. r=peterv
2015-01-24 22:40:53 -05:00
Phil Ringnalda
760b4604b1
Back out 2 changesets (bug 1125351, bug 1069719) for m-oth bustage
...
CLOSED TREE
Backed out changeset fb315ec11af4 (bug 1125351)
Backed out changeset 0ab33c2362cf (bug 1069719)
2015-01-24 14:52:07 -08:00
Ehsan Akhgari
2813c8cf14
Bug 1125351 - Make nsIDocShell.isPrerendered infallible; r=bzbarsky
2015-01-24 15:14:01 -05:00
Ehsan Akhgari
e2812f5ac3
Bug 1069719 - Abort the execution of scripts when a prerendered page calls an IDL blacklisted function; r=bzbarsky
2015-01-24 15:13:28 -05:00
Tom Schuster
7f95393f87
Bug 1122619 - Remove getPropertyAttributes object ops. r=jorendorff
2015-01-24 16:38:08 +01:00
Tom Schuster
66ad9a2e49
Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz
2015-01-24 16:38:08 +01:00
Nikhil Marathe
39a14f36e2
Bug 1113621 - Rename InstallPhaseEvent to ExtendableEvent. r=baku relanding because it wasn't supposed to be backed out on a CLOSED TREE
...
Change Exposed=ServiceWorker for all ServiceWorker events.
Move Func= exposure check to ServiceWorker.
--HG--
rename : dom/webidl/InstallPhaseEvent.webidl => dom/webidl/ExtendableEvent.webidl
extra : source : 5ed6d1902cc7bafbf9ffeaf35815c56cdd8f8c0d
extra : amend_source : eab06a362baf7545b9b61e28316666c2ec76acac
2014-11-06 07:57:57 -08:00
Wes Kocher
9a6d8ea64e
Backed out changeset 5ed6d1902cc7 (bug 1113621) for asan mochitest-4 bustage on a CLOSED TREE
...
--HG--
rename : dom/webidl/ExtendableEvent.webidl => dom/webidl/InstallPhaseEvent.webidl
2015-01-23 19:49:51 -08:00
Nikhil Marathe
f3cc077f51
Bug 1122677 - Disallow request body when method is HEAD/GET.
...
Spec bug https://www.w3.org/Bugs/Public/show_bug.cgi?id=27846
and :annevk OKed putting the check in the constructor and throwing http://logs.glob.uno/?c=content#c259382
--HG--
extra : rebase_source : 224da5d5f19387ffd95fc42c38a99b0e25427551
2015-01-16 13:08:19 -08:00
Nikhil Marathe
1fe9e0929e
Bug 1121682 - fetch() should reject with TypeError
...
--HG--
extra : rebase_source : 9e8d5e193695b856280c769dccc128c4ce4797d3
2015-01-14 13:43:27 -08:00
Nikhil Marathe
bb20c13405
Bug 1113621 - Rename InstallPhaseEvent to ExtendableEvent. r=baku
...
Change Exposed=ServiceWorker for all ServiceWorker events.
Move Func= exposure check to ServiceWorker.
--HG--
rename : dom/webidl/InstallPhaseEvent.webidl => dom/webidl/ExtendableEvent.webidl
extra : rebase_source : c9d314c6cffd577ab7309eb9e39e7d80f2f294f7
2014-11-06 07:57:57 -08:00
Boris Zbarsky
7f78049fc1
Bug 1107443 part 6. Make attempts to define a non-configurable property via WindowProxy throw. r=peterv,jorendorff
2015-01-23 09:54:15 -05:00
Boris Zbarsky
cbb271e250
Bug 1107443 part 2. Stop defining non-configurable properties on the window in dom and xpconnect JS files. r=peterv
2015-01-23 09:54:14 -05:00
Wes Kocher
c1bec44889
Backed out 3 changesets (bug 1123461, bug 1123090) for windows build bustage
...
Backed out changeset 2c442905d0af (bug 1123461)
Backed out changeset d7aa4c72ebab (bug 1123461)
Backed out changeset 8bb689ec8086 (bug 1123090)
2015-01-22 21:04:33 -08:00
Bill McCloskey
e535bf8aa7
Bug 1123461 - Make a real interface for js/ipc (r=dvander)
2015-01-22 20:00:19 -08:00
Tom Schuster
269e651092
Bug 1122552 - Introduce [[GetOwnProperty]] object op. r=jorendorff,bz
2015-01-22 17:17:26 +01:00
Ehsan Akhgari
4dd401ec2f
Bug 1123113 - Mark ParentObject as stack class, and its mObject member as non-owning; r=bzbarsky
2015-01-21 11:21:09 -05:00
Boris Zbarsky
d68bc247c4
Bug 1121688. Filter out overloads with non-worker-exposed arguments when generating worker bindings. r=peterv
2015-01-20 16:44:14 -05:00
Ehsan Akhgari
c2a18b5a9a
Bug 1123114 - Mark DOMString::mStringBuffer as unsafe; r=smaug
2015-01-18 18:43:02 -05:00
Phil Ringnalda
53a5e2bb9c
Back out 3 changesets (bug 885982, bug 1118063) for b2g mochitest-6 bustage
...
CLOSED TREE
Backed out changeset 865e7bc208df (bug 885982)
Backed out changeset 9ede577f5ada (bug 885982)
Backed out changeset 6ccc86f7429e (bug 1118063)
--HG--
rename : dom/network/interfaces/nsITCPServerSocketInternal.idl => dom/network/interfaces/nsIDOMTCPServerSocket.idl
2015-01-17 13:26:10 -08:00
Josh Matthews
2e2e3a6cef
Bug 885982 - Convert MozTCPSocket to WebIDL. r=baku
2013-06-24 16:50:00 -04:00
Josh Matthews
ce0dd27e0a
Bug 1118063 - Convert TCPServerSocket to WebIDL. r=baku,smaug,mayhemer,asuth
...
--HG--
rename : dom/network/interfaces/nsIDOMTCPServerSocket.idl => dom/network/interfaces/nsITCPServerSocketInternal.idl
2015-01-17 11:57:41 -05:00
Boris Zbarsky
0221e36996
Bug 1118978 part 3. Add support for DependsOn=DeviceState. r=peterv
2015-01-15 17:39:01 -05:00
Boris Zbarsky
01f8cea46f
Bug 1118978 part 2. Introduce [Affects] and [DependsOn] extended attributes in Web IDL. r=peterv
2015-01-15 17:39:01 -05:00
Boris Zbarsky
cb9b43858f
Bug 1118978 part 1. Introduce "Affects" and "DependsOn" state for IDL attributes and operations and desugar [Pure] and [Constant] into that state. r=peterv
...
This does not change the generated binding code in any way for our existing IDL files.
2015-01-15 17:39:01 -05:00
Jeff Gilbert
625fccbb86
Bug 1109945 - Rewrite shader/program handling. - r=kamidphish
2015-01-15 15:40:39 -08:00
Wes Kocher
7777c308be
Backed out 4 changesets (bug 1118978) for b2g build bustage on a CLOSED TREE
...
Backed out changeset e0ecb643aa2b (bug 1118978)
Backed out changeset bf31c6661b2c (bug 1118978)
Backed out changeset 5a4839c2fd53 (bug 1118978)
Backed out changeset 40b84c88ed16 (bug 1118978)
2015-01-15 15:52:41 -08:00
Boris Zbarsky
6a93d5c443
Bug 1107953 part 5. Add tests for promise rejections with content-side DOMExceptions, and fix the promise code so those tests actually pass. r=bholley
2015-01-15 17:39:02 -05:00
Boris Zbarsky
24431c3a52
Bug 1107953 part 3. Make Promise pass in their object compartment when calling their various callbacks. r=bholley
...
--HG--
rename : dom/bindings/test/test_exception_options_from_jsimplemented.html => dom/bindings/test/test_promise_rejections_from_jsimplemented.html
2015-01-15 17:39:02 -05:00
Boris Zbarsky
1b79c3c8c8
Bug 1107953 part 2. Change codegen to output an aCompartment argument on all callbacks that have an aExceptionHandling argument. r=peterv
2015-01-15 17:39:02 -05:00
Boris Zbarsky
8615709f13
Bug 1107953 part 1. Change the invariants around aCompartment in CallSetup to allow passing it even when the exception handling mode is eRethrowExceptions. r=bholley
2015-01-15 17:39:01 -05:00
Boris Zbarsky
7d49fcea6d
Bug 1118978 part 3. Add support for DependsOn=DeviceState. r=peterv
2015-01-15 17:39:01 -05:00
Boris Zbarsky
b2b9e0773f
Bug 1118978 part 2. Introduce [Affects] and [DependsOn] extended attributes in Web IDL. r=peterv
2015-01-15 17:39:01 -05:00
Boris Zbarsky
cad2943fbf
Bug 1118978 part 1. Introduce "Affects" and "DependsOn" state for IDL attributes and operations and desugar [Pure] and [Constant] into that state. r=peterv
...
This does not change the generated binding code in any way for our existing IDL files.
2015-01-15 17:39:01 -05:00
Ms2ger
b83d21c58c
Bug 914067 - Remove JSVAL_VOID from dom/; r=jst
2015-01-14 08:59:06 +01:00
Peter Van der Beken
dc3a33aa88
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make rooting analysis happy. r=bz.
...
--HG--
extra : rebase_source : 54a1e408aec6c7485152f18693047b2992251aff
2015-01-08 22:56:42 +01:00
Peter Van der Beken
5952bf28d9
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make VRFieldOfView use a binding that owns its native. r=vlad.
...
--HG--
extra : rebase_source : 001706183a7ed9d7ec96b2f9bd0813bde6aaa5b1
2014-12-11 20:15:32 +01:00
Peter Van der Beken
a27df3ec70
Bug 1096328 - Remove nativeOwnership from Bindings.conf, remove the now unused nativeOwnership property. r=bz.
...
--HG--
extra : rebase_source : 1d4d543c6d32c0f3cd69fc8d360bc07ace341699
2014-11-01 15:25:55 +01:00
Peter Van der Beken
87bee510d9
Bug 1096328 - Remove nativeOwnership from Bindings.conf, don't condition wrapperCache on having a refcounted type. r=bz.
...
--HG--
extra : rebase_source : bb311c61db74fce4993bf7e4b781730e23ca16fa
2014-11-01 15:22:21 +01:00
Peter Van der Beken
6bf82f2628
Bug 1096328 - Remove nativeOwnership from Bindings.conf, change a python check for a refcounted type to a static_assert. r=bz.
...
--HG--
extra : rebase_source : 3b9396921576b07ae3e6403ecb562502d75e5f16
2014-11-01 15:20:23 +01:00
Peter Van der Beken
cff93906c9
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make example code spit out a refcounted class always. r=bz.
...
--HG--
extra : rebase_source : 0b4ec833f40a8593283554b53626a1d8fed97282
2014-11-01 15:15:42 +01:00
Peter Van der Beken
d1986de6f9
Bug 1096328 - Remove nativeOwnership from Bindings.conf, autodetect the right smart pointer for owned and refcounted objects. r=bz.
...
--HG--
extra : rebase_source : ef48d9f72bdbc4891206841d5c8f26fd5140ac3d
2014-11-01 15:08:00 +01:00
Peter Van der Beken
5cf1ca0a14
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make WrapNewBindingNonWrapperCachedObject work for owned objects. r=bz.
...
--HG--
extra : rebase_source : 5c8df69bacf2fbe00dfbb864100144850c75c10a
2014-11-01 15:00:47 +01:00
Peter Van der Beken
4d7c6b1523
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make the WrapObject signature for non-refcounted objects the same as for refcounted objects. r=bz.
...
* * *
[mq]: owned_fold.patch
--HG--
extra : rebase_source : 1eec318046dae59e740ee5409a97c7cbfd88c9b1
2014-11-01 15:00:28 +01:00
Peter Van der Beken
9d5d3dc23d
Bug 1096328 - Remove nativeOwnership from Bindings.conf, templatize deferred finalization. r=bz.
...
--HG--
extra : rebase_source : 2486e80073d49ffc5ed93676382846fe7c87bd64
2014-11-01 14:48:19 +01:00
Peter Van der Beken
2130acfa6b
Bug 1096328 - Remove nativeOwnership from Bindings.conf, add template to detect refcounted classes. r=bz.
...
--HG--
extra : rebase_source : 48ddff175ca379a0fcda1511c822f920246a04bc
2014-11-01 14:10:59 +01:00
Peter Van der Beken
c542654cd8
Bug 1096328 - Remove nativeOwnership from Bindings.conf, reorganize checks for members in BindingUtils.h. r=bz.
...
--HG--
extra : rebase_source : 009f3303f735b988d455850007072f3a39a76782
2014-11-01 14:04:43 +01:00
Boris Zbarsky
dc9744dbac
Bug 1113827 part 1. Automatically mark Web IDL [NewObject] methods that return a JS type as fallible. r=peterv
2015-01-12 11:52:21 -05:00
Carsten "Tomcat" Book
b8dd41d84c
Backed out 12 changesets (bug 1096328) for M11 and M5 Test failures on a CLOSED TREE
...
Backed out changeset 12dd1ad43923 (bug 1096328)
Backed out changeset 4a067de94f22 (bug 1096328)
Backed out changeset 676112a4f092 (bug 1096328)
Backed out changeset e2e64e751ece (bug 1096328)
Backed out changeset 9ed945e9a8a5 (bug 1096328)
Backed out changeset 47be69b84be5 (bug 1096328)
Backed out changeset d6e68ba4846d (bug 1096328)
Backed out changeset 899d8cd8c4e8 (bug 1096328)
Backed out changeset 55c831086864 (bug 1096328)
Backed out changeset 6005fd357342 (bug 1096328)
Backed out changeset 0f330a5dd346 (bug 1096328)
Backed out changeset c37e10cff765 (bug 1096328)
2015-01-12 14:48:15 +01:00
Peter Van der Beken
695a5c75e0
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make rooting analysis happy. r=bz.
...
--HG--
extra : rebase_source : 976adeed1f271906628adcf10e3f5ea02487ab5b
2015-01-08 22:56:42 +01:00
Peter Van der Beken
cd0864e1c1
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make VRFieldOfView use a binding that owns its native. r=vlad.
...
--HG--
extra : rebase_source : 002dc062e271722fc4914f19362489de8420d3dd
2014-12-11 20:15:32 +01:00
Peter Van der Beken
eecdaa8a30
Bug 1096328 - Remove nativeOwnership from Bindings.conf, remove the now unused nativeOwnership property. r=bz.
...
--HG--
extra : rebase_source : a121c0061d1afec19beeecaf507da30ac027936c
2014-11-01 15:25:55 +01:00
Peter Van der Beken
2bd3fd551f
Bug 1096328 - Remove nativeOwnership from Bindings.conf, don't condition wrapperCache on having a refcounted type. r=bz.
...
--HG--
extra : rebase_source : a76c18e5ffa4c1a48d3ab6119f7aff1065795787
2014-11-01 15:22:21 +01:00
Peter Van der Beken
70347713c1
Bug 1096328 - Remove nativeOwnership from Bindings.conf, change a python check for a refcounted type to a static_assert. r=bz.
...
--HG--
extra : rebase_source : 9d467680160173a50ea4d319a5bf3dce8680c854
2014-11-01 15:20:23 +01:00
Peter Van der Beken
b45c83bd89
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make example code spit out a refcounted class always. r=bz.
...
--HG--
extra : rebase_source : a4bda82184a560ce09201d2e722292e895d11da5
2014-11-01 15:15:42 +01:00
Peter Van der Beken
7a111997bf
Bug 1096328 - Remove nativeOwnership from Bindings.conf, autodetect the right smart pointer for owned and refcounted objects. r=bz.
...
--HG--
extra : rebase_source : 605390cd0b599e4922f8c13d70dd727976c48152
2014-11-01 15:08:00 +01:00
Peter Van der Beken
ac844526e8
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make WrapNewBindingNonWrapperCachedObject work for owned objects. r=bz.
...
--HG--
extra : rebase_source : aa47e31cb7559e8258f0f112fa92319a30f96dc5
2014-11-01 15:00:47 +01:00
Peter Van der Beken
ee1d294d3e
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make the WrapObject signature for non-refcounted objects the same as for refcounted objects. r=bz.
...
* * *
[mq]: owned_fold.patch
--HG--
extra : rebase_source : c5aa06709a877968341cd69d6faa945f0f7ddde9
2014-11-01 15:00:28 +01:00
Peter Van der Beken
08e923c587
Bug 1096328 - Remove nativeOwnership from Bindings.conf, templatize deferred finalization. r=bz.
...
--HG--
extra : rebase_source : 19a8b1beeaa0284c88a2d1b44c3658ece3e620a4
2014-11-01 14:48:19 +01:00
Peter Van der Beken
7174c86f2f
Bug 1096328 - Remove nativeOwnership from Bindings.conf, add template to detect refcounted classes. r=bz.
...
--HG--
extra : rebase_source : 871ad39481494e8c860243879e44fbd638f4bad6
2014-11-01 14:10:59 +01:00
Peter Van der Beken
dc0e2f4daf
Bug 1096328 - Remove nativeOwnership from Bindings.conf, reorganize checks for members in BindingUtils.h. r=bz.
...
--HG--
extra : rebase_source : 83e9e003ddbe77fdd3f0074f87945ba28cd18777
2014-11-01 14:04:43 +01:00
Olli Pettay
05d8cc1271
Bug 1119652, create mozilla::dom::Event::As*Event automatically for all the codegen'ed Events and annotate As*Event with MOZ_OVERRIDE in the codegen, r=bz
...
--HG--
extra : rebase_source : 8dc5e2f29d4ae7702e4f41c01e971016c357c85a
2015-01-10 13:46:41 +02:00
Chris Peterson
9e23388ca8
Bug 1118076 - Remove MOZ_THIS_IN_INITIALIZER_LIST. r=Waldo
2015-01-06 21:39:46 -08:00
Ehsan Akhgari
4354953b4f
Bug 1118486 - Part 1: Use `= delete` instead of MOZ_DELETE directly; r=Waldo
...
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:
#!/bin/bash
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "*/.git*" \
! -wholename "obj-*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-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_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Boris Zbarsky
bad2ee9b82
Bug 1117167. Make the generated implementation classes for JS-implemented bindings store an nsIGlobalObject, not an nsPIDOMWindow, so we can use them in sandboxes. r=peterv
2015-01-08 11:57:19 -05:00
Ehsan Akhgari
da6750e5e7
Bug 1114987 - Add MOZ_UNSAFE_REF and mark GlobalObject::mGlobalObject as such; r=smaug
2015-01-05 21:01:30 -05:00
Jeff Walden
79c821101e
Bug 603201 - Make HasPropertyOnPrototype fallible. r=peterv
2015-01-02 14:02:36 -06:00
Boris Zbarsky
8fd98d4057
Bug 1107592 part 2. Allow chrome JS to directly throw content DOMExceptions that will propagate out to the web script. r=peterv
2015-01-02 17:08:33 -05:00
Boris Zbarsky
58dedbbec6
Bug 1117131. Output the JS hooks for our cache-clearing stuff for [Pure] properties on JS-implemented objects even if we have no interface object, since these live on instances. r=mccr8
2015-01-02 17:08:33 -05:00
Tom Schuster
8960d9ef9f
Bug 1094176 - Remove lookup API from browser. r=bholley
2014-12-17 00:28:39 +01:00
Tom Schuster
7ed0e36ad2
Bug 783829 - Remove getEnumerablePropertyKeys. r=efaust,bholley
2014-12-17 00:28:38 +01:00
Tom Schuster
f834688bbc
Bug 783829 - Change from Proxy iterate to enumerate. r=efaust,bholley
2014-12-17 00:28:38 +01:00
Terrence Cole
20e03ef2a5
Bug 1105069 - Part 17: Convert xpc_IsGrayGCThing to GCCellPtr; r=mccr8, j=jonco
...
--HG--
extra : rebase_source : 9fdc5ac9ca8de9c12a399532db7e77bc34abb7da
2014-12-05 09:38:34 -08:00
Dave Huseby
f042d2276f
Bug 1107673 - add WrappedJSToDictionary that doesn't require a JSContext. r=bholly
2014-12-15 14:28:00 +01:00
Wes Kocher
6d3a321489
Merge inbound to m-c a=merge
2014-12-11 16:50:45 -08:00
Jan-Ivar Bruaroey
f75be80939
Bug 1091898 - update test of exceptions from jsimplemented. r=jesup
2014-12-08 10:18:38 -06:00
Tom Tromey
7e74625848
Bug 1095728 - Mark ToJSValue with MOZ_WARN_UNUSED_RESULT. r=bz
2014-12-09 14:45:00 -05:00
Jason Orendorff
acdfa74202
Bug 1103152
- Remove JS_DeletePropertyStub, JS_EnumerateStub, JS_ResolveStub, and JS_ConvertStub. Make five mandatory JSClass hooks optional (nullable). r=bhackett.
...
--HG--
extra : rebase_source : a349ef612573aff8f87b995a65df94ae56cab13d
extra : amend_source : bbfe549fe0735d8b33ffff66d7eeddcc2ad042d2
2014-12-02 16:56:35 -06:00
Boris Zbarsky
c617f3e3b9
Bug 1012798 part 2. Stop defining a value property named "window" on the global. r=peterv
2014-12-09 14:44:37 -05:00
Byron Campen [:bwc]
9f12762413
Bug 1091242 - Part 7: Wiring the build system together. r=jesup, r=ted
2014-11-17 17:03:28 -08:00
Byron Campen [:bwc]
3af28ea884
Bug 1091242 - Part 6: Wiring the new JSEP handler code in. See https://github.com/unicorn-wg/gecko-dev/tree/multistream_rebase for more history. r=jesup, r=smaug
2014-11-19 16:16:29 -08:00
Phil Ringnalda
5fe54ea0fd
Backed out 10 changesets (bug 1091242) for Android/b2g non-unified build bustage
...
CLOSED TREE
Backed out changeset 7f72b55c5de7 (bug 1091242)
Backed out changeset f1501aa24397 (bug 1091242)
Backed out changeset 7fde5994aee5 (bug 1091242)
Backed out changeset 59b415714087 (bug 1091242)
Backed out changeset dadb65fedc08 (bug 1091242)
Backed out changeset 21be81424e4e (bug 1091242)
Backed out changeset 498fb1dafba5 (bug 1091242)
Backed out changeset 8d0653eb85ab (bug 1091242)
Backed out changeset c82d484e135a (bug 1091242)
Backed out changeset 3e0c8932f1b1 (bug 1091242)
2014-12-08 20:53:07 -08:00
Byron Campen [:bwc]
c29c3be2eb
Bug 1091242 - Part 7: Wiring the build system together. r=jesup, r=ted
2014-11-17 17:03:28 -08:00
Byron Campen [:bwc]
bb404e8254
Bug 1091242 - Part 6: Wiring the new JSEP handler code in. See https://github.com/unicorn-wg/gecko-dev/tree/multistream_rebase for more history. r=jesup, r=smaug
2014-11-19 16:16:29 -08:00
Boris Zbarsky
6ac7384613
Bug 1105614. Fix dependency tracking for IDL methods with dictionary arguments. r=peterv
2014-12-01 15:17:58 -05:00
Boris Zbarsky
3ab8465f19
Bug 1087851 part 2. Add a GetOrCreateDOMReflectorNoWrap API that can be used to do what GetOrCreateDOMReflector does but without wrapping into the caller compartment. r=bholley
2014-11-26 14:25:21 -05:00
Boris Zbarsky
8ec9d58716
Bug 1087851 part 1. Rename WrapNewBindingObject to GetOrCreateDOMReflector to make it clearer what it does. r=peterv for the idea; patch itself is just search-and-replace
2014-11-26 14:25:20 -05:00
Boris Zbarsky
e86d3b5204
Bug 1096011. Warning when failing to create a JS implemntation for a Web IDL binding should include the implementation contract. r=peterv
2014-11-24 11:57:49 -05:00
Boris Zbarsky
e952f7adeb
Bug 1094545. Expose the URLSearchParams API in system globals. r=bholley
2014-11-07 14:10:39 -05:00
Boris Zbarsky
cfe3876dca
Bug 1089079. Make .length on interface objects configurable. r=peterv
2014-11-24 12:56:32 +00:00
Boris Zbarsky
76e076eb08
Bug 1092737 part 1. Update TextEncoder to various spec changes. r=emk
2014-11-21 14:58:45 -05:00
Vladimir Vukicevic
27e56b034e
Bug 1036604 - Add VRDevice interfaces, navigator.getVRDevices call, and Oculus Rift gfxVR; r=bz,jrmuizel
2014-07-09 12:24:49 -07:00
Andrea Marchesini
9d30f59efd
Bug 1077393 - Rename ScalarValueString to USVString. r=smaug
...
--HG--
rename : dom/bindings/parser/tests/test_scalarvaluestring.py => dom/bindings/parser/tests/test_usvstring.py
rename : dom/bindings/test/test_scalarvaluestring.html => dom/bindings/test/test_usvstring.html
2014-11-20 12:58:00 +01:00
Boris Zbarsky
3fd6202de4
Bug 990484 part 2. Remove a bunch of now-unnecessary JSContext bits in indexedDB code. r=baku
2014-12-11 13:07:44 -05:00
Ryan VanderMeulen
9a56a97e41
Backed out changesets 34a66a625618, 32db3daa20fe, and ac15ba8568c5 (bug 1102219) for Gaia unit test failures.
...
--HG--
extra : rebase_source : 0266cc0b2a6568ca653885745f381df8d6d167ec
2014-12-11 11:28:30 -05:00
ziyunfei
5f470bd4a1
Bug 1102219 - Part 3: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till
2014-12-10 20:50:00 -05:00
Jason Orendorff
92f1bf16c5
Bug 1103368, part 5 - Make Class::getProperty and setProperty nullable instead of needing stub functions. Never store stub functions in JSPropertyDescriptors. r=bhackett.
...
--HG--
extra : rebase_source : a44070dd6155426ef6026c1575116f90b5fdac0c
extra : amend_source : 8d8fcf05dfd5fdf214a39501663347a6d6b56463
2014-11-22 12:23:39 -06:00
Terrence Cole
e22128b208
Bug 1099278 - Update nsGlobalWindow's StoreInSlot users to use a better error contract; r=bz
...
--HG--
extra : rebase_source : 7dd2ec19526925edfee8d819d99b7f892a0adbbb
2014-11-14 16:54:10 -08:00
Boris Zbarsky
9ee334fef9
Bug 1081241. Things that aren't exposed in Window shouldn't show up in RegisterBindings at all. r=smaug
2014-11-16 15:01:32 -05:00
Boris Zbarsky
b32a7b90f2
Bug 1098739. Add a BufferSource typedef in our IDL. r=khuey
2014-11-16 15:01:08 -05:00
Gabor Krizsanits
dbcc1f28d5
Bug 1081038 - part2: Removing nsAutoMicroTask where we have AutoEntryScript. r=bholley
2014-11-14 16:46:26 +01:00
Tom Schuster
12ee966a97
Bug 783829 - Rename Proxy enumerate trap to getEnumerablePropertyKeys. r=efaust
2014-11-14 16:21:12 +01:00
Paul Adenot
f459f9eddd
Bug 1000264 - Allow an object that inherits from nsWrapperCache but not nsISupports to be passed as a Promise::MaybeResolve argument. r=bz
...
--HG--
extra : rebase_source : 3bab4f00e3949b83a6914ab8ade63f8390b818cd
2014-10-22 19:26:10 +02:00
Tom Tromey
f4f48c7990
Bug 1096341 - require an exception to be set in ToJSValue overload. r=bz
2014-11-10 09:06:00 +01:00
Steve Fink
bcb05bd4d2
Bug 1053999 - Conservative stack check should assume untrusted code, r=bholley
...
--HG--
extra : rebase_source : f363a8bc1c2f78e9ab47538cdcf8669275a73cb0
2014-11-13 12:23:11 -08:00
Ryan VanderMeulen
064303be00
Backed out changesets 0c9407b0e481, c2c37b2e9fac, and 488700194519 (bug 1000264) for e10s test failures.
...
CLOSED TREE
2014-11-13 12:40:15 -05:00