Commit Graph

16557 Commits

Author SHA1 Message Date
Bobby Holley
7c26851804 Bug 901106 - Make nsJSRuntime initialization infallible and do it implicitly in the nsJSContext constructor. r=mrbkap
We also move the runtime out of the namespace, which requires some updates.
2013-08-19 16:24:29 -07:00
Bobby Holley
684f16b450 Bug 901106 - Remove nsIScriptRuntime. r=mrbkap
All this stuff is now for nsGlobalWindow's use only.
2013-08-19 16:24:28 -07:00
Bobby Holley
6d140eb83f Bug 901106 - Stop using nsIScriptContext for XUL prototype documents. r=smaug
This patch is roughly analagous to what I did for XBL compilation scopes in
https://hg.mozilla.org/mozilla-central/rev/26898c90f9cc.

According to CC dumps, the gray unmarking during MarkInCCGeneration prevents this
stuff from being traversed during CC.
2013-08-19 16:24:28 -07:00
Bobby Holley
98c9992ba7 Bug 901106 - Stop implementing nsIScriptGlobalObjectOwner in nsXULPrototypeDocument. r=smaug 2013-08-19 16:24:27 -07:00
Bobby Holley
f45e40947e Bug 901106 - Pass nsXULPrototypeDocuments directly through serialization and use AutoSafeJSContext at the serialization point. r=smaug 2013-08-19 16:24:27 -07:00
Bobby Holley
1f3ab5118b Bug 901106 - Be more direct in nsXULPrototypeScript::Compile. r=smaug
Given that this is just the phony compilation global we're dealing with, the
only thing relevant about this script context is that it defaults to the right
compartment. But we can do that manually with the SafeJSContext.

The CanExecuteScripts check was something I added to address review comments
in bug 901162 comment 8. I now realize that it's effectively a no-op, because
the nsIScriptContext here corresponds to the compilation scope, not the
document, so it will never have script disabled.
2013-08-19 16:24:27 -07:00
Bobby Holley
ce13d4df7a Bug 901106 - Inline and remove nsIScriptContext::{Serialize,Deserialize}. r=smaug 2013-08-19 16:24:27 -07:00
Bobby Holley
1cbd09b70f Bug 901106 - Deserialize FastLoad scripts into the compilation scope, rather than the scope of the first document created. r=smaug
This code dates back to 2003, and smaug and I both think it's probably a bug.
In fact, it might cause leaks, because the prototype document would hold the
script alive, the script would hold the document alive, and the document would
hold the prototype document alive in the cache.
2013-08-19 16:24:26 -07:00
Ralph Giles
437a387175 Bug 865253 - Part 5: Shorten a comment to fit in 80 columns. r=ehsan 2013-08-19 11:58:00 -07:00
Ralph Giles
fc6c1b487b Bug 865253 - Part 4: Stop OscillatorNodes on context shutdown. r=ehsan
Like AudioBufferSourceNode and ScriptProcessorNode, OscillatorNode
holds a self-reference in mPlaying. Keep track of all osc nodes
in the AudioContext and explicitly stop them to make sure this
reference is dropped.
2013-08-19 11:57:00 -07:00
Ralph Giles
5c102b5da6 Bug 865253 - Part 3: Direct generation of fixed oscillator types. r=ehsan
Simple direct calculation of the fixed types.

