Nicholas Nethercote
82a1594d4f
Bug 919889 (part 3) - Move the private_ field out of ObjectsExtraSizes. r=luke.
2013-09-24 23:24:28 -07:00
Nicholas Nethercote
099df4f86d
Bug 920818 (part 2) - Remove dead EXPORT_XPC_API -D constant. r=glandium.
...
--HG--
extra : rebase_source : c3d2776c68f3ea207d93d9e7575b51976f298c31
2013-09-25 19:49:07 -07:00
Nicholas Nethercote
efdb914ccf
Bug 920818 (part 1) - Remove dead JSFILE -D constant. r=glandium.
...
--HG--
extra : rebase_source : 6979db199a850f38e07349fad08c9c00a6a83fde
2013-09-25 19:47:58 -07:00
Nicholas Nethercote
a523823a2e
Bug 913260 (part 4) - Use distinguished amounts for all the memory measurements done by telemetry. r=mccr8.
...
CLOSED TREE
2013-09-19 15:52:30 -07:00
Nicholas Nethercote
ec20d3e49e
Bug 913260 (part 3) - Formalize the concept of "distinguished amounts" in the memory reporter manager. r=mccr8.
2013-09-19 15:52:28 -07:00
Phil Ringnalda
dc7a51cbc6
Backed out 3 changesets (bug 913260)
...
CLOSED TREE
Backed out changeset 9195be8a50cb (bug 913260)
Backed out changeset 09c71a3e7b85 (bug 913260)
Backed out changeset 8a8691a26012 (bug 913260)
2013-09-24 20:31:00 -07:00
Bobby Holley
0e4254d032
Bug 916945 - Tests. r=bz
2013-09-24 19:02:56 -07:00
Nicholas Nethercote
61d1e0eb22
Bug 913260 (part 4) - Use distinguished amounts for all the memory measurements done by telemetry. r=mccr8.
...
--HG--
extra : rebase_source : 0e9db51b137770ba7db15a99a4ec1e87071d2f47
2013-09-19 15:52:30 -07:00
Nicholas Nethercote
88dc61ac02
Bug 913260 (part 3) - Formalize the concept of "distinguished amounts" in the memory reporter manager. r=mccr8.
...
--HG--
extra : rebase_source : cc6f50d85f384ed665d44b2e8850618fd8a56fa5
2013-09-19 15:52:28 -07:00
Dan Gohman
df2b7be805
Bug 918023 - SpiderMonkey: Const-qualify various static variables. r=njn
2013-09-24 08:21:22 -07:00
Gregory Szorc
ed68c2482b
Bug 901990 - Part 2: Upgrade xpcshell manifests; r=ted
...
--HG--
rename : toolkit/mozapps/extensions/test/xpcshell-unpack/head_unpack.js => toolkit/mozapps/extensions/test/xpcshell/head_unpack.js
2013-09-24 11:50:08 -07:00
Ryan VanderMeulen
0e7da39b9e
Backed out changeset 2c3d1c9241d7 (bug 918023) for Windows debug TestEndian failures.
...
CLOSED TREE
2013-09-24 14:09:15 -04:00
Dan Gohman
aa74f0120c
Bug 918023 - SpiderMonkey: Const-qualify various static variables. r=njn
2013-09-24 08:21:22 -07:00
Bobby Holley
986a60874a
Bug 915613 - Introduce a mechanism to get a default context for a runtime, and use that in js-ctypes. r=jorendorff
...
This causes us to use the SafeJSContext on main thread, and the singleton
JSContext on workers. I opted for the slightly-heavier-weight dynamic callback,
rather than just setting it as a member on the runtime, because we like to delay
the creation of the SafeJSContext a bit, so I didn't want to spin it up right
when we spin up the runtime.
2013-09-24 08:03:23 -07:00
Masayuki Nakano
5bf1259e9f
Bug 912956 part.3 Create mozilla/BasicEvents.h r=roc
2013-09-24 19:04:14 +09:00
Jon Coppeard
1b245e7684
Bug 912567 - Split HashMap/HashSet::rekey() into rekey() and rekeyIfMoved() r=terrence
2013-09-24 10:03:32 +01:00
Olli Pettay
cf1e0b5d35
Bug 919717, in preparation for WebIDL EventListener, fix nsWrappedJS' JSObject handling, r=mccr8
...
--HG--
extra : rebase_source : 0ff6855c2283b6b395e5ad1cfcdd813b7467ac43
2013-09-24 00:08:35 +03:00
Ehsan Akhgari
b4cc06df88
Bug 918923 - Part 2: Switch to #including nsString.h in code using the internal strings API; r=bsmedberg
2013-09-23 13:25:00 -04:00
Phil Ringnalda
0e2b15772a
Merge m-c to fx-team
2013-09-22 09:16:05 -07:00
Gabor Krizsanits
5616363374
Bug 892214 - atob and btoa for Sandbox. r=bholley
2013-09-21 15:25:47 +02:00
Gabor Krizsanits
1abd57715b
Bug 892214 - Moving atob to xpcprivate. r=bholley
2013-09-21 15:25:47 +02:00
Gabor Krizsanits
a74540b370
Bug 892214 - Rename DOMConstructors to GlobalProperties in SandboxOptions. r=bholley, r=mossop
2013-09-21 15:25:46 +02:00
Jim Blandy
91c81ce6f1
Bug 916845: Reindent ReadSourceFromFilename to match the surrounding style. r=bz
2013-09-20 21:49:42 -07:00
Jim Blandy
bb94d69265
Bug 916845: Change sourceHook to a nice C++ object with a destructor. r=jorendorff
2013-09-20 21:44:46 -07:00
Jim Blandy
63811d0b30
Bug 916845: Use size_t to describe length of source code in SpiderMonkey SourceHook lazy source hook. r=jorendorff
2013-09-20 21:44:46 -07:00
Bobby Holley
9a9b886ded
Backed out changeset 86128d3eac88 (bug 916939) for breaking the web. r=me
2013-09-20 10:32:32 -07:00
Jon Coppeard
8c99b0611f
Bug 918373 - GC: Handlify various public APIs r=sfink r=bholley r=smaug
2013-09-20 10:22:59 +01:00
Jon Coppeard
cbb37ed339
Bug 917757 - Don't trigger Heap<T> post barriers in XPConnect shutdown r=bholley
2013-09-20 10:22:58 +01:00
Cykesiopka
b947cdc80e
Bug 914272 - Move IS_COMPONENT to mozbuild. r=joey
2013-09-19 17:29:32 -04:00
Benoit Jacob
eeccdc3ba1
Bug 913847 - Include MainThreadUtils.h instead of nsThreadUtils.h - r=ehsan
2013-09-19 09:54:42 -04:00
Jon Coppeard
38b602931b
Bug 917798 - Handlify JS exception APIs r=terrence r=bz
2013-09-19 08:54:01 +01:00
Wes Kocher
0ef93db36c
Backed out changeset 040522aacba4 (bug 913847)
2013-09-18 17:18:56 -07:00
Benoit Jacob
6560634fb1
Bug 913847 - Include MainThreadUtils.h instead of nsThreadUtils.h - r=ehsan
2013-09-18 18:50:32 -04:00
Mike Hommey
16d06af70c
Bug 917086 - Disallow DIRS, PARALLEL_DIRS and TEST_DIRS under TOOL_DIRS and TEST_TOOL_DIRS, and adapt moz.build files accordingly. r=gps
...
Also mark TOOL_DIRS/TEST_TOOL_DIRS directories in backend.mk and recurse them normally instead of forcing make -C dir libs for them.
2013-09-19 07:43:02 +09:00
Bobby Holley
b4f25f3553
Bug 916939 - Drop support for named and indexed access on cross-origin windows. r=bz
2013-09-18 08:39:48 -07:00
Bobby Holley
639680d3ce
Bug 914939 - Don't assert against OOM in XPCWrappedJS QI hooks. r=gabor
2013-09-18 08:34:12 -07:00
Eddy Bruel
6a0af9ae7d
Make Debugger.Source load the source text if it is not retained (bug 916845). r=jimb
2013-09-17 15:37:00 +03:00
Dan Gohman
dfdba8ca0e
Bug 916683 - SpiderMonkey: Tidy up misc preprocessor stuff. r=n.nethercote
2013-09-17 15:44:42 -07:00
Bobby Holley
14890f5c3c
Bug 905926 - Remove workaround in xpcshell. r=billm
2013-09-17 09:46:33 -07:00
Bobby Holley
e6da6b2483
Bug 905926 - Be more explicit about GCing twice in the nsXPConnect destructor. r=billm
...
In the current setup, we'll end up GCing once when destroying the SafeJSContext,
and then once again immediately after in the explicit GC we do before destroying
the XPCJSRuntime. It would be nice to avoid the first GC entirely, but we
currently need both to avoid leaking.
All in all, these patches cause us to GC three times during shutdown, rather
than twice as we did before, because the second GC was rolled together with
the runtime destruction GC when we destroyed the last JSContext. There are a
number of ways to eliminate these, at least in opt builds, but mccr8 thinks
it probably doesn't matter, since there shouldn't be much left in the heap after
the second GC.
We can probably get away with eliminating rambo GC entirely at some point. But
this might become irrelevant for the browser if we end up doing bug 662444.
It would also be interesting to see what, if anything, the rambo GC actually
collects. We might even be able to get away with asserting that all the zones
are gone and removing the GC entirely.
We also take the opportunity to kill mOwnSafeJSContext, which no longer holds
any meaning.
2013-09-17 09:46:32 -07:00
Bobby Holley
c681efb5f2
Bug 905926 - Invoke JS_DestroyRuntime before we totally tear down the XPCJSRuntime. r=billm
2013-09-17 09:46:31 -07:00
Bobby Holley
f52162ac7e
Bug 905926 - Stop creating an ephemeral JSContext during XPConnect shutdown. r=billm
...
This interacts badly with our attempts to shut things down nicely, and happens
to be entirely unused. the primary impact of it ends up being that the cx
destruction triggers a GC, which we depend on. But we can do that manually.
2013-09-17 09:46:31 -07:00
Bobby Holley
04cc7dffd1
Bug 916983 - Stop allowing writes for named access to cross-origin properties. r=bz
2013-09-17 09:46:30 -07:00
Bobby Holley
f8051a0c81
Bug 860494 - Tests. r=bz
2013-09-17 09:46:30 -07:00
Ehsan Akhgari
e748e79566
Bug 917267 - Remove some unneeded code in xpconnect; r=bholley
2013-09-17 12:38:56 -04:00
Thinker Lee ext:(%2C%20Cervantes%20Yu%20%3Ccyu%40mozilla.com%3E)
d6da7b763f
Bug 771765 - Support template content process, part 6: support re-creation of the threads created in the template process. r=khuey, r=jorendorff
...
The threads that are frozen/recreated include:
* ImageBridgeChildThread.
* Image decoding thread pool.
* IPC thread (checkpointed, but not frozen).
* GC Helper thread.
* XPC runtime watchdog thread.
* Socket transport service thread/thread pool.
* Memory pressure watcher.
* Timer thread.
* DOM promise worker.
2013-06-03 18:14:42 +08:00
David Zbarsky
548db48d32
Bug 915813: Remove nsIDOMUserProximityEvent r=smaug
2013-09-14 14:59:51 -04:00
David Zbarsky
b3c8139b98
Bug 915813: Convert DeviceLightEvent to webidl-only r=smaug
2013-09-14 14:59:50 -04:00
Brian Hackett
5acb780b03
Bug 915473 - Distinguish stack type sets from compiler-created temporary type sets, r=jandem.
2013-09-12 18:30:03 -06:00
Bobby Holley
d779411bbc
Bug 891891 - Back out crash diagnostics. r=me
2013-09-12 12:31:15 -07:00
Ryan VanderMeulen
1f1fb8a044
Merge m-c to inbound.
2013-09-11 22:20:33 -04:00
Ryan VanderMeulen
30168b484b
Merge fx-team to m-c.
2013-09-11 21:48:20 -04:00
Bobby Holley
9378a80390
Bug 856437 - Remove same-compartment permissive Xray machinery. r=gabor
2013-09-11 11:28:21 -07:00
Bobby Holley
759fd7d481
Bug 856437 - Remove lookupMethod API. r=gabor
2013-09-11 11:28:20 -07:00
Bobby Holley
9550f98b60
Bug 856437 - Remove LookupMethod test coverage. r=gabor
2013-09-11 11:28:20 -07:00
Mike Hordecki
2ea0a6172a
Bug 898559 - Add metadata API for add-on globals. r=bholley
2013-09-11 09:50:15 -04:00
Olli Pettay
9a59871760
Bug 900904 - Support webidl-only generated events, r=khuey,gps
...
--HG--
extra : rebase_source : cda37d1ae2ff9b969d081fe0ec103d4f07098a3b
2013-09-10 21:27:39 +03:00
Kannan Vijayan
9d912ed748
Bug 905523 - On windows, incrementally touch large baseline frames before using them. r=efaust
2013-09-10 06:19:30 -04:00
Ehsan Akhgari
63120f149f
Bug 913851 - Minimize the #includes in js/xpconnect; r=bholley
...
X-Git-Commit-ID: 78e6843063b303780a7dd2695dd2824a0a9c9a3c
--HG--
extra : rebase_source : 1dfcc228f43c68efbbc74f639570c227c26ef025
2013-09-09 23:14:10 +02:00
Boris Zbarsky
2e3ffc69ec
Bug 913670. Give scripts evaluated via evalInSandbox 1-based line numbers. r=bholley
2013-09-09 22:11:22 -04:00
Terrence Cole
09f12ae71d
Bug 912813 - Do not store an unrooted object in CompartmentOptions; r=bholley
...
--HG--
extra : rebase_source : b14639e8c2c2806401077c6bea3d4ce21be51886
2013-09-10 10:01:10 -07:00
Andrea Marchesini
b9dd502bb8
Bug 848294 - Update MessageEvent to be compatible with the spec, r=bz
2013-09-11 16:10:01 +02:00
Dan Gohman
8b7074b6dc
Bug 910823 - Constify static js::Class/JSClass instances. r=waldo
2013-09-11 05:49:05 -07:00
Nicholas Nethercote
52b5d8f76c
Bug 911641 (part 2) - Prefix some reporters with "redundant/", and make about:memory ignore them. r=johns.
...
--HG--
extra : rebase_source : 9ed48217ecb8af66256ddbdb70ad9f6b5d049582
2013-09-03 20:06:36 -07:00
Nicholas Nethercote
494f00f266
Bug 911641 (part 1) - Remove about:compartments, and show the compartment and ghost window lists into about:memory. r=johns.
...
--HG--
extra : rebase_source : c1ef005e272048e2eb84b20bafff15bcb5aae511
2013-09-03 20:05:17 -07:00
David Zbarsky
e1c60f464d
Bug 856373 - WebIDL-ify Gamepad events r=smaug
2013-09-11 18:35:51 -04:00
David Zbarsky
feb175cc7f
Bug 915248 - Convert DeviceProximityEvent to webidl-only r=smaug
2013-09-11 18:35:51 -04:00
Bobby Holley
49e92d12a3
Bug 914325 - Leave ourselves some room to make the call into chrome. r=luke
2013-09-11 15:24:09 -07:00
Nicholas Nethercote
9d1d4e73b0
Bug 910517 (3rd attempt) - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
...
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 2b2a1b2667d6562fcf803ec48b4a8c10fdd519a3
2013-08-27 16:24:51 -07:00
Nikhil Marathe
f10d854d1c
Bug 901291 - Get WebIDL callbacks working on Workers. r=khuey
2013-09-09 14:58:29 -07:00
Ehsan Akhgari
13a9b30ce0
Bug 913830 - Remove more unneeded #includes from the xpconnect IDL files; r=bholley
2013-09-09 22:37:37 +02:00
Ed Morley
5eb2bdb5c4
Backed out changeset 5c9f3fb14995 (bug 910517) for Android talos failures
...
--HG--
rename : content/canvas/src/WebGLMemoryReporterWrapper.h => content/canvas/src/WebGLMemoryMultiReporterWrapper.h
2013-09-09 16:07:48 +01:00
Nicholas Nethercote
85d3324d5e
Bug 910517 - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
...
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 76bf96ce8d6e16c8573584d9e8e70c80371f66eb
2013-08-27 16:24:51 -07:00
Nicholas Nethercote
3e6eda137c
Bug 910771 (part 1) - Create js/Tracer.h and gc/Tracer.cpp. r=terrence.
2013-09-02 22:01:18 -07:00
Kyle Huey
27e346e22d
Bug 911258: Part 5 - Use the unified exception handling mechanism on workers. r=bz
2013-09-08 20:29:21 -07:00
Kyle Huey
d423a6350e
Bug 911258: Part 4 - Refactor exception implementations. r=bz
2013-09-08 20:28:50 -07:00
Kyle Huey
e6f82a681d
Bug 911258: Part 3 - Convert exceptions to WebIDL. r=bz
2013-09-08 20:28:49 -07:00
Kyle Huey
61aeeecde4
Bug 911258: Part 1 - Remove nsIExceptionService/Manager usage. r=bholley
2013-09-08 20:28:49 -07:00
Kyle Huey
cf498d852b
Bug 910924: Give workers an nsIGlobalObject. r=bent,bholley
2013-09-08 20:28:48 -07:00
Kyle Huey
abebd382da
Bug 910937: Remove xpc_UnmarkGrayObject and use JSAPI directly. r=mccr8
2013-09-08 20:28:48 -07:00
Michael Harrison
e44a198aba
Bug 909768 - Replace idl::GeoPositionOptions with dom::PositionOptions. r=jdm
2013-09-06 16:44:26 -04:00
Andrew McCreight
3b16db1fc8
Bug 911233, part 1 - Minor cycle collector cleanups. r=smaug
2013-09-06 13:40:34 -07:00
Ehsan Akhgari
36280b9569
Bug 913531 - Remove the unnecessary #includes from nsIXPConnect.idl; r=bholley
2013-09-06 13:50:24 -04:00
Bobby Holley
6950cfb037
Bug 905364 - Force the SafeJSContext to fire up in xpcshell. r=bz
2013-09-06 11:35:12 -07:00
Bobby Holley
3d1a1af697
Bug 905364 - Don't call into AllowXULXBLForPrincipal during SafeJSContext initialization. r=bz
...
In the old world, we'd be saved by initializing the SafeJSContext early enough
that we'd short-circuit in the nsContentUtils::IsInitialized() check. That's not
the case anymore, so let's hande this explicitly.
2013-09-06 11:35:11 -07:00
Jason Orendorff
5aead903ea
Bug 893186, part 5 - Delete JS_GetPropertyAttributes and many similar APIs; remove half a dozen methods from JS::Class. r=Waldo.
...
--HG--
extra : rebase_source : 1f4a01938b06b66ef855f9b654f098b4819b1390
2013-09-06 12:05:30 -05:00
Jason Orendorff
511753b3b6
Bug 893186, part 1 - Fix some code in xpconnect to use JS_HasProperty instead of JS_GetPropertyAttributes. r=bholley.
...
--HG--
extra : rebase_source : 2a9350bfd887fb6000d4f558f79c1a0dc8483efb
2013-09-06 12:02:51 -05:00
Bobby Holley
4b28d25fe5
Bug 912322 - Stop making XBL methods available to the web. r=bz
2013-09-06 09:12:56 -07:00
Bobby Holley
686a940c6e
Bug 912322 - Fix tests. r=bz
...
The crashtest changes are untested (aside from the fact that they don't crash).
2013-09-06 09:12:56 -07:00
Bobby Holley
4569f739ee
Bug 912322 - Update semantics of IsChromeOrXBL to return true for remote XUL. r=bz
...
This brings us into alignment with nsContentUtils::IsCallerXBL(). We also take
the opportunity to clean up some comments and invariants that changed with the
removal of the XBL bit.
2013-09-06 09:12:56 -07:00
Bobby Holley
74a8289887
Bug 912322 - Sync pref from reftest-cmdline.js to bootstrap.js. r=jgriffin
2013-09-06 09:12:55 -07:00
Jim Blandy
28ebe45d1b
Bug 899757: Make nsServerSocket::InitWithAddress provide more detailed error results. r=mayhemer, r=ted
...
I looked through the NSPR socket creation functions that InitWithAddress
uses to see which errors they could return, and placed appropriate comments
in ErrorAccordingToNSPR.
The test coverage is not great; in particular, I wasn't able to find a way
to elicit "address in use" errors from Windows (although I could from
Linux); the web says that Windows is much more relaxed about binding
listening sockets than Unix derivatives. I'm interested in suggestions.
2013-09-06 08:06:22 -07:00
Jim Blandy
742666beae
Bug 899757: Distinguish PR_ADDRESS_NOT_SUPPORTED_ERROR from other network failures. r=mayhemer
...
I broke out this this change on its own, because it seemed to require some care:
PR_ADDRESS_NOT_SUPPORTED_ERROR used to be lumped in with several other NSPR
error codes and reported as NS_ERROR_CONNECTION_REFUSED; and a dumb grep shows
that the NS_ERROR_ is widely checked for. Introducing the distinction might
require the new NS_ERROR_SOCKET_ADDRESS_NOT_SUPPORTED value to be checked for
everywhere that currently checks for NS_ERROR_CONNECTION_REFUSED.
But that seems unlikely to be necessary: first of all, it shouldn't really
be possible, via the XPCOM interface, to force this error path to occur at
present: the components' implementations are in complete control over which
socket address types get used. I also did a Try push with a call to
NS_ABORT if a PR_ADDRESS_NOT_SUPPORTED_ERROR ever flows through
ErrorAccordingToNSPR; there were no crashes.
But if that's so, then why introduce the new error code at all? A later
patch adds support for Unix-domain sockets, a type of socket address which
is *not* supported on non-Unix systems. In that case, a distinct error code
will help people diagnose problems quickly.
2013-09-06 08:06:22 -07:00
Ms2ger
4abf38566a
Merge m-c to inbound.
2013-09-06 12:31:58 +02:00
Ms2ger
84672db888
Bug 909953 - Introduce a HTMLAllCollection class; r=smaug
2013-09-06 08:41:42 +02:00
Nicholas Nethercote
3a2ab0db3f
Bug 912411 (part 2) - Move JSID_{VOID,EMPTY}HANDLE from jsapi.{h,cpp} to Id.{h,cpp}. r=luke.
...
--HG--
extra : rebase_source : 5fb68bf5079e3261fdca6cb99717d3a502c878f3
2013-09-05 16:08:57 -07:00
Nicholas Nethercote
6ed33677cf
Bug 912411 (part 1) - Removed some jsapi.h includes in Gecko. r=bz.
...
--HG--
extra : rebase_source : c0b73945bcd6978a616fd846e33e69fae9162d78
2013-09-05 16:08:06 -07:00
Robert O'Callahan
33cdb42706
Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
...
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Phil Ringnalda
ad36ee41a9
Back out 4537337759b7 (bug 910517) because nobody expects the talos inquisition
...
--HG--
rename : content/canvas/src/WebGLMemoryReporterWrapper.h => content/canvas/src/WebGLMemoryMultiReporterWrapper.h
2013-09-04 22:42:06 -07:00
Phil Ringnalda
82a82c7965
Back out e46601eb7279:533dc9ea3301 (bug 912322) for Android reftest bustage
2013-09-04 21:49:16 -07:00
Nicholas Nethercote
43ad5b4dcf
Bug 910517 - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
...
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 9142be547b2eeef37a8073a710ce23070f98cf65
2013-08-27 16:24:51 -07:00
Bobby Holley
5d00a02f31
Bug 912322 - Stop making XBL methods available to the web. r=bz
2013-09-04 19:05:52 -07:00
Bobby Holley
4f18e183bb
Bug 912322 - Fix tests. r=bz
...
The crashtest changes are untested (aside from the fact that they don't crash).
2013-09-04 19:05:51 -07:00
Bobby Holley
99eb14ce12
Bug 912322 - Update semantics of IsChromeOrXBL to return true for remote XUL. r=bz
...
This brings us into alignment with nsContentUtils::IsCallerXBL(). We also take
the opportunity to clean up some comments and invariants that changed with the
removal of the XBL bit.
2013-09-04 19:05:51 -07:00
Mike Hommey
f1cf3b4238
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Bobby Holley
b8f437054d
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-09-04 14:06:57 -07:00
Bobby Holley
401b0ffa0b
Bug 899367 - Remove xpc_UnmarkGrayContext. r=mccr8
...
Default compartment objects are never gray anymore.
2013-09-04 14:06:56 -07:00
Bobby Holley
6d001e824e
Bug 899367 - Stop storing the window proxy on the JSContext. r=mccr8
...
We need to simultaneously report the new Heap Pointer to the cycle collector,
and remove the old machinery for cycle-collecting the default object via the
JSContext.
2013-09-04 14:06:56 -07:00
Bobby Holley
be3b15d07d
Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8
2013-09-04 14:06:55 -07:00
Bobby Holley
9ed5f11e8d
Bug 899367 - Explicitly traverse outer windows, rather than doing it via JSContext iteration. r=mccr8
...
Note that this machinery will go away in further patches. But we want to be
deliberate about each of these steps.
2013-09-04 14:06:54 -07:00
Bobby Holley
8abcb2d562
Bug 899367 - Explicitly trace outer windows, rather than doing it via JSContext iteration. r=mccr8
2013-09-04 14:06:54 -07:00
Bobby Holley
5cfc3855a5
Bug 899367 - Only use JSOPTION_UNROOTED_GLOBAL for DOM JSContexts. r=mccr8
...
We don't cycle collect any other kind, so there's no difference between marking
them gray and letting the JS engine mark them black. This also gets rid of that
nasty code which reset the flag, which billm theorizes has to do with faulty
logic in ContextHolder when creating ephemeral sandbox cxes. The assertion in
this patch should catch us if anything goes wrong.
2013-09-04 14:06:54 -07:00
Ed Morley
17f2f82cdb
Merge mozilla-central and inbound
2013-09-04 16:53:03 +01:00
Gabor Krizsanits
b28e26644b
Bug 892203 - TextEncoder and TextDecoder for sandbox. r=bholley
2013-09-04 12:18:28 +02:00
Gabor Krizsanits
a58d3406fb
Bug 892203 - DOMConstructors for SandboxOptions. r=bholley
2013-09-04 12:16:04 +02:00
Gabor Krizsanits
398aaa2927
Bug 892203 - Minor cleanups in sandbox.cpp. r=bholley
2013-09-04 12:15:50 +02:00
Felipe Gomes
5de1caaed5
Bug 899348 - Dispatch an event when an out-of-process browser crashes and display an error page when that occurs. r=bz
2013-09-03 19:11:22 -03:00
Gregory Szorc
7693c5688d
Bug 896797 - Part 2: Don't list autogenerated files in EXPORTS; r=glandium
2013-09-03 20:28:05 -07:00
Phil Ringnalda
271703650a
Back out ce03cc2994aa:ae9f95fc1136 (bug 896797) for SpiderMonkey shell build bustage
...
CLOSED TREE
2013-09-03 23:21:30 -07:00
Gregory Szorc
f10d205e39
Bug 896797 - Part 2: Don't list autogenerated files in EXPORTS; r=glandium
2013-09-03 20:28:05 -07:00
Phil Ringnalda
88db37da09
Back out cc6f66e761d8 (bug 896797) for Windows build bustage
...
CLOSED TREE
2013-09-03 21:55:21 -07:00
Gregory Szorc
bceea37cd9
Bug 896797 - Part 2: Don't list autogenerated files in EXPORTS; r=glandium
2013-09-03 20:28:05 -07:00
Nicholas Nethercote
1a9de23d54
Bug 911043 (part 1) - Move the "inject JS:: names into js::" block into its own file, to reduce dependencies on jsapi.h. r=luke.
...
--HG--
extra : rebase_source : 2250064bdd316ffeb8126da749bdf94ab9da4418
2013-09-01 21:51:02 -07:00
Nicholas Nethercote
191ed08f6a
Bug 911020 - Introduce js/TypeDecls.h, which holds very commonly used type declarations from the JS engine. r=luke.
...
--HG--
extra : rebase_source : 008ef689989f93b46627b8be8608bdbc544ca3a2
2013-08-27 19:59:14 -07:00
Bobby Holley
1347c7fba1
Bug 910863 - Skip firing the operation callback if a debugger is attached. r=mrbkap,glandium
2013-08-30 09:46:02 -07:00
Masatoshi Kimura
b56a94440f
Bug 910751 - Hide UserDataHandler from content. r=smaug
2013-08-30 20:39:37 +09:00
Olli Pettay
414342daf2
Bug 910797, make Event.isTrusted to work in workers, r=khuey
2013-08-30 12:47:19 +03:00
Bobby Holley
e5550b2f93
Bug 908019 - Split up watchdog tests to run in parallel. r=mrbkap
...
This speeds up local xpcshell-test runs by ~6 seconds.
2013-08-29 09:32:25 -07:00
Nicholas Nethercote
9e88f47219
Bug 910109 (part 2) - Make jswrapper.h not depend on jsapi.h. r=luke.
...
--HG--
extra : rebase_source : 138e93b074691e9da0feab9cd24e149f4d5edf6a
2013-08-28 17:24:34 -07:00
Nicholas Nethercote
57b389b877
Bug 910109 (part 1) - Make jsproxy.h not depend on jsapi.h. r=luke.
...
--HG--
extra : rebase_source : bc2fa911e3a7feaafb778b756994e126257585a7
2013-08-28 17:20:24 -07:00
Bobby Holley
a899450297
Bug 732665 - Tests. r=luke
2013-08-28 11:04:16 -07:00
Bobby Holley
756469507b
Bug 732665 - Use separate stack depths for XPConnect JS. r=luke
2013-08-28 11:04:16 -07:00
Bobby Holley
83137c28bf
Bug 732665 - Clean up and clarify the stack sizing logic. r=luke
...
The only change in behavior here is that we give the osx check higher precedence
than the DEBUG check, meaning that we end up with 7MB stacks on osx debug rather
than 4MB stacks. But this seems strictly better given the logic involved here.
2013-08-28 11:04:16 -07:00
Bobby Holley
4819690f50
Bug 732665 - Disable a few test on mac. r=tbsaunde,me
...
These tests trigger very slow infinite recursion in the status quo. With the
existing stack quotas, they always (or usually) hit the native stack limit
before the test times out, causing them to be green on tinderbox. But when
we bump the debug mac stack limit, they end up timing out. We have bugs on
file for the various issues, but let's not let them block this landing.
2013-08-28 11:04:15 -07:00
Boris Zbarsky
be1711a990
Bug 909645 part 4. Don't include ipdl headers in DesktopNotification.h. r=ms2ger,glandium
2013-08-28 00:14:57 -04:00
Brian O'Keefe
4f68eb9b02
Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal
2013-08-15 09:02:09 -04:00
Nicholas Nethercote
d262cece7e
Bug 831193 (part 3) - Don't use NS_MEMORY_REPORTER_IMPLEMENT in XPCJSRuntime.cpp. r=terrence.
...
--HG--
extra : rebase_source : 09df0ea5b3bb546e5c75d59d170f54124d834b4d
2013-01-15 21:28:35 -08:00
Nicholas Nethercote
3f5d413d90
Bug 909597 (part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}. r=luke.
...
--HG--
rename : js/src/jsdbgapi.h => js/public/OldDebugAPI.h
rename : js/src/jsdbgapi.cpp => js/src/vm/OldDebugAPI.cpp
extra : rebase_source : 9cd65a698e726c43d88d650f40823367bf98feae
2013-08-26 19:05:20 -07:00
Ryan VanderMeulen
3972d92239
Merge m-c to inbound on a CLOSED TREE.
2013-08-27 22:40:49 -04:00
Ryan VanderMeulen
2f3de4dea0
Backed out 12 changesets (bug 899367) for Windows and OSX mochitest failures on a CLOSED TREE.
...
Backed out changeset 46cf4c3eb447 (bug 899367)
Backed out changeset d8a876219fc7 (bug 899367)
Backed out changeset d930333f95a7 (bug 899367)
Backed out changeset efae8cc0fff8 (bug 899367)
Backed out changeset 1dd262d146a6 (bug 899367)
Backed out changeset 4c396b8a51d0 (bug 899367)
Backed out changeset c8c30176639a (bug 899367)
Backed out changeset aaa8fbcf9aaf (bug 899367)
Backed out changeset d1a782044a4b (bug 899367)
Backed out changeset b2672ab55046 (bug 899367)
Backed out changeset fc4deb0b06fa (bug 899367)
Backed out changeset b9f1018a609c (bug 899367)
2013-08-27 21:14:54 -04:00
Andrew McCreight
69fc8f5296
Bug 904826 - Remove some unneeded nsLayoutStatics calls. r=smaug,bholley,bz
2013-08-27 15:39:02 -07:00
Bobby Holley
6274710e79
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-08-27 15:21:40 -07:00
Bobby Holley
cff26b12ce
Bug 899367 - Remove xpc_UnmarkGrayContext. r=mccr8
...
Default compartment objects are never gray anymore.
2013-08-27 15:21:39 -07:00
Bobby Holley
05b0b5e0f2
Bug 899367 - Stop storing the window proxy on the JSContext. r=mccr8
...
We need to simultaneously report the new Heap Pointer to the cycle collector,
and remove the old machinery for cycle-collecting the default object via the
JSContext.
2013-08-27 15:21:39 -07:00
Bobby Holley
5813ab4158
Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8
2013-08-27 15:21:38 -07:00
Bobby Holley
c93dc7b4a1
Bug 899367 - Explicitly traverse outer windows, rather than doing it via JSContext iteration. r=mccr8
...
Note that this machinery will go away in further patches. But we want to be
deliberate about each of these steps.
2013-08-27 15:21:38 -07:00
Bobby Holley
add3235319
Bug 899367 - Explicitly trace outer windows, rather than doing it via JSContext iteration. r=mccr8
2013-08-27 15:21:37 -07:00
Bobby Holley
b7966edcf1
Bug 899367 - Only use JSOPTION_UNROOTED_GLOBAL for DOM JSContexts. r=mccr8
...
We don't cycle collect any other kind, so there's no difference between marking
them gray and letting the JS engine mark them black. This also gets rid of that
nasty code which reset the flag, which billm theorizes has to do with faulty
logic in ContextHolder when creating ephemeral sandbox cxes. The assertion in
this patch should catch us if anything goes wrong.
2013-08-27 15:21:37 -07:00
Justin Lebar
a12ca3e4e8
Bug 909514 - Include <new> before mozilla::Maybe (and move Maybe into mfbt/Maybe.h). r=waldo
...
--HG--
rename : mfbt/Util.h => mfbt/Maybe.h
2013-08-27 15:10:28 -07:00
Szu-Yu Chen [:aknow]
063d6ffcc7
Bug 882983 - Part 1: Add ota status event (idl, webidl). r=hsinyi, sr=smaug
2013-08-27 08:25:53 -04:00