Commit Graph

34 Commits

Author SHA1 Message Date
Jim Chen
b18af86eae Bug 1206822 - Handle JS exceptions in NativeJSContainer; r=snorp
Clear any JS exceptions in appropriate places in NativeJSContainer, so
the exceptions don't affect subsequent JS API calls. We don't actually
"handle" the exceptions because we throw a Java exception instead or it
is safe to ignore the JS exception.
2016-04-18 08:46:31 -04:00
Jim Chen
82870a9c22 Bug 1244875 - Update JNI usages; r=snorp
Update JNI usages to match the changes in JNI templates.
2016-02-09 17:27:28 -05:00
Jan de Mooij
4194f59137 Bug 1237201 part 9 - Fix remaining issues. r=nfroyd 2016-01-14 22:12:13 +01:00
Jeff Walden
9399e8c7de 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 2015-08-28 21:55:40 -07:00
Terrence Cole
19022b5f4a Bug 1191529 - Remove JSIdArray and AutoIdArray and replace with Rooted<IdVector>; r=mccr8, r=jonco
* * *
imported patch 2_remove_AutoIdArray_gk
2015-08-05 11:02:00 -07:00
Jim Chen
de41cfe9d0 Bug 1187552 - Make NativeJSContainer use direct ownership model; r=snorp
Make NativeJSContainer/NativeJSObject Java objects own their
corresponding C++ objects directly, to reduce an extra
allocation/deallocation for each object and to simplify code.
2015-08-04 17:47:28 -04:00
Jim Chen
05fb61c829 Bug 1186467 - Rewrite NativeJSContainer to use new native JNI scheme; r=snorp
This patch makes NativeJSContainer use per-instance native methods.
NativeJSContainer is also updated to use smart JNI reference classes.
2015-08-04 17:47:28 -04: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
Masatoshi Kimura
4eacef39b7 Bug 1111290 - Part 1: Remove MOZ_(BEGIN|END)_ENUM_CLASS. r=waldo 2015-01-26 07:22:07 +09:00
Ben Turner
e30152a851 Bug 994190 - 'Modify main-thread IndexedDB to use PBackground', r=khuey. 2014-09-26 16:21:57 -07:00
Ben Turner
4937da099f Backout bug 994190 and merge over some stuff that landed afterwards on a CLOSED TREE. 2014-09-17 19:36:01 -04:00
Ben Turner
aede706b17 Bug 994190 - 'Modify main-thread IndexedDB to use PBackground', r=khuey. 2014-09-13 12:12:19 -04:00
Chris Peterson
def5e6780e Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Jim Chen
ae70195592 Bug 1046880 - Throw custom exception when a property does not exist or has the wrong type; r=blassey 2014-08-06 14:38:29 -04:00
Jeff Walden
b908fe44cf Bug 1037100 - Remove all use of ScopedDeleteArray from miscellaneous places. r=jcranmer 2014-07-10 20:37:40 -07:00
Jan de Mooij
8f2c943490 Bug 1034689 followup - Add jchar cast back to fix Android compile errors. 2014-07-12 09:53:01 +02:00
Jan de Mooij
1fd3719a70 Bug 1034689 part 3 - Fix remaining places in Gecko to handle Latin1 strings. r=bz 2014-07-12 09:43:08 +02:00
Jim Chen
fad9c3c27e Bug 1022769 - Use PersistentRooted to root NativeJSContainer objects. r=jonco 2014-06-10 12:46:00 -04:00
Mark Capella
763e8ed5f4 Bug 1014965 - NativeJSObject.optString does the wrong thing on "key":null, r=jchen, f=nalexander 2014-05-28 17:04:56 -04:00
Carsten "Tomcat" Book
8b846dba4e merge fx-team to mozilla-central 2014-05-21 13:57:43 +02:00
Jim Chen
ff9a9c2569 Bug 1012724 - Propagate exception in NativeJSObject calls; r=blassey 2014-05-20 15:55:36 -07:00
Jim Chen
9bccafc44e Bug 992357 - d. Add object array support to NativeJSObject; r=blassey 2014-05-16 18:25:29 -04:00
Jim Chen
5b9854e509 Bug 992357 - c. Add primitive array support to NativeJSObject; r=blassey 2014-05-16 18:25:29 -04:00
Jim Chen
16df992d7b Bug 992357 - b. Add array support stubs; r=blassey 2014-05-16 18:25:29 -04:00
Jim Chen
eb129916ed Bug 992359 - d. Properly handle nullptr context; r=blassey 2014-05-12 12:50:47 -04:00
Jim Chen
77468cd7bc Bug 992359 - c. Add GetBundle implementation; r=blassey 2014-05-12 12:50:47 -04:00
Jim Chen
c45c40f38b Bug 992359 - b. Add skeletal NativeJSObject.toBundle; r=blassey 2014-05-12 12:50:46 -04:00
Mike Hommey
ae3c5baac4 Bug 1013646 - Fix build failure with GCC < 4.7 after bug 992357. r=jchen 2014-05-21 11:28:39 +09:00
Jim Chen
552d824a97 Bug 984458 - f. Add NativeJSObject opt getters; r=blassey 2014-04-01 15:16:56 -04:00
Jim Chen
3c6863fec9 Bug 984458 - e. Add NativeJSObject object getter; r=blassey 2014-04-01 15:16:55 -04:00
Jim Chen
78fb7009a8 Bug 984458 - d. Add NativeJSObject property getters; r=blassey 2014-04-01 15:16:55 -04:00
Jim Chen
3addc5c50b Bug 984458 - c. Add skeletal NativeJSObject implementation; r=blassey 2014-04-01 15:16:54 -04:00
Jim Chen
019d2e2d90 Bug 984458 - b. Add threading support to NativeJSContainer; r=blassey 2014-04-01 15:16:53 -04:00
Jim Chen
0b2362304a Bug 984458 - a. Add NativeJSContainer implementation; r=blassey 2014-04-01 15:16:52 -04:00