Nicholas Nethercote
b756f6b258
Bug 898914 (part 1) - Remove JSBool.
...
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
David Dahl
7a1662853b
Bug 824652 - crypto.generateCRMFRequest bypasses CSP (allows script execution from a string, without unsafe-eval) r=bsmith r=khuey r=keeler
2013-08-06 21:46:05 -05:00
Nicholas Nethercote
ba723f1034
Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
...
--HG--
extra : rebase_source : 5b3d7cc339af6d93bde078322e25c6e740d1b617
2013-08-02 00:41:57 -07:00
Ryan VanderMeulen
57186da9cf
Backed out changeset a4dd0dc4e354 (bug 824652) for Android M1 orange.
2013-08-05 19:21:17 -04:00
David Dahl
18d09d5877
Bug 824652 - crypto.generateCRMFRequest bypasses CSP (allows script execution from a string, without unsafe-eval) r=bsmith r=khuey r=keeler
2013-08-05 16:15:22 -05:00
Boris Zbarsky
cad540afeb
Bug 900898 part 2. Move to using Nullable<TypedArray> to represent possibly-null TypedArray structs. r=smaug
2013-08-05 13:40:01 -04:00
Kyle Huey
1de28ca9fd
Bug 845545: Part 5 - Port ImageData to workers. r=mccr8,peterv,bent
2013-08-03 16:55:40 -07:00
Kyle Huey
e30e014637
Bug 845545: Part 4 - Create a worker implementation of CycleCollectedJSRuntime. r=mccr8,bent
2013-08-03 16:55:40 -07:00
Jon Coppeard
7fe70f39eb
Bug 899687 - crash in (anonymous namespace)::Worker::Trace(JSTracer*, JSObject*) r=khuey
2013-08-02 13:15:39 +01:00
Ms2ger
5c2b63d2c7
Merge m-c to inbound.
2013-08-02 11:07:57 +02:00
Bobby Holley
f7c06c0933
Bug 897322 - Allow callers to manually fire OnNewGlobalObject when bootstrapping is complete. r=luke
2013-08-01 18:38:47 -07:00
Bill McCloskey
ca26060518
Bug 899812 - Error reporters should consistently report errors to stderr (r=bholley)
2013-07-31 17:04:49 -07:00
Joey Armstrong
9bdf289b5e
Bug 870370 - Move EXTRA_COMPONENTS to mozbuild (file batch #3 ); r=mshal
2013-06-11 16:38:22 -04:00
Tom Schuster
ac3a02d510
Bug 884410 - Handlify JS_SetPrototype. r=terrence
2013-07-31 12:20:33 -04:00
Ehsan Akhgari
5ee21d6d3f
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Ehsan Akhgari
9854ac6166
Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted
2013-07-30 10:25:31 -04:00
Bobby Holley
c00f6379ec
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
488031ac4d
Bug 899245 - Rename js::GetDefaultGlobalForContext to js::DefaultObjectForContextOrNull. r=luke
...
This is more correct, since the object very often is not a global.
2013-07-29 16:45:25 -07:00
Jon Coppeard
8278efd42a
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Carsten "Tomcat" Book
8c89deb65b
Backed out changeset ae8d72538dee (bug 897484) for b2g bustage
2013-07-26 12:34:25 +02:00
Jon Coppeard
fc9b509d4f
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Ben Turner
7f77c96fa5
Bug 894993 - 'SessionWorker takes lots of memory'. r=billm+khuey.
2013-07-25 15:03:27 -04:00
Ms2ger
61c9150995
Bug 878600 - Move WorkerLocation to WebIDL; r=khuey
2013-07-24 09:41:55 +02:00
Ms2ger
9e0a52fd44
Bug 878401 - Move WorkerNavigator to WebIDL; r=khuey
2013-07-24 09:38:23 +02:00
Joshua Cranmer
fb0ab49c35
Bug 884061 - Part 3f: Use NS_DECL_THREADSAFE_ISUPPORTS in dom/, r=smaug,dhylands.
...
--HG--
extra : rebase_source : b8eaae07c54c94c8c46c7ed4c0e226eb74584652
2013-07-18 21:21:20 -05:00
Jon Coppeard
f9660af75a
Bug 888338 - 7 - add post barriers to workers r=smaug
2013-07-23 10:58:27 +01:00
Andrea Marchesini
587b4b9cea
Bug 890928 - Crashfix for URL.createURL in subworker. r=bent
...
--HG--
rename : dom/workers/test/url_worker.js => dom/workers/test/jsm_url_worker.js
2013-07-18 10:30:41 -04:00
Bobby Holley
f3d5f0ab60
Bug 887334 - Conditionally enter a compartment in WorkerPrivate::DoRunLoop. r=mrbkap
2013-07-17 11:53:54 -07:00
Boris Zbarsky
8ecfecabac
Bug 838146 part 1. Implement WebIDL API on Navigator for the parts that are specified or are in nsIDOMNavigator. r=smaug, sr=sicking
2013-07-12 10:35:35 -04:00
Trevor Saunders
82e5558b37
bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal
2013-07-11 11:06:34 -04:00
Olli Pettay
d97b855db6
Bug 887236 - prefix the current events in workers with 'Worker', r=bent
2013-07-08 12:55:14 -04:00
Brian Hackett
0db06b2f79
Bug 890636 - Remove JSOPTION_PCCOUNT, r=jandem.
2013-07-08 09:17:35 -06:00
Ms2ger
952b42c3f5
Bug 883114 - Part b: remove make rules from workers; r=ted
...
--HG--
rename : dom/workers/test/relativeLoad_sub_import.js => dom/workers/test/subdir/relativeLoad_sub_import.js
rename : dom/workers/test/relativeLoad_sub_worker.js => dom/workers/test/subdir/relativeLoad_sub_worker.js
rename : dom/workers/test/relativeLoad_sub_worker2.js => dom/workers/test/subdir/relativeLoad_sub_worker2.js
2013-07-01 09:02:14 +02:00
Bobby Holley
f77eb1e574
Bug 880917 - Convert JS_SetVersion API consumers to per-compartment versions. r=luke
2013-06-29 09:11:18 -06:00
Justin Lebar
6c46d0633d
Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Justin Lebar
75c400493b
Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
This is a mechanical change made with sed. Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Gregor Wagner
a6bc63ec3b
Bug 887125 - Allow 0 for Memory GC Preferences. r=bent
2013-06-27 14:40:17 +08:00
Andrea Marchesini
e0667fed3a
Bug 883784 - [Workers] Supporting URL.createObjectURL from a worker created by a jsm, r=bent
2013-06-22 14:48:00 -07:00
Jon Coppeard
4b40ce1453
Bug 885310 - 1 Rename JSHandleFoo in the browser r=bz
2013-06-21 14:12:46 +01:00
Ryan VanderMeulen
a6f27ec5e6
Backed out changeset e8d3827f914c (bug 883784) for mochitest assertions.
...
CLOSED TREE
2013-06-20 18:36:34 -04:00
Andrea Marchesini
b0ecc5adff
Bug 883784 - [Workers] Support URL.createObjectURL from a worker created by a jsm. r=bent
2013-06-20 16:49:36 -04:00
Brian O'Keefe
5f8b5163e8
Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1 ); r=mshal
...
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -04:00
Terrence Cole
a1b85dbc2a
Bug 884410 - Handlify the JS_ResolveStandardClass interface; r=jonco
...
--HG--
extra : rebase_source : 3ba45931aad97fb7cbca517ae9bccb974d42e57a
2013-06-13 17:10:00 -07:00
Jon Coppeard
c56ed4c7b6
Bug 884371 - Remove JSMutableHandleXXX from the browser r=bz
2013-06-19 11:32:27 +01:00
Boris Zbarsky
4728bf4f51
Bug 882653 part 3. Make the "does not implement interface" error reporting better in WebIDL bindings. r=smaug
2013-06-17 13:07:03 -04:00
Nils Maier
1175b5e33b
Bug 846019 - Part 2: Prefix memory reports with add-on ids. r=njn
2013-06-14 22:48:28 -04:00
James Kitchener
41dd9cfa20
Bug 796850 - Change XMLHttpRequest interface to support ByteString r=bz
2013-06-13 01:20:10 -04:00
Nicholas Nethercote
978a2c6eb2
Bug 882520 - Two minor tweaks to the memory reporting paths. r=bhackett.
...
--HG--
extra : rebase_source : b6176cd0b0314c2216ccc79f76a34fd558876092
2013-06-12 20:14:52 -07:00
Steve Fink
11211259fc
Bug 868700 - Manage structured clone memory with JSAutoStructuredCloneBuffer to prevent leaking unused buffers, r=bent
...
--HG--
extra : rebase_source : dfa942cf0825cb4c45c0fb3f8f87a0e039c7707a
2013-06-11 14:45:15 -07:00
Benjamin Peterson
ca23ac22c9
Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo
...
--HG--
extra : rebase_source : 34f95fc6017d3f3f4f091083debacbd466b51bf6
2013-06-11 12:49:11 -07:00
Ryan VanderMeulen
23aa576486
Backed out changeset 1df122edcf0d (bug 823978) for bustage (again).
...
CLOSED TREE (again)
2013-06-11 15:27:46 -04:00
Benjamin Peterson
1871556ad9
Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo
...
--HG--
extra : rebase_source : 1396c8ec5bd99ab35343cfff2b87d22955671243
2013-06-11 11:30:18 -07:00
Ryan VanderMeulen
9855cde4ef
Backed out changeset 7e69e102a432 (bug 823978) for bustage.
...
CLOSED TREE
2013-06-11 14:28:17 -04:00
Benjamin Peterson
e459c55070
Bug 823978 - Rename JSOPTION_STRICT to JSOPTION_EXTRA_WARNINGS. r=Waldo
...
--HG--
extra : rebase_source : f5c0e9c743dadb0431eacef6b46b6e274264d3aa
2013-06-11 10:55:21 -07:00
Jon Coppeard
72e8eed021
Bug 860573 - Part 1 - Store wrapper cache flags separately to the object pointer r=smaug
2013-06-08 09:53:21 +01:00
Ben Turner
bdc33f0f46
Bug 873356 - 'Should do shrinking GCs more often for workers'. r=khuey.
2013-05-16 15:49:43 -07:00
Kyle Huey
274e56e33b
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
Arnaud Sourioux
4f029c7b82
Bug 877746 - Annotate ~230 methods with MOZ_OVERRIDE in /dom. r=Ms2ger
2013-06-05 12:15:48 -04:00
Ms2ger
238b8da106
Bug 870466 - Remove initProgressEvent from workers; r=bent
2013-06-01 08:56:26 +02:00
Max Li
5ce2573638
Bug 743250 - test_xhr_implicit_cancel.html is() calls miss their msg parameter. r=khuey
2012-04-07 14:16:05 -04:00
Boris Zbarsky
a3d695962d
Bug 865377. Give EventTarget a chrome-only getter that returns its global. r=smaug
...
The idea is that you then do things like t.dispatchEvent(new t.ownerGlobal.Event("something")).
2013-05-30 17:46:39 -04:00
Boris Zbarsky
e1d7ebf663
Bug 876805. Fix unsafe reference gc hazards in dom/ code. r=smaug
2013-05-29 16:16:04 -04:00
Julian Seward
004a71f006
Bug 872496 - Allow early registration of stack tops, to improve native unwind quality. r=bgirard.
2013-05-28 14:03:38 +02:00
Mike Shal
994cfe0b6b
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Bobby Holley
54ef3d2952
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
Jan de Mooij
d1d46a2f99
Bug 857845 part 3 - Remove JM JSAPI flags, memory reporters and browser prefs. r=djvj
...
--HG--
extra : rebase_source : 8b2ed85801fcd8c8fd0fc16a89b1a275add1a310
2013-05-22 14:50:45 +02:00
Boris Zbarsky
fd290b314c
Bug 868312 finale: finish rooting dom/ code. r=smaug
2013-05-17 21:48:25 -04:00
Boris Zbarsky
fa5496e7a4
Bug 868715 part 4. Use on-stack Rooted<JSObject*> for 'object' arguments in WebIDL bindings. r=peterv
2013-05-16 12:36:55 -04:00
Ted Mielczarek
110919af49
bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium
2013-05-16 09:33:26 -04:00
Nathan Froyd
6b5880dddb
Bug 871007 - fix clang warning about class/struct mismatch for JS::RuntimeStats; r=bz
...
In file included from /opt/build/froydnj/build-mc/dom/bindings/BatteryManagerBinding.cpp:9:
/home/froydnj/src/mozilla-central-official.git/dom/workers/WorkerPrivate.h:44:16: warning: class 'RuntimeStats' was previously declared as a struct [-Wmismatched-tags]
namespace JS { class RuntimeStats; }
^
../../dist/include/js/MemoryMetrics.h:361:8: note: previous use is here
struct RuntimeStats
^
/home/froydnj/src/mozilla-central-official.git/dom/workers/WorkerPrivate.h:44:16: note: did you mean struct here?
namespace JS { class RuntimeStats; }
^~~~~
struct
2013-05-10 16:49:43 -04:00
David Zbarsky
1e6ff1698e
Bug 868312 - Some more rooting fixes for dom r=bz
2013-05-10 22:39:45 -04:00
Boris Zbarsky
ebeb2778f7
Bug 870219 part 2. Add a way for chrome JS that's implementing a WebIDL interface to get/set event handlers sanely on content objects. r=smaug
2013-05-09 13:07:16 -04:00
Boris Zbarsky
e8a330d3b3
Back out revision 52f646b2055c (bug 870219) because apparently worker code can't handle ChromeOnly properties
2013-05-09 14:12:12 -04:00
Boris Zbarsky
e7125a7329
Bug 870219. Add a way for chrome JS that's implementing a WebIDL interface to get/set event handlers sanely on content objects. r=smaug
2013-05-09 13:07:16 -04:00
David Zbarsky
7921fbf41a
Bug 868312: Root dom/workers r=bz
2013-05-09 03:27:40 -04:00
Terrence Cole
cd1aec056b
Bug 777548 - Make non-cc-participant tracing indirect; r=smaug,billm,jst
2013-03-28 13:37:22 -07:00
Bobby Holley
a97ccff46a
Bug 869800 - Stop using calling JS_SetGlobalObject in workers. r=bent
...
This makes workers the first consumer to be weaned off this API. \o/
2013-05-08 10:45:46 -07:00
Bobby Holley
47b0761c9a
Bug 869800 - Remove JS_GetGlobalObject from workers. r=bent
2013-05-08 10:45:46 -07:00
Luke Wagner
0adc1f4120
Bug 868184 - OdinMonkey: enable by default on beta/release (r=vlad)
...
--HG--
extra : rebase_source : c97bf37723eded74f95aae21e2baa692cf059c2e
2013-05-07 13:34:17 -07:00
Nathan Froyd
dc3bfcbc39
Bug 869073 - make WebIDL enums enum classes instead of plain enums; r=bz
2013-05-06 15:28:13 -04:00
Sankha Narayan Guria
7f0c4baace
Bug 867414 - Rename SafeAutoJSContext to AutoSafeJSContext. r=bholley
2013-05-06 09:04:17 -04:00
David Zbarsky
d0b5eecb70
Bug 868312: Various dom rooting fixes, part 2 r=bz
2013-05-04 03:53:00 -04:00
David Zbarsky
d4b3d0a59f
Bug 868312: Various dom rooting fixes r=bz
2013-05-04 03:52:57 -04:00
Boris Zbarsky
3200d7e8dc
Bug 865969 part 4. Pass handles to WebIDL dictionary init. r=smaug,terrence
2013-05-03 19:29:08 -04:00
Boris Zbarsky
4d5cf6450f
Bug 865969 part 1. Better rooting in bindings for 'object' arguments, as well as for worker interface arguments passed as JSObject*. r=smaug
2013-05-03 19:29:07 -04:00
David Zbarsky
c239a75547
Bug 866450 Part 7: Root some additional JS::Values found during review r=bz
2013-05-02 05:12:47 -04:00
David Zbarsky
e6b1eb46b4
Bug 866450 Part 2: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:46 -04:00
Ed Morley
dfe0338333
Backed out changeset b514d768d793 (bug 866450)
2013-05-02 11:57:14 +01:00
Ed Morley
5cfaa67828
Backed out changeset e0b51717bb64 (bug 866450)
2013-05-02 11:56:57 +01:00
David Zbarsky
2e0cd0171f
Bug 866450 Part 7: Root some additional JS::Values found during review r=bz
2013-05-02 05:12:47 -04:00
David Zbarsky
bc9b1bccdc
Bug 866450 Part 2: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:46 -04:00
Boris Zbarsky
583e53379d
Bug 861022 part 2. Root the global object in WebIDL prototype and interface object setup. r=peterv,terrence
2013-05-01 23:44:12 -04:00
Terrence Cole
e417ffe01a
Bug 860050 - Remove JSMutableHandleObject typedef; r=bz,jonco
2013-04-16 16:20:44 -07:00
Bobby Holley
8490fc8be1
Bug 865729 - Remove nsIJSContextStack from dom/foo. r=gabor
2013-04-29 11:16:18 -07:00
Boris Zbarsky
20ab2b6db5
Bug 862629 part 2. Remove the now-unused scope object bit in js-to-native conversions. r=peterv
2013-04-24 14:59:15 -04:00
David Zbarsky
82391d9a22
Bug 861729 - Remove nsPIDOMWindow::GetExtantDocument r=Ms2ger
2013-04-24 00:22:37 -04:00
Xin Zhang
5d0104d77b
Bug 857385 - Make various JSFunctionSpec arrays const. r=waldo
...
--HG--
extra : rebase_source : 24141998ffad3b0e6bad98b6fc0ce3754e448d5b
2013-04-22 14:15:49 -07:00
Xin Zhang
25f43429b6
Bug 857385 - Make various JSPropertySpec arrays const. r=waldo
...
--HG--
extra : rebase_source : 4ad63f7ddf8c441219bb7f30e19d66abf1747fe2
2013-04-22 14:15:36 -07:00
Benoit Girard
d8168f5e54
Bug 734691 - Port multi-thread support to win/mac. r=snorp,smaug
...
--HG--
extra : rebase_source : ce0d9f94d2b4deb249e09198f9315f69ad6ee7d4
2013-04-03 18:59:17 -04:00
James Willcox
07acfb74dc
Bug 734691 - Add multi-thread support to profiler r=benwa
...
--HG--
extra : rebase_source : 04021da9d3d871f51f931b6e6f57a0bbbbaa6393
2013-03-29 15:34:49 -04:00