Birunthan Mohanathas
a29151dc87
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
Terrence Cole
3ffd505617
Bug 1164602 - Replace js::NullPtr and JS::NullPtr with nullptr_t; r=sfink
2015-05-13 14:07:34 -07:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Ehsan Akhgari
ea41d8de48
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
3a822d99b4
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
Andrea Marchesini
cb2d10da86
Bug 1057994 - DataStore should not dispatch runnables in a worker when it is shutting down, r=bent
2014-12-17 14:49:36 +00:00
Dan Gohman
ca82de971f
Bug 1054671 - Constify static callback arrays r=ehsan
2014-12-16 16:30:39 -08:00
Nigel Babu
a4834061dc
Backed out changeset 6a3a0e3bfaf6 (bug 1054671) for B2G emulator build bustage on CLOSED TREE
2014-12-16 11:24:15 +05:30
Dan Gohman
8a80af08e2
Bug 1054671 - Constify static callback arrays r=ehsan
2014-12-15 20:53:58 -08:00
Andrea Marchesini
b5bbcb0b08
Bug 1069401 - UserAgent cannot be changed for specific websites in workers, r=khuey, r=bz
2014-09-24 17:09:50 +01:00
Carsten "Tomcat" Book
7ea35f7a10
Backed out changeset 13028d2039e8 (bug 1069401) for b2g m1 test failures
2014-09-24 12:40:43 +02:00
Andrea Marchesini
e2d6bffa2d
Bug 1069401 - UserAgent cannot be changed for specific websites in workers, r=khuey, r=bz
2014-09-23 22:26:00 +02:00
Andrea Marchesini
b1c52360d3
Bug 1062920 - WorkerNavigator strings should honor general.*.override prefs, r=khuey
2014-09-23 20:11:18 +01:00
Andrea Marchesini
af269eb0f0
Bug 925849 - WorkerNavigator implements NavigatorLanguage, r=khuey
2014-09-05 15:26:34 +01:00
Sean Lin
9272cf34eb
Bug 1000829 - getDataStores() should be able to retrieve data stores by owner. r=baku sr=jst
2014-07-17 11:53:23 +08:00
Ehsan Akhgari
6084be21ce
Bug 1045436 - Fix more bad implicit constructors in XPCOM; r=froydnj
2014-07-29 20:43:56 -04:00
Boris Zbarsky
a14ed73f88
Bug 1040263. Eagerly create and preserve Promise reflectors so we always have them available during unlink. r=nsm,bholley.
2014-07-18 21:31:11 -04:00
Steve Fink
ffa69ba75a
Bug 1022773 - Return value rooting for workers, r=bent
2014-06-25 15:35:36 -07:00
Gene Lian
400269d4cf
Bug 949325 - C++ wrapper to support DataStore API on the worker (part 2-5, a proxy to dispatch the change event on workers). r=khuey
2014-02-24 21:57:34 +08:00
Gene Lian
82b6565c9d
Bug 949325 - C++ wrapper to support DataStore API on the worker (part 2-3, dispatch tasks on the worker to the main thread). r=baku,khuey f=nsm
2014-02-24 21:57:15 +08:00
Boris Zbarsky
b95c359828
Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
...
This patch was mostly generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""
and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
ae0180ee85
Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
...
This patch was mostly generated with this command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""
plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Nikhil Marathe
a0b8b246a4
Bug 925437 - Implement navigator.onLine on Workers. r=khuey sr=sicking
2013-11-19 15:08:50 -08:00
Kyle Huey
d5105d151b
Bug 928312: Convert the worker global object and all remaining EventTargets to new DOM bindings. r=bent,peterv,smaug
2013-11-05 22:16:26 +08:00
Ben Turner
b3e5baaec8
Bug 643325 - Implement SharedWorker. r=khuey.
2013-06-05 07:04:23 -07:00
Kyle Huey
6f58e13efe
Bug 919457: Allow bindings specific to workers without the old-style worker ownership model. r=bz
2013-09-30 12:15:37 +08:00
Kyle Huey
29d1ee5c1d
Back out bug 919457 for build bustage. r=me
2013-09-30 10:41:23 +08:00
Kyle Huey
f594e35044
Bug 919457: Allow bindings specific to workers without the old-style worker ownership model. r=bz
2013-09-30 09:37:26 +08:00
Ms2ger
bb5e5e2f9e
Bug 878401 - Move WorkerNavigator to WebIDL; r=khuey
2013-07-24 09:38:23 +02:00
Jon Coppeard
5f0e17f56a
Bug 885310 - 1 Rename JSHandleFoo in the browser r=bz
2013-06-21 14:12:46 +01:00
Jon Coppeard
6ac7794926
Bug 884371 - Remove JSMutableHandleXXX from the browser r=bz
2013-06-19 11:32:27 +01:00
David Zbarsky
a4d5e39056
Bug 868312: Various dom rooting fixes r=bz
2013-05-04 03:52:57 -04:00
Xin Zhang
a59f6beade
Bug 857385 - Make various JSPropertySpec arrays const. r=waldo
2013-04-22 14:15:36 -07:00
Jeff Walden
356abe8832
Bug 858677 - Fix up code not built by SpiderMonkey to use the newly-changed deletion signatures. r=bholley, r=billm
2013-04-05 21:22:55 -07:00
Eric Faust
1d3eb2cd90
Bug 766448 - Refactor JSPropertySpec and JS_DefineProperties to accept JSJitInfos. (r=Waldo)
2012-08-07 22:26:18 -07:00
Brian Hackett
6c4ed4bfd1
Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin
2012-07-30 05:19:09 -06:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Brian Hackett
b4c002a912
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 15:03:45 -07:00
Brian Hackett
4f8baecc9e
Backed out changeset 5fc7462dd394 for android orange.
2012-05-19 11:52:55 -07:00
Brian Hackett
b7d2500332
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 09:48:09 -07:00
Igor Bukanov
c7e7021207
Bug 737365 - stop using the cx during finalization, part 1.
...
This part changes the signatures for various finalization API to take
not JSContext* but rather either JSFreeOp structure or its
library-private counterpart FreeOp. These structures wrap parameters
that are passed to the finalizers removing most of explicit dependencies
on JSContext in the finalization code.
2012-03-19 15:34:55 +01:00
Igor Bukanov
62a47e535b
bug 736978 - remove JS_FinalizeStub. r=:billm
...
Currently the GC finalizes on the background thread only objects with null
JSClass::finalize. However, this implies that any object that uses
JS_FinalizeStub for the finalizer would be prevented from the background
finalization.
To fix this the patch removes JS_FinalizeStub replacing it with NULL in all
cases when the class has no custom finalizer. For style consistency the patch
also removed the usage of JSCLASS_NO_OPTIONAL_MEMBERS in the static
declarations as the compiler fills the missing fields with null in any cases.
2012-03-19 15:27:58 +01:00
David Mandelin
f0690b22d1
Bug 730511: remove obsolete typedefs intN, uintN, r=luke
2012-02-28 15:11:11 -08:00
Igor Bukanov
0265d1f860
bug 726944 - Remove JSClass::xdrObject and related functionality. r=luke
2012-02-13 09:02:21 +01:00
Igor Bukanov
6fefb1df81
bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
2012-02-05 21:07:23 +01:00
Igor Bukanov
ae7ab9b03a
backout merge for bug 724310. r=irc
2012-02-09 21:28:22 +01:00
Igor Bukanov
12633fbfdd
bug 723517 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
2012-02-05 21:07:23 +01:00
Igor Bukanov
889c9d4073
bug 723517 - Drop cx argumrent from JS_GetClass(cx, obj). r=luke
2012-02-04 01:54:57 +01:00
Igor Bukanov
4856d2ecff
bug 723510 - Workers: double-error reporting in location.toString and incorrect assumption about JS_GetInstancePrivate. r=bent
2012-02-03 19:00:08 +01:00
Ms2ger
0da18b7a47
Bug 677079 - Part d: Move js_GetErrorMessage to jsfriendapi.h; r=jorendorff
2012-01-15 09:13:08 +01:00