Commit Graph

3997 Commits

Author SHA1 Message Date
Jason Orendorff
99418b7704 Bug 1065507, part 2 - Change XPCWrappedNatives to use a null setter instead of js_GetterOnlyPropertyStub.
--HG--
extra : rebase_source : dccc09d810a07019c582d1fbda431e57287b690a
2014-09-10 12:43:26 -05:00
Jason Orendorff
22c79b3ead Bug 1065507, part 1 - Remove dead function xpc_qsGetterOnlyPropertyStub.
--HG--
extra : rebase_source : 6dbeb6dd2e69511682b5b3e8582104d06d13766d
2014-09-10 12:51:09 -05:00
Bill McCloskey
358c1f203e Bug 1062024 - Allow CPOWs to be passed to COWs (r=bholley) 2014-09-10 17:15:41 -07:00
Bill McCloskey
a38518d345 Bug 1042680 - Allow add-ons to assign to var-declared chrome global with compartment_per_addon (r=bholley) 2014-09-10 17:15:40 -07:00
Eric Faust
385660b12e Bug 966518 - Part 0: Make proxy callability into a trap, rather than a class check. (r=bholley, r=djvj, r=peterv) 2014-09-10 15:52:36 -07:00
Felipe Gomes
382f4efc2f Bug 1063848 - Disable e10s in safe mode. r=bsmedberg,ally. 2014-09-10 15:53:55 -03:00
Nicolas B. Pierron
2e870be9ec Bug 1063816 - Rename useCount to warmUpCounter. r=h4writer 2014-09-10 19:11:20 +02:00
Peter Van der Beken
092abdc9c1 Bug 1063700 - Remove unused IsSecurityWrapper functions. r=bholley.
--HG--
extra : rebase_source : 32499305e3e28c690d0158f3e9df333b73e2259b
2014-09-09 15:38:45 +02:00
Bobby Holley
7c712dca7b Bug 981198 - Make JS_{Get,Set}ErrorReporter take a JSRuntime. r=terrence,r=bz 2014-09-09 16:02:10 -07:00
Irving Reid
d5feb83b80 Bug 1064424 - Use Timestamp::ProcessCreation to calculate Cu.now(). r=bz 2014-09-08 14:15:04 -04:00
Bobby Holley
01390fc30d Bug 1064437 - Remove Proxy special-case in ForceCOWBehavior. r=gabor 2014-09-09 08:21:45 -07:00
Bobby Holley
ad40fc3b65 Bug 1064550 - Remove xpcWrappedJSErrorReporter. r=bz
Given that the JS engine always clears exceptions immediately after reporting
them, the empty body after JSREPORT_IS_EXCEPTION causes us to eat exceptions
here.
2014-09-08 22:22:19 -07:00
Chris Peterson
d126c3c24f Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Shu-yu Guo
c2475516fe Bug 1056411 - Part 1: Remove DebugFromC and clean up compartment debug mode logic. (r=jimb) 2014-09-08 21:03:31 -07:00
Bobby Holley
87c9e0954f Bug 1062077 - Remove now-no-op error reporter munging in mozJSSubScriptLoader.cpp. r=bz
In the past this might theoretically have switched us from
NS_ScriptErrorReporter to xpc::SystemErrorReporter, but those have now been
merged.
2014-09-08 16:30:12 -07:00
Bobby Holley
9ff6cd212d Bug 1062077 - Merge NS_ScriptErrorReporter and xpc::SystemErrorReporter. r=bz
We keep the latter name because it's referenced in more places. Error reporters
will go away entirely in bug 981187.
2014-09-08 16:30:11 -07:00
Bobby Holley
0ffae4a42a Bug 1062077 - Switch SystemErrorReporter to xpc::ErrorReport. r=bz 2014-09-08 16:30:11 -07:00
Bobby Holley
7ba663f3ec Bug 1062077 - Hoist console logging duties into xpc::ErrorReport. r=bz 2014-09-08 16:30:11 -07:00
Bobby Holley
e85bd78d5d Bug 1062077 - Introduce xpc::ErrorReport. r=bz
I've got it! Let's just wrap the JS thing in an XPCOM thing that duplicates
its fields with a different ownership model! We totally need another one of
those, right? And we could even stick it in XPConnect! </sarcasm>

