Bill McCloskey
e768db9720
Bug 1017310 - Associate JS compartments with add-on chrome XBL (r=bholley)
2014-06-23 16:33:37 -07:00
Bobby Holley
214d37d725
Bug 1027131 - Additional tests for wrapReflectors. r=gabor
2014-06-23 13:25:09 -07:00
Bobby Holley
488e6d0acd
Bug 1027131 - Use StackScopedClone for cloneInto. r=gabor
2014-06-23 13:25:08 -07:00
Bobby Holley
0569fde8d9
Bug 1027131 - Add support for function cloning in StackScopedClone. r=gabor
2014-06-23 13:25:08 -07:00
Bobby Holley
805eb76a47
Bug 1027131 - Innerize before reflector detection. r=gabor
2014-06-23 13:25:08 -07:00
Bobby Holley
8cb47bff3b
Bug 1027131 - Add support for Blob and FileList in the wrapReflectors = false case. r=gabor
2014-06-23 13:25:08 -07:00
Bobby Holley
2ef10e6572
Bug 1027131 - Switch to a struct for the StackScopedClone closure. r=gabor
2014-06-23 13:25:08 -07:00
Bobby Holley
b005530a36
Bug 1027131 - Rename CloneNonReflectors into StackScopedClone, and give it an options struct. r=gabor
2014-06-23 13:25:07 -07:00
Bobby Holley
472bdf6c66
Bug 1027131 - Remove invalid assertion. r=gabor
...
If a clone happens between two same-origin scopes, we'll end up with CCWs here
that are neither Xrays nor reflectors.
2014-06-23 13:25:07 -07:00
Bobby Holley
1a6329f053
Bug 1027131 - Split out ExportHelpers.cpp. r=gabor
...
A lot of this stuff is usable from both Sandbox.cpp and XPCComponents.cpp, and
those files are both pretty big these days.
2014-06-23 13:25:07 -07:00
Jason Orendorff
30f843bf05
Bug 645416, part 22 - Remove JSCompartment::wrapId. r=terrence.
...
This is unnecessary now that object jsids no longer exist. Both string and
symbol jsids point only to GC things in the atoms compartment, which are safe
to pass to any compartment without wrapping.
--HG--
extra : rebase_source : 82c21e8474df05b1bb42c14d872c981205bbe879
2014-06-23 10:57:02 -05:00
Jason Orendorff
42a78a347e
Bug 645416, part 3 - Symbol layout and GC support for allocating them. r=terrence.
...
Layout: js/src/vm/Symbol.h defines the new class JS::Symbol. JS::Symbol is the
same size as JSString on all platforms, because the allocator does not support
smaller allocations.
Allocation: Since the purpose of symbols is to serve as property keys, they are
always allocated in the atoms compartment.
We take a lock when allocating. This could probably be replaced with a
main-thread-only assertion. However, if atom allocation is not already a
bottleneck, symbol allocation probably never will be.
Symbols are given their own finalize-class in the GC. This means we allocate a
page per zone for symbols, even though they are only ever allocated in the
atoms zone. Terrence thought this could be easily fixed later. It should be; we
never touch the page, but a 32-bit virtual address space does not just have
infinite pages to spare.
A jsapi-test exercises the new symbol allocation code. A few oddities in
jsapi-tests are fixed in passing.
Discussion after review led to some new assertions about minimum object size in
AllocateObject and AllocateNonObject.
--HG--
extra : rebase_source : 45abb651d3b1b493d77a5dd0eb554f96b058c63a
2014-06-23 10:55:51 -05:00
Benoit Jacob
5d09c9860e
Bug 1028588 - Fix dangerous public destructors in js/xpconnect - r=bholley
2014-06-23 14:49:08 -04:00
Peter Van der Beken
98bc3ecb24
Bug 1027095 - Convert XPathResult to WebIDL bindings - add WebIDL API and switch. r=bz.
2013-07-04 17:40:06 +02:00
Bill McCloskey
8fd2ccc803
Bug 990729 - Add compartmentPerAddon option for XUL overlays (r=bholley)
2014-06-21 11:55:15 -07:00
Bill McCloskey
742a3daf61
Bug 990729 - No longer store addonId in sandbox metadata (r=bholley)
2014-06-21 11:54:37 -07:00
Bill McCloskey
21b58e5735
Bug 990729 - Tests for writeToGlobalPrototype (r=bholley)
2014-06-21 11:54:36 -07:00
Bill McCloskey
b3a35170a9
Bug 990729 - Add writeToGlobalPrototype option for sandboxes (r=bholley)
2014-06-21 11:54:36 -07:00
Brian Hackett
69dc66c545
Bug 1020012 - Consolidate ScriptSources with the same source, r=luke.
2014-06-21 10:39:04 -07:00
Neil Rashbrook
ee625f66f5
Bug 1026254 Broken chrome: URLs should result in error pages r=bsmedberg
2014-06-21 00:50:58 +01:00
Ms2ger
8824fbbbd9
Bug 1022855 - Rename nsCSSStyleSheet to mozilla::CSSStyleSheet; r=heycam
...
--HG--
rename : layout/style/nsCSSStyleSheet.cpp => layout/style/CSSStyleSheet.cpp
rename : layout/style/nsCSSStyleSheet.h => layout/style/CSSStyleSheet.h
2014-06-20 12:32:49 +02:00
Ms2ger
e67cb5f1e0
Backout revision 308e51eae10c for build bustage.
...
--HG--
rename : layout/style/CSSStyleSheet.cpp => layout/style/nsCSSStyleSheet.cpp
rename : layout/style/CSSStyleSheet.h => layout/style/nsCSSStyleSheet.h
2014-06-20 13:00:08 +02:00
Ms2ger
6a7f549221
Bug 1022855 - Rename nsCSSStyleSheet to mozilla::CSSStyleSheet; r=heycam
...
--HG--
rename : layout/style/nsCSSStyleSheet.cpp => layout/style/CSSStyleSheet.cpp
rename : layout/style/nsCSSStyleSheet.h => layout/style/CSSStyleSheet.h
2014-06-20 12:32:49 +02:00
Wes Kocher
6b2d91e1b6
Backed out 2 changesets (bug 1026008, bug 1025264) for debug crashtest leaks on a CLOSED TREE
...
Backed out changeset d7ab14487c62 (bug 1026008)
Backed out changeset 0b04aefdd3e3 (bug 1025264)
2014-06-19 17:13:12 -07:00
Neil Rashbrook
9671a95e16
Bug 1025264 Broken chrome: URLs should result in error pages r=bsmedberg
2014-06-19 23:56:02 +01:00
Bobby Holley
6f622e4316
Bug 976148 - Tests. r=gabor
2014-06-19 09:57:06 -07:00
Bobby Holley
aa57ea18a1
Bug 976148 - Support the .name and .length properties of Function instances. r=gabor
2014-06-19 09:57:06 -07:00
Bobby Holley
32c5b7b2ca
Bug 976148 - Support the 'prototype' property for standard constructors. r=gabor
2014-06-19 09:57:06 -07:00
Bobby Holley
99e2aa1310
Bug 976148 - Implement Xrays to Function objects. r=gabor
2014-06-19 09:57:06 -07:00
Bobby Holley
0aa09af7f8
Bug 1026860 - Remove mThisObjects and use the function parent instead. r=luke,khuey
2014-06-18 22:36:42 -07:00
Birunthan Mohanathas
617866f602
Bug 1026535 - Fix mismatched class/struct tags. r=ehsan
2014-06-18 17:57:51 -07:00
Birunthan Mohanathas
c910458886
Bug 1016240 - Exterminate CR+LF line endings. r=briansmith,cpearce,ehsan,gavin
2014-06-18 17:56:02 -07:00
Nicholas Nethercote
bb9d51e11e
Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
...
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Eric Faust
328fc1e2be
Bug 1011660 - Remove separate DOMClass struct. (r=bz)
2014-06-18 13:19:19 -07:00
Ryan VanderMeulen
2f0a82eeb9
Backed out changeset aca2ec2457ec (bug 1016738) for re-introducing frequent WebRTC crashes.
2014-06-17 21:12:43 -04:00
Boris Zbarsky
632d59fe2d
Bug 1019194 part 1. Get rid of nsIIndexedDatabaseManager. r=paul,khuey,mossop
2014-06-17 15:01:47 -04:00
Bill McCloskey
323cf39708
Bug 1016738 - Simplify/fix "dead compartment" logic (r=luke,jonco)
2014-06-17 11:20:33 -07:00
Bobby Holley
0f0f0bad67
Bug 987163 - Implement Xrays for TypedArrays. r=gabor
2014-06-17 10:16:08 -07:00
Bobby Holley
26f0951b3e
Bug 987163 - Drop special COW support for TypedArrays. r=gabor
...
From now on, if someone wants to expose a TypedArray to content, they should
use Cu.cloneInto.
2014-06-17 10:16:08 -07:00
Bobby Holley
d1755da7ec
Bug 987163 - Fix some squelched OOMs. r=gabor
2014-06-17 10:16:08 -07:00
Bobby Holley
19d3df9558
Bug 987163 - Convert from |switch| statements to |if| statements. r=gabor
...
I realized that the switches are going to be cumbersome for Array stuff, because
we'll have to enumerate each kind of TypedArray as a separate case: statement.
Let's just use |if| so that we can call a helper.
2014-06-17 10:16:08 -07:00
Ben Kelly
935db1e193
Bug 1025973 - Part 2: Do not pass JSContext to static webidl methods in non-worker case. r=bz
2014-06-16 12:52:00 -04:00
Brian Hackett
dbfdfe3e8d
Bug 1024038 - Remove YARR, r=jandem.
2014-06-16 15:37:53 -07:00
Terrence Cole
f0cea6a37a
Bug 1017650 - Remove the unused |proto| arg from the wrapping machinery; r=efaust
2014-06-16 11:59:59 -07:00
Sushant Dinesh
234b3636ac
Bug 1020364. Change parallel_compilation to offthread_compilation to prevent confusion. r=h4writer.
2014-06-16 12:05:12 +02:00
Daniel Stenberg
289d93b851
Bug 237623 - detect broken HTTP1.1 transfers. r=mcmanus,seth
...
Return error when the protocol layer detects a framing error. More data
was supposed to be delivered than what actually did arrive.
Error code returned for this: NS_ERROR_NET_PARTIAL_TRANSFER
In HTTP1.1 for Content-Length: and chunked-encoding underruns
In http2 and SPDY for framing errors when data has already been received.
imgRequest::OnStopRequest will keep partially loaded images shown but
remove them from cache.
2014-06-09 00:15:00 +02:00
Andrew McCreight
1ce2a85dbb
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
Nicholas Nethercote
69faa48701
Backout 277bacd9f2f8 (bug 1023719) for causing intermittent crashes.
...
--HG--
extra : rebase_source : e6c9e54dd2df572da7f8cdf3cd6226a1aeeee883
2014-06-13 06:39:16 -07:00
David Major
a54a2eb7d5
Bug 1024265 - Adjust the trusted script buffer size for win64. r=bholley
...
--HG--
extra : rebase_source : f7e16ccaae5892f3b25ed1b0da6e0f3159dadd25
2014-06-13 10:37:05 +12:00
David Major
1a49c0c89e
Bug 1024265 - Part 0: Fix comments. r=bholley DONTBUILD
...
--HG--
extra : rebase_source : 8bc1cf12182f241f0a1cfdaf27d54c9c56e69bda
2014-06-13 10:30:33 +12:00