Commit Graph

1834 Commits

Author SHA1 Message Date
Bill McCloskey
48c66f5f38 Bug 899812 - Error reporters should consistently report errors to stderr (r=bholley) 2013-07-31 17:04:49 -07:00
Masatoshi Kimura
44c2a1bca6 Backed out changeset 2aa62db58f24 (bug 673919) due to Web compat 2013-08-01 06:44:51 +09:00
Tom Schuster
5f28c2402f Bug 884410 - Handlify JS_GetPrototype. r=terrence 2013-07-31 12:20:33 -04:00
Bobby Holley
0df174a07e Bug 899245 - Rename JS_GetGlobalForScopeChain to JS::CurrentGlobalOrNull. r=luke
This was done with perl/grep.
2013-07-29 16:45:27 -07:00
Bobby Holley
0d55dae85a Bug 899245 - Rename JS_SetGlobalObject and move it into jsfriendapi. r=luke 2013-07-29 16:45:26 -07:00
Bobby Holley
13a5ebdd2a Bug 893324 - Invoke CleanUp synchronously and unconditionally for modal dialog windows. r=jst
Historically, we've had a bunch of complicated machinery to delay the call to
CleanUp() for modal dialogs, since we needed to harvest the return value after
the window closed. But in the current world we don't actually null out
mReturnValue in CleanUp() at all, which presumably happened sometime around the
time mReturnValue became cycle-collected. So this stuff can just go away. \o/

That simplification is righteous in itself. But it also fixes the bug here as-
filed. When the user quits while a modal dialog is currently being displayed,
a failure code ends up bubbling up through windowWatcher to the OpenInternal call
in nsGlobalWindow::ShowModalDialog, which means that we're unable to do our
delayed CleanUp() call for the outer modal window. At first it seemed like a hard
problem to solve, but with the above it becomes trivial.
2013-07-26 15:46:13 -07:00
David Zbarsky
2dc6c7f6e8 Bug 894646 - Various dom deCOM cleanups r=Ms2ger 2013-07-23 16:39:17 -07:00
Jon Coppeard
d955a55606 Bug 888338 - 1 - Add TenuredHeap<T> class r=terrence r=bz 2013-07-23 10:58:26 +01:00
Tom Schuster
cfa2854653 Bug 868859 - Make chromeWindow.content work in e10s. r=bz 2013-05-08 23:16:46 +02:00
Bobby Holley
d63280c4c1 Bug 887334 - Stop setting the compartment to defaultCompartmentObject_->compartment(). r=luke
With this change, defaultCompartmentObject_ is just an opaque (though traced)
piece of embedder state on the cx.
2013-07-17 11:53:54 -07:00
Bobby Holley
0aefa8fcdc Bug 887334 - Push a JSContext in nsGlobalWindow::SecurityCheckURL. r=gabor 2013-07-17 11:53:54 -07:00
Bobby Holley
a1d65d2e7c Bug 887334 - Miscellaneous JSAutoCompartments. r=luke 2013-07-17 11:53:53 -07:00
Ryan VanderMeulen
a65f70d676 Backed out 4 changesets (bug 893858, bug 868859, bug 886903) for Linux debug mochitest-other crashes on a CLOSED TREE.
Backed out changeset 0ded4854067b (bug 886903)
Backed out changeset ca8afb897e13 (bug 893858)
Backed out changeset c15f503a96cc (bug 868859)
Backed out changeset 6a788f399a7f (bug 868859)
2013-07-17 12:43:59 -04:00
Drew Willcoxon
f47db4e9d4 Bug 894234 - Guard against audioContext->IsOffline(). r=ehsan 2013-07-17 09:59:08 -04:00
Tom Schuster
ee251474bd Bug 868859 - Make chromeWindow.content work in e10s. r=bz 2013-05-08 23:16:46 +02:00
Ryan VanderMeulen
7908d6dbeb Merge m-c to inbound. 2013-07-10 09:45:16 -04:00
Ms2ger
36e433f5c2 Bug 890821 - Make nsIScrollableFrame::GetScrollPositionCSSPixels return CSSIntPoint; r=roc 2013-07-10 11:58:13 +02:00
Drew Willcoxon
d8d53974d2 Bug 879111 - Mute Web Audio when allowMedia is false on the docshell. r=ehsan 2013-07-03 17:44:32 -07:00
Johnny Stenback
24a4677f9e Fixing bug 855611. Convert navigator.plugins and navigator.mimeTypes to use new DOM bindings. r=peterv@propagandism.org. 2013-07-09 06:58:21 -07:00
Jeff Walden
8e7858fd5f Bug 888106 - Add too-much-recursion detection to isExtensible tests, and make the isExtensible hook capable of failing. r=bholley, r=ejpbruel 2013-06-28 14:01:09 -07:00
Ms2ger
9f00af0a49 Bug 888321 - Pass CSSIntPoint to ScrollToCSSPixels; f=kats r=roc 2013-07-01 09:14:36 +02:00
Ms2ger
f56798c572 Bug 888318 - Use CSSIntPoint for nsGlobalWindow::ScrollTo; f=kats r=mrbkap 2013-07-01 09:14:34 +02:00
Ms2ger
924f19d125 Bug 888235 - Use CSSIntSize for nsGlobalWindow::GetInnerWidth/Height; f=kats r=mrbkap 2013-07-01 09:14:24 +02:00
Bobby Holley
25c9055a10 Bug 865745 - Remove mContext from nsFrameMessageManager. r=smaug 2013-06-30 09:00:19 -06:00
Phil Ringnalda
132dda304a Back out 9a57cd3e5a93:b62548e26499 (bug 865745) for causing an unexpected exception in a mochiperf test 2013-06-29 20:27:48 -07:00
Bobby Holley
b0bf6d1c09 Bug 865745 - Remove mContext from nsFrameMessageManager. r=smaug 2013-06-29 18:44:05 -06:00
Bobby Holley
e2e92e3a29 Bug 880917 - Generalize JS_NewGlobalObject API to take CompartmentOptions. r=luke
This will be useful for versioning, as well as JIT options and all the other
stuff that eventually needs to move out of the JSContext.
2013-06-29 09:11:17 -06:00
Andrew McCreight
d2839c2e28 Bug 886213 - Cycle collect Navigator more better. r=smaug 2013-06-28 11:06:39 -07:00
Catalin Iacob
f88cdc0744 Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn. 2013-06-23 14:03:39 +02:00
Gabor Krizsanits
9d5f7191e2 Bug 864335 - Remove GetScriptGlobalObject. r=mrbkap 2013-06-21 16:25:20 +02:00
Terrence Cole
6ef972c076 Bug 884410 - Handlify the JS_TransplantObject interfaces; r=jonco 2013-06-13 17:09:55 -07:00
Ted Mielczarek
1a96a1d17b bug 690935 - implement navigator.getGamepads(). r=smaug 2012-02-15 19:47:13 -05:00
Jon Coppeard
52bf2277ee Bug 877762 - GC: Post-barrier cycle collector participants - 7 Convert most JSObect to use Heap<T> (ex. XBL) r=bz 2013-06-18 11:00:38 +01:00
Timothy Nikkel
bc77426d22 Bug 641188. Ensure that delayed resizes are flushed from the view subsystem to the prescontext's visible area before using the visible area for innerWidth/Height. r=bz 2013-06-12 10:25:32 -05:00
Kyle Huey
e8d27b95ce Bug 854739: Ensure that messages are delivered in order when suspending and resuming workers. r=bent+bholley 2013-06-06 10:28:47 -07:00
Andrea Marchesini
e5a7dc1b03 Bug 858524 - Move BarProp objects to Paris bindings, r=ms2ger, r=smaug 2013-06-01 01:53:00 -07:00
Andrea Marchesini
313b431de5 Bug 858524 - Rename nsBarProp to BarProp, r=ms2ger 2013-05-31 03:30:00 -07:00
Bobby Holley
cc1584ef39 Bug 877390 - Do a blind null check. r=bz
Who knows why this happens, but this appears to be the culprit per crash
reports.
2013-05-30 14:49:13 -07:00
Ms2ger
b2058593ec Bug 876282 - Add unprefixed cancelAnimationFrame; r=bz 2013-05-28 19:31:31 +02:00
Jon Coppeard
048b511f81 Bug 874691 - Make CC participant tracing indirect r=mccr8 r=smaug r=bz 2013-05-27 12:50:49 +01:00
Aryeh Gregor
6f0fa40fb4 Bug 867101 - Fix more implicit conversion to already_AddRefed; r=Ms2ger 2013-04-28 14:52:10 +03:00
Bobby Holley
c9c266aea9 Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
Bobby Holley
c3247a55cf Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor 2013-05-22 10:05:26 -06:00
Bobby Holley
b78c627e44 Bug 868130 - Use an AutoSafeJSContext in hueyfix. r=gabor 2013-05-22 10:05:23 -06:00
Bobby Holley
d32f9d6e6f Bug 841312 - Replace the scripted closing unblocker termination function with an runnable. r=bz
The main idea behind this thing seems to be that we don't want script to quickly
close the window before the user has time to read the notification. Given the
fuzziness of the constraint here, I think we can (and maybe even should) unblock
a little bit later in the event loop, rather than immediately after the script
terminates.

Note that, due to modal dialogs and their event loop spinning shenanigans, we
want to do this only when the stack frame is popped.
2013-05-21 11:45:56 -06:00
Bobby Holley
f45682972e Bug 841312 - Remove window close termination function, and fall through to PostCloseEvent(). r=bz
This is a more jaded version of my previous attempt.
2013-05-21 11:45:56 -06:00
Boris Zbarsky
d0259d836d Bug 873735 part 2. Change nsIXPConnectJSObjectHolder::GetJSObject to return a JSObject*. r=bholley 2013-05-20 08:44:18 -04:00
Bobby Holley
3ccaaae37c Bug 860941 - Stop clearing return values on navigation. r=jst
Since this stuff is a property on the browsing context, this only makes sense
as a security check. But now that we're using a DialogValueHolder, the origin
checks are taken care of. So we can kill this off.
2013-05-17 10:43:19 -07:00
Bobby Holley
b9d24595cc Bug 860941 - Use DialogValueHolder for returnValue. r=jst
The spec currently has returnValue as a DOMString, but this doesn't match
reality given my testing. I filed [1] to fix it.

Note that nsGlobalModalWindow is already set up to CC mReturnValue. Since
we're swapping in another CC-ed container class, we don't need to make any
changes here.

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=21771
2013-05-17 10:43:19 -07:00
Bobby Holley
bd097afb56 Bug 860941 - Make dialogArguments default to |undefined| rather than |null|. r=jst
This is correct by my reading of the spec. Quoting:

The dialogArguments IDL attribute, on getting, must check whether its browsing
context's active document's origin is the same as the dialog arguments' origin.
If it is, then the browsing context's dialog arguments must be returned
unchanged. Otherwise, if the dialog arguments are an object, then the empty
string must be returned, and if the dialog arguments are not an object, then
the stringification of the dialog arguments must be returned.
2013-05-17 10:43:19 -07:00