In seriousness - the code to own, format, and display error reports is
currently spread between the JS engine, JSErrorReporters, an async Runnable
abstraction, and elsewhere. We need to condense it somewhere to start chipping
away at this mess.
2014-09-08 16:30:10 -07:00
Bobby Holley
06cc2ae3c2 Bug 1062631 - Remove exception swallowing code in NS_ScriptErrorReporter. r=bz
See bug 1062631 comment 0.
2014-09-08 13:36:22 -07:00
Bobby Holley
0c8cf16e5b Bug 1062631 - Fix up content QI security check and tests. r=bz
This stuff is broken in a bunch of ways. The test isn't doing the right thing
because it's using SpecialPowers. When we pass the content object to
xpconnectArgument(), it gets wrapped in a SpecialPowers wrapper, so the check
succeeds, only to fail down the line when the QI method is actually invoked
with an IID (which we can't pass to content scopes anyway).

This whole security check is probably useless given the above, but let's be
safe, make it a bit more robust, and fix up the test while we're at it.
2014-09-08 13:36:21 -07:00
Boris Zbarsky
12857de707 Bug 1063521. Remove the WANT_OUTER_OBJECT classinfo flag, since it's now unused. r=bholley 2014-09-08 10:05:11 -04:00
Boris Zbarsky
b0b2acb195 Bug 1017424 part 9. Remove redundant xpconnect code looking for ChromeWindow/ModalContentWindow classes. r=bholley 2014-09-05 14:28:46 -04:00
Boris Zbarsky
7dd6d51191 Bug 1017424 part 7. Remove code to handle XPConnect window wrappers from WindowNamedPropertiesHandler and XPCJSRuntime. r=peterv 2014-09-05 14:28:45 -04:00
Boris Zbarsky
4532962c88 Bug 1017424 part 5. Remove classinfo for Window. r=peterv 2014-09-05 14:28:45 -04:00
Boris Zbarsky
b197b61892 Bug 1017424 part 4. Remove Web IDL quickstubs for Window. r=peterv 2014-09-05 14:28:44 -04:00
Boris Zbarsky
dfeaa19d76 Bug 969490. Add a Components.utils.now() that provides access in system JS to a monotonic timer, returning a fractional number milliseconds since process creation. r=bholley 2014-09-04 15:26:21 -04:00
Mike Hommey
ed70c5f377 Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps 2014-09-03 14:10:54 +09:00
Bobby Holley
2606e901b5 Bug 1051224 - Add an opt-out for cross-origin argument checking. r=gabor 2014-09-03 13:02:36 -07:00
Ehsan Akhgari
4966506563 Bug 1060977 - Fix more bad implicit constructors in xpconnect; r=smaug 2014-08-31 21:06:35 -04:00
Eric Faust
db3773210b Bug 1027425 - Make all Proxy handler constructors use MOZ_CONSTEXPR. (r=bz, r=froydnj) 2014-08-28 13:47:16 -07:00
Eric Faust
48b4f73e9f Bug 1017862 - Remove virtual destructor from BaseProxyHandler. (r=jorendorff) 2014-08-28 13:30:56 -07:00
David Major
36c74581b8 Bug 1023941 - Part 5: Loader hook to redirect the missing import. r=bsmedberg
--HG--
extra : rebase_source : 7cf2e857f51dcfcc95bb806d49ef13b794f5ba5b
2014-08-28 14:53:38 +12:00
Nicholas Nethercote
df1c26a45e Bug 1057912 - Privatize most of PLDHashTable's fields. r=roc.
--HG--
extra : rebase_source : 0f55e70b63d9c191fbd9418cb1177ff534deeed9
2014-08-25 16:56:33 -07:00
Terrence Cole
dbf4c1f1ea Bug 1057140 - Revert JS_realloc bustage from bug 1033442; r=sfink 2014-08-25 12:28:38 -07:00
Andrew McCreight
b9712e47f0 Bug 1052626, part 2 - Report the total size of nsXPCWrappedJS. r=bholley,froydnj 2014-08-25 12:34:00 -07:00
Andrew McCreight
5d1b4639a7 Bug 1052626, part 1 - Outline and constify JSObject2WrappedJSMap::SizeOfIncludingThis. r=njn 2014-08-25 12:34:00 -07:00
Nicholas Nethercote
0c90379b35 Bug 1023719 - Report notable classes in the JS memory reporter. r=till.
--HG--
extra : rebase_source : 3139b17f6a660f460adb820c390368dc8367069a
2014-04-15 19:43:18 -07:00
Chris Peterson
0059278e60 Bug 1054630 - Collect telemetry on usage of SpiderMonkey's deprecated language extensions: for-each, destructuring for-in, legacy generators, and expression closures. r=till 2014-08-24 11:56:08 -07:00
Nigel Babu
e28bb5faec Backed out 6 changesets (bug 1054630) for hazards bustage ON A CLOSED TREE
Backed out changeset 684b95601155 (bug 1054630)
Backed out changeset e656c61ecd70 (bug 1054630)
Backed out changeset fa6d52a0cfea (bug 1054630)
Backed out changeset 19d115a44912 (bug 1054630)
Backed out changeset 0bceb044a4de (bug 1054630)
Backed out changeset be39ba3aa672 (bug 1054630)
2014-08-24 16:33:36 +05:30
Chris Peterson
d12d1cbd0e Bug 1054630 - Part 5b: Collect telemetry on usage of SpiderMonkey's deprecated expression closures. r=till 2014-08-17 17:22:42 -07:00
Chris Peterson
5e35617eb8 Bug 1054630 - Part 4: Collect telemetry on usage of SpiderMonkey's deprecated legacy generators. r=till 2014-08-17 17:17:03 -07:00
Chris Peterson
7255193d60 Bug 1054630 - Part 3: Collect telemetry on usage of SpiderMonkey's deprecated destructuring for-in. r=till 2014-08-17 17:13:12 -07:00
Chris Peterson
46bb7818f7 Bug 1054630 - Part 2: Collect telemetry on usage of SpiderMonkey's deprecated for-each. r=till 2014-08-17 17:12:35 -07:00
Chris Peterson
208b9e0255 Bug 1054630 - Part 1: Add plumbing for SpiderMonkey parser telemetry. r=till 2014-08-23 13:35:17 -07:00
Mike Hommey
9461e860e6 Bug 1041941 - Use templates for Gecko XPCOM components. r=gps 2014-08-24 09:11:05 +09:00
Bobby Holley
9623afb943 Bug 1056332 - Remove cross-global adopt telemetry. r=gabor 2014-08-23 09:01:50 +02:00
Peter Van der Beken
63152eee22 Bug 1041731 - Unforgeable Xrayed methods aren't getting cached on the holder. r=bholley.
--HG--
extra : rebase_source : 9e86ba2d864e6894cc10722ddaf83ded41d88e42
2014-08-22 11:25:07 +02:00
Jeff Walden
48a79b06e3 Bug 969478 - Make the arguments/caller properties of functions be entirely implemented by accessors living on Function.prototype. r=jorendorff
--HG--
extra : rebase_source : 258c158f041f673b201ca3cd978e1522a1887311
2014-08-01 19:11:22 -07:00
Rishab Arora
8f86240a5e Bug 1021379 - Renamed typed arrays' move method to copyWithin, fixed up to ES6 semantics. r=till, r=jwalden
--HG--
extra : rebase_source : deae33f4603ef3c40a2d214b0426bb0756b5307a
2014-07-10 11:49:22 +05:30