Commit Graph

929 Commits

Author SHA1 Message Date
Olli Pettay
d13e546b25 Bug 935846, nsJSEnvironment should get a shutdown notification also in child processes, r=romaxa 2014-10-22 18:57:32 +03:00
Andrew McCreight
d869fa7eaa Bug 727965 - Trigger CC_WAITING GCs based on number of freed JS objects and zones. r=smaug 2014-10-20 10:07:52 -07:00
Tom Schuster
4e0dfb7481 Bug 1069694 - Remove OldDebugAPI from the browser. r=shu 2014-10-12 19:37:41 +02:00
Eric Rahm
b8709b7dc6 Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan 2014-10-08 13:17:32 -07:00
Wes Kocher
e9f3c5a025 Backed out 5 changesets (bug 806819) for WinXP test failures on a CLOSED TREE
Backed out changeset 009ae35b0c67 (bug 806819)
Backed out changeset 5a57f87f5061 (bug 806819)
Backed out changeset f06cd735b5b3 (bug 806819)
Backed out changeset e25a2a8d4af4 (bug 806819)
Backed out changeset 70a167982c3f (bug 806819)
2014-10-06 16:32:50 -07:00
Eric Rahm
e037820a94 Bug 806819 - Part 3: Remove redundant FORCE_PR_LOG entries. r=ehsan 2014-10-06 13:08:20 -07:00
Bobby Holley
e86e129be6 Bug 1070842 - Factor script error event dispatch into a separate function. r=bz 2014-09-29 15:34:21 +02:00
Bobby Holley
3c8538a288 Bug 1070842 - Remove ambiguous globals from xpc::ErrorReporter and make meanings explicit. r=bz 2014-09-29 15:34:20 +02:00
Bobby Holley
aa82852128 Bug 1070131 - Switch originPrincipals to a mutedError flags. r=luke,r=bz 2014-09-29 10:44:30 +02:00
Bobby Holley
12de927d8e Bug 1070131 - Reduce the cases where we dispatch nsScriptErrorEvent. r=bz 2014-09-29 10:44:29 +02:00
Bobby Holley
8ff0a8449b Bug 1070696 - Rename xpc::GetNativeForGlobal to xpc::NativeGlobal and make it accept non-global JSObjects. r=smaug
The method is infallible, and making the callers invoke
js::GetGlobalForObjectCrossCompartment manually is dumb.
2014-09-21 21:31:53 +02:00
Bobby Holley
fa441323af Bug 1065452 - Re-route exceptions directed at addon globals to their associated DOMWindow. r=bz 2014-09-15 14:12:13 +02:00
Bobby Holley
f8c3f22448 Bug 981198 - Make JS_{Get,Set}ErrorReporter take a JSRuntime. r=terrence,r=bz 2014-09-09 16:02:10 -07: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
Bobby Holley
f9ea2b62db 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
44f0088dd4 Bug 1062077 - Report exceptions immediately for non-window globals, and assert that we have a window in ScriptErrorEvent. r=bz
Note that this is a no-op right now, because NS_ScriptErrorReporter currently
relies on nsIScriptContext to get its global, and thus will only ever operate
on window globals. But that will change once we merge this code with that in
xpc::SystemErrorReporter.
2014-09-08 16:30:11 -07:00
Bobby Holley
ef0ac34143 Bug 1062077 - Hoist console logging duties into xpc::ErrorReport. r=bz 2014-09-08 16:30:11 -07:00
Bobby Holley
860f513268 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
74a9cfd30a 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
0a6f597fe1 Bug 1063271 - Undo bug 796938 part 10. r=smaug 2014-09-05 08:54:13 -07:00
Nicholas Nethercote
c1bf6c97b2 Bug 1061066 - Make DMD work properly with e10s. r=mccr8. 2014-09-01 17:22:53 -07:00
Ehsan Akhgari
6be3d83434 Bug 1060987 - Fix more bad implicit constructors in DOM; r=baku 2014-09-01 20:49:25 -04:00
Phil Ringnalda
36b0901dec Backed out 6 changesets (bug 1060982, bug 1061058, bug 1060987, bug 1061060, bug 1060930) for build bustage
CLOSED TREE

Backed out changeset c23b8418e6be (bug 1060987)
Backed out changeset a8cddc6bdffc (bug 1061060)
Backed out changeset b5af5cbdac3f (bug 1060982)
Backed out changeset 4912d451011a (bug 1060930)
Backed out changeset bdacbf453238 (bug 1061058)
Backed out changeset da6c71a8f5ae (bug 1060987)
2014-09-01 16:48:51 -07:00
Ehsan Akhgari
b781feb7c0 Bug 1060987 - Fix more bad implicit constructors in DOM; r=baku 2014-09-01 18:00:53 -04:00
Bobby Holley
5e56e20a5f Bug 981218 - Remove default compartment objects. r=luke
\o/
2014-08-21 17:13:51 -07:00
Bobby Holley
77a145907e Bug 796938 - Use GetEntryGlobal in NS_ScriptErrorReporter. r=smaug 2014-08-19 12:02:07 -07:00
Bobby Holley
b2b763cb29 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
df43fcf12d Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley
10dec58cfc Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Bill McCloskey
15e1176392 Bug 1032592 - Allow principals to be sent with the message manager (r=bent) 2014-08-05 21:46:01 -07:00
Ms2ger
f3bf2dede7 Bug 1043853 - Share the code for structured cloning of ImageData objects across main-thread and workers implementations; r=jst 2014-08-01 22:47:47 +02:00
Wes Kocher
aca9fb4149 Backed out changeset a668ab2d8dd3 (bug 1043853) for bustage 2014-08-01 14:25:10 -07:00
Ms2ger
afce834b36 Bug 1043853 - Share the code for structured cloning of ImageData objects across main-thread and workers implementations; r=jst 2014-08-01 22:47:47 +02:00
Bobby Holley
1adabd4b32 Bug 940305 - Move extraWarnings to RuntimeOptions with a per-compartment override. r=jandem,r=khuey 2014-07-29 21:00:37 -07:00
Nicholas Nethercote
b63426bdfd Bug 1035570 (part 3) - DMD: Add DMDAnalyzeHeap(), a heap snapshot function. r=erahm,mccr8.
The patch also adds DMDAnalyzeReports() as a synonym for DMDReportAndDump(),
and deprecates the latter.
2014-05-29 23:46:09 -07:00
Bob Owen
f8412514ed Bug 1037564 Part 4: Replace nsCxPusher in nsJSContext::SetProperty. r=bholley 2014-07-18 12:58:10 +01:00
Jon Coppeard
770007b1db Bug 1017141 - Add prefs for setting min/max empty chunk counts r=bent 2014-07-16 10:01:20 +01:00
Jan de Mooij
0fc0c46ea3 Bug 1037869 - Fix remaining Latin1 string issues. r=terrence 2014-07-14 22:19:36 +02:00
Shashank Sabniveesu
5e28328425 Bug 1034910 - Make the dtor of nsJSArgArray protected. r=smaug 2014-07-11 13:19:00 -04:00
Bobby Holley
24b8c2f6d2 Bug 940316 - Move werror to RuntimeOptions. r=jandem 2014-07-11 08:30:47 -07:00
Tim Taubert
8173949e3d Bug 1026314 - Rename Key to CryptoKey in WebCrypto r=rbarnes,bz
From 9beed249a4d08ccc945bc573a0c71d295cb1b222 Mon Sep 17 00:00:00 2001
2014-06-23 23:25:13 +02:00
Ed Morley
860e779bb2 Backed out changeset 38831e922852 (bug 1026314) for test_interfaces.html failures 2014-07-04 16:17:51 +01:00
Tim Taubert
f0ffeb45fd Bug 1026314 - Rename Key to CryptoKey in WebCrypto r=rbarnes,bz 2014-06-23 23:25:13 +02:00
Boris Zbarsky
915cd8690c Bug 1033157. Move the setup of the JSRuntime DOM callbacks into the CycleCollectedJSRuntime constructor, so we don't have to separatedly do it for workers, windows, and xpcshell. r=khuey 2014-07-02 15:16:42 -04:00
Steve Fink
145fbca942 Bug 1022773 - Return value rooting for dom/, r=bz 2014-06-25 15:35:36 -07:00
Jim Blandy
c7f7adc86b Bug 800200: Remove references to JSD from outside js/jsd. r=mccr8,bholley,ted,smaug 2014-06-27 11:05:08 -07:00
Benoit Jacob
7bbd89e2ca Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan 2014-06-23 15:56:07 -04:00
Bob Owen
bb9f7ba2dc Bug 1025476 - Part 1: Add compulsory Init functions to AutoJSAPI. r=bholley 2014-06-19 08:21:14 +01:00
Ms2ger
3cc281b7ff Bug 974327 - Cleanup nsJSContext::GetGlobalObject(); r=bholley
The removed code is never reached, as GetWindowProxy() returns a JSObject
with OuterWindowProxyClass as its JSClass, and this will test false for
IsDOMClass and
(~c->flags) & (JSCLASS_HAS_PRIVATE | JSCLASS_PRIVATE_IS_NSISUPPORTS).
2014-06-20 12:32:50 +02:00
Andrew McCreight
3c68135906 Bug 1019101 - Add a way to get the max CC pause during a given period of time. r=smaug 2014-06-14 16:43:45 -07:00