Ryan VanderMeulen
fd758076bd
Merge m-c to inbound.
2013-07-30 18:08:18 -04:00
Justin Lebar
fb76ae538d
Bug 896890 - TabContent::HasOwnApp() should be true iff TabContext::GetOwnApp() is non-null.
...
This change reworks how TabContext stores its data. Before, it stored
an app-id and translated that into an app; now we do the reverse. This
lets us guarantee that HasOwnApp() is true iff GetOwnApp() is non-null.
We added a new class, MaybeInvalidTabContext to assist with converting
from an IPCTabContext to a TabContext. This allows us to ensure that a
TabContext object is never invalid.
2013-07-30 14:42:34 -07:00
Kartikaya Gupta
b0a221b29b
Bug 866232 - Update TabChild to better handle scrolling subframes. r=BenWa, mattwoodrow
2013-07-30 14:03:42 -04:00
Bobby Holley
98a0425f0f
Bug 899245 - Rename JS_GetGlobalForScopeChain to JS::CurrentGlobalOrNull. r=luke
...
This was done with perl/grep.
2013-07-29 16:45:27 -07:00
Ryan VanderMeulen
db283de51f
Backed out changeset 4aeb00521c9d (bug 896890) for build bustage.
...
CLOSED TREE
2013-07-30 15:50:46 -04:00
Justin Lebar
7aa4dc5297
Bug 896890 - TabContent::HasOwnApp() should be true iff TabContext::GetOwnApp() is non-null. r=khuey
...
This change reworks how TabContext stores its data. Before, it stored
an app-id and translated that into an app; now we do the reverse. This
lets us guarantee that HasOwnApp() is true iff GetOwnApp() is non-null.
We added a new class, MaybeInvalidTabContext to assist with converting
from an IPCTabContext to a TabContext. This allows us to ensure that a
TabContext object is never invalid.
--HG--
extra : rebase_source : d43e858739a342ab420122a90336bfd585be268a
2013-07-30 11:51:44 -07:00
Ehsan Akhgari
2824b29025
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
Kartikaya Gupta
40cfac1eb1
Bug 894288 - Prevent triggering an endless abort cycle when loading any tabs in the browser. r=BenWa
2013-07-25 14:54:26 -04:00
David Zbarsky
f6f620d05f
Bug 894646 - Various dom deCOM cleanups r=Ms2ger
2013-07-23 16:39:17 -07:00
Joshua Cranmer
36673bcae2
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
Ryan VanderMeulen
76ce8020e7
Merge m-c to inbound on a CLOSED TREE.
2013-07-18 14:53:05 -04:00
Fabrice Desré
d89eef6cf9
Bug 894940 - ProcessPriorityManagerChild::Init() is never called r=jlebar
2013-07-18 02:00:56 -07:00
Justin Lebar
ca73e2d2f6
Bug 893242 - Part 4: Add a memory reporter counting ContentParents and the number of IPC messages they have outstanding. r=njn
2013-07-17 14:31:10 -07:00
Justin Lebar
545d682d16
Bug 893242 - Part 3: Add ContentParent::GetAllEvenIfDead(). r=bent
...
To do this, we got rid of the explicit removal of a ContentParent from
sContentParents in MarkAsDead(). Instead, we rely on
LinkedListElement's destructor to remove the ContentParent from
sContentParents.
Thus, a ContentParent stays in sContentParents until it's destructed.
ContentParent::GetAll() checks whether the ContentParent is still alive,
so its behavior is unchanged.
2013-07-17 14:31:10 -07:00
Justin Lebar
21412f80a2
Bug 893242 - Part 2: Make sContentParents a StaticAutoPtr. r=khuey
...
This eliminates a static constructor, which is good. It also avoids a
problem at shutdown: If we leak a ContentParent and we destroy
sContentParents atexit, then sContentParents will assert that it's not
empty and cause test failures.
2013-07-17 14:31:10 -07:00
Justin Lebar
c56bcbc911
Bug 893242 - Part 0: Don't crash if we call ContentParent::Pid() after the process is dead. r=bent
2013-07-17 14:31:10 -07:00
Jinho Hwang
c232406d9e
Bug 894191 - Run ContentParent::ShutDownProcesss() after ContentParent::KillHard(). r=jlebar
...
--HG--
extra : rebase_source : 2cd9c02feab01b9506d74f721f24068fb653879d
2013-07-17 12:13:20 -07:00
David Zbarsky
7b9085b453
Bug 879475 - Make PBlob manually keep track of its manager r=jlebar
2013-07-16 13:07:09 -07:00
Ryan VanderMeulen
8fdb4e50eb
Merge birch to m-c.
2013-07-16 16:03:20 -04:00
Michael Wu
8c86ae8cab
Bug 870311 - Fix coordinates on contextmenu event, r=kats
2013-07-16 15:54:59 -04:00
Ryan VanderMeulen
d38f55bba0
Merge inbound to m-c.
2013-07-15 17:03:59 -04:00
Justin Lebar
c829941c0b
Bug 893172 - Call ShutDownProcess in ContentParent::ActorDestroy. r=bent
2013-07-15 08:55:13 -04:00
David Anderson
9358336f75
Implement CPOW support in MessageManager (bug 870180, r=smaug,billm).
2013-07-10 15:05:39 -07:00
Trevor Saunders
f33ade0d68
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
Tom Schuster
01185cf81d
Bug 886903 - Send correct UserAgent data for content process. r=jdm
2013-04-22 18:41:59 +02:00
Tom Schuster
c0bd78d712
Bug 868859 - Make chromeWindow.content work in e10s. r=bz
2013-05-08 23:16:46 +02:00
Ryan VanderMeulen
cc6b678858
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
Tom Schuster
a2ae0d76c3
Bug 886903 - Send correct UserAgent data for content process. r=jdm
2013-04-22 18:41:59 +02:00
Tom Schuster
5711ac35d2
Bug 868859 - Make chromeWindow.content work in e10s. r=bz
2013-05-08 23:16:46 +02:00
Brian O'Keefe
f4815f2203
Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps
2013-07-04 08:28:43 -04:00
Reuben Morais
ea38b25c81
Bug 889503 - Move Settings API to WebIDL. r=gwagner r=bz
...
--HG--
extra : rebase_source : 9f858f389b71344353658d4ed49996e0d90b8b99
2013-07-15 18:17:46 -07:00
Botond Ballo
9aa8bcf533
Bug 891468 - Convert nsEventStateManager::GetChildProcessOffset to return a LayoutDeviceIntPoint instead of an nsIntPoint. r=smaug
2013-07-11 10:43:35 -04:00
Botond Ballo
e1a8133ba6
Bug 890938 - Convert AsyncPanZoomController::ZoomToRect to take a CSSRect instead of a gfxRect. r=kats
2013-07-11 10:43:35 -04:00
Masayuki Nakano
da38d263f9
Bug 875674 part.1 nsIMEUpdatePreference should store wanted updates per notification r=roc
2013-07-11 16:46:34 +09:00
Wes Kocher
725b5f55d2
Backout 129da44ac469 (bug 870180) for breaking message manager
2013-07-10 18:22:34 -07:00
David Anderson
5f0258f3c3
Implement CPOW support in MessageManager (bug 870180, r=smaug,billm).
2013-07-10 15:05:39 -07:00
Gregory Szorc
13c6db4e00
Bug 891626 - Consistent filename casing for "ipc"; r=bsmedberg
...
"ipc" and "IPC" are used to refer to the same directory. "ipc" is more
popular than "IPC" so the latter has been downcased.
--HG--
extra : rebase_source : 378d442df62b8e401ed2a10f36889cfce6e88227
2013-07-10 12:08:23 -07:00
Ryan VanderMeulen
03e73d9988
Backed out changeset b7d6458d2a3c (bug 887483) for apparently causing Android robocop-2 failures.
2013-07-10 13:51:28 -04:00
David Zbarsky
72c136129d
Bug 879475 - Make PBrowser manually keep track of its manager r=jlebar
2013-07-10 13:07:51 -04:00
David Zbarsky
de9c375135
Bug 879475 - Move some blob constructor params to ipdlh headers r=jlebar
2013-07-10 13:07:51 -04:00
David Zbarsky
da4dc9068d
Bug 879475 - Move TabContext to its own ipdl header r=jlebar
...
--HG--
rename : dom/ipc/PContent.ipdl => dom/ipc/PTabContext.ipdlh
2013-07-10 13:07:50 -04:00
Trevor Saunders
63ed0e9589
bug 887483 - rm a bunch of useless assignments to FORCE_STATIC_LIB r=mshal
2013-06-25 14:29:26 -04:00
Ryan VanderMeulen
037efde64c
Backed out changeset 3265d1e6ed10 (bug 890938) for Werror bustage.
2013-07-10 10:46:31 -04:00
Botond Ballo
b840654f10
Bug 890938 - Convert AsyncPanZoomController::ZoomToRect to take a CSSRect instead of a gfxRect. r=kats
2013-07-10 10:04:20 -04:00
Ryan VanderMeulen
d806e1e244
Merge m-c to inbound.
2013-07-10 09:45:16 -04:00
JW Wang
485b8bde11
Bug 865347 - Add functions to manipulate fake volumes to test SD card insert/remove. r=dhylands
2013-07-09 14:37:47 +08:00
Ryan VanderMeulen
12785ceb9b
Backed out changesets d76274933db8 and dd3cedcdbe2b (bug 865347) to see if it fixes the Marionette timeouts.
2013-07-09 14:21:02 -04:00
JW Wang
6024fcafc0
Bug 865347 - Add functions to manipulate fake volumes to test SD card insert/remove. r=dhylands
2013-07-09 14:37:47 +08:00
Justin Lebar
b1b83ab016
Bug 890135 - Switch B2G's "gc log" dumping to produce all-traces logs by default. r=mccr8
...
This patch also adds "abbreviated gc log", which produces a not-all-traces CC log.
--HG--
extra : rebase_source : 84eed72c34b7cc8116fbe05258f5de22bf3275bc
2013-07-08 13:20:39 -04:00
David Zbarsky
b5085374df
Bug 885804: Blob changes r=jlebar
2013-07-08 11:48:40 -04:00