We probably want to use the PeriodicWave machinery to generate
the pre-defined waveforms once it's available. In either case
we can optimize this significantly by caching the generated
waveform when the frequency is stationary over the block.
2013-08-19 11:56:00 -07:00
Ehsan Akhgari
d4b3957aa8 Bug 865253 - Part 2: Implement the alternate enum values for OscillatorNode; r=roc 2013-08-19 11:54:00 -07:00
Ehsan Akhgari
d3e93cd446 Bug 865253 - Part 1: Implement the DOM bindings for OscillatorNode; r=roc 2013-08-19 11:53:00 -07:00
Randell Jesup
6fd042fea7 Bug 905002: backout bug 879717 until we can fix the mac-only regression rs=roc 2013-08-19 18:30:15 -04:00
Olli Pettay
efdcdd5d9b Bug 906684, make sure to access the right EventTargetChainItem when forwarding events to chrome, r=jst
--HG--
extra : rebase_source : afb2b457c422585e85d7abccfd76f0b6f85315a4
2013-08-20 00:12:56 +03:00
Cervantes Yu
ea16e610c2 Bug 897741 - Limit the CSP cache key size to reduce memory usage. r=fabrice 2013-08-19 09:43:44 -04:00
Rick Eyre
e448413ee7 Bug 880064 - Change HTMLTrackElement::Kind to a DOMString value. r=Ms2ger
This was originally in the spec as an enumerated value, but due to the current
problems with reflecting enumerated values it had to be changed to a DOMString.
This has been changed in the HTML5 spec as well.
2013-07-04 14:16:05 -04:00
Mina Almasry
817ee803d6 Bug 717181 - Make <fieldset> invalid if they contain an invalid form control; r=mounir
This adds a CSS psuedo class to fieldset that acts much in the same way as the one
on form.
2013-08-16 20:32:47 -04:00
David Zbarsky
0f565540a1 Bug 903283: Don't include EventTarget.h in headers r=Ms2ger 2013-08-19 06:15:55 -04:00
Phil Ringnalda
3a9bc1d23d Merge m-c to m-i 2013-08-18 17:51:12 -07:00
Phil Ringnalda
8bfafc9e7d Merge fx-team to m-c 2013-08-18 17:44:05 -07:00
Tanvi Vyas
fbb2152434 Bug 902350 - Mochitest. r=smaug 2013-08-18 12:32:09 -07:00
Phil Ringnalda
beddb21787 Merge m-c to fx-team 2013-08-17 08:42:11 -07:00
Mark Capella
0d5545ac39 Bug 864589 - Show/hide text selection handles if a selection is programatically added/removed, r=margaret, ehsan 2013-08-16 21:51:41 -04:00
Wes Kocher
ad2cf0b4fb Backed out changeset 2404f5888de3 (bug 864589) 2013-08-16 16:09:46 -07:00
Mark Capella
437a43e9ca Bug 864589 - Show/hide text selection handles if a selection is programatically added/removed, r=margaret, ehsan 2013-08-16 16:45:42 -04:00
Ehsan Akhgari
e69e625575 Bug 905444 - Do not attempt that we can handle empty channels when mixing; r=roc 2013-08-16 10:42:50 -04:00
Olli Pettay
ff4865eaff Bug 887241, Use strings, not atoms, for worker events, r=khuey
--HG--
extra : rebase_source : 3e294b1bde05a127db0a9fa1c31c48e9a514e11d
2013-08-16 13:06:24 +03:00
Olli Pettay
adaf15c51f Bug 902481 - Make EventTargetChainItem pool thread agnostic, v2, r=jst
--HG--
extra : rebase_source : e1e9d9b87a29fd1d3ad6645f87a7075295c3c91d
2013-08-16 13:00:00 +03:00
Chris Double
2c1fdb55d7 Bug 905070 - Fix uninitialized value use in HTML media element - r=kinetik 2013-08-16 21:57:17 +12:00
Honza Bambas
6584db92d2 Bug 892488 - Get rid of the offline application cache prompt, r=ehsan+jonas 2013-08-16 11:34:21 +02:00
Carsten "Tomcat" Book
51ca40e611 merge fx-team to mozilla-central 2013-08-16 10:29:59 +02:00
Guillaume Abadie
d00425a189 bug 903455 - [WebGL 2.0] Implement transform feedback: RASTERIZER_DISCARD - r=jgilbert 2013-08-15 20:43:47 -04:00
Guillaume Abadie
c4915cab8f bug 902488 - [WebGL 2.0] Occlusion queries optimizations - r=jgilbert 2013-08-15 19:47:26 -04:00
Ehsan Akhgari
f678926c6d Bug 905409 - Minimize the Web Audio #includes; r=roc 2013-08-15 15:44:14 -04:00
Blake Kaplan
c09ff521ef Bug 851353 - Make sure the incoming node's JSObject is up to date. r=bzbarsky 2013-08-15 14:39:28 -07:00
Brian Hackett
b7e615b76f Bug 897655 - Use off thread parsing when loading scripts from XUL documents, r=billm,bz,luke. 2013-08-15 14:14:43 -07:00
Guillaume Abadie
3530bc7f3f bug 902063 - GLContext complete extension group queries - r=bjacob,jgilbert 2013-08-15 15:58:20 -04:00
Ehsan Akhgari
3ec2c9b451 Bug 905353 - Minimize the #includes in dom/base; r=jst
--HG--
extra : rebase_source : e7a1d2262bf6d8c9b78057b8eb6cdbfd98262f68
2013-08-15 14:17:48 -04:00
Christoph Kerschbaumer
224c44d3ec Bug 802872 - Mochitest verifying that CSP restricts EventSource using the connect-src directive. r=grobinson 2013-08-12 17:22:44 -07:00
Christoph Kerschbaumer
8e853c5c0c Bug 663567 - Mochitest verifying that content added by XSLT stylesheet is subject to document's CSP. r=grobinson, r=sstamm 2013-08-12 14:54:12 -07:00
Nicholas Nethercote
c3d1f48325 Bug 904962 (part 1) - Don't #include js/CharacterEncoding.h in jsapi.h. r=luke.
--HG--
extra : rebase_source : abe40ea3e55059dc6271d0f7c9f4d19ed9413186
2013-08-13 18:34:24 -07:00
Robert Longson
73f9e05201 Bug 905151 - eChildToUserSpace transform wrong for inner svg elements. r=jwatt 2013-08-15 11:49:06 +01:00
L. David Baron
923438e3e3 Back out changeset 2454e6a5edbd (Bug 904926) on CLOSED TREE for lots of fatal assertions in Windows debug builds in MediaDecoder::IsDataCachedToEndOfResource. 2013-08-14 22:36:17 -07:00
Robert O'Callahan
3807c1b21e Bug 904926. Remove unnecessary lock. r=cpearce 2013-08-15 16:24:00 +12:00
Robert O'Callahan
1be429f495 Bug 902320. Prevent untimely destruction of mElement during HTMLMediaElement::StreamListener callbacks. r=smaug 2013-08-15 16:23:52 +12:00
Wes Kocher
ff5292b3eb Backed out changeset 016fa89e49b0 (bug 905409) on a CLOSED TREE 2013-08-14 17:21:45 -07:00
Ehsan Akhgari
c6ce65cf2e Bug 905409 - Minimize the Web Audio #includes; r=roc 2013-08-14 18:46:00 -04:00
Nathan Froyd
ad0eb8954e Bug 903543 - eliminate static constructors for SMIL type singletons; r=dholbert
Add MOZ_CONSTEXPR to the constructors to inform the compiler the constructors
can be folded away.  Remove protected/private destructors so that static
destructors don't have to be registered with static constructors.
2013-08-12 10:13:34 -04:00
Nathan Froyd
bfbf646b23 Bug 905135 - move zero values to their point of use in nsSMILCSSValueType.cpp; r=dholbert 2013-08-14 08:45:49 -04:00