Commit Graph

1144 Commits

Author SHA1 Message Date
Tom Schuster
b47a41208b Bug 897062 - Handle special clicks in e10s. r=felipe,smaug 2013-08-08 20:16:47 -04:00
Nicholas Nethercote
849635b8f1 Bug 898914 (part 1) - Remove JSBool.
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Justin Lebar
73f43d506f Bug 895204 - Let ContentParent call CloseWithError() even if it's already called Close(). r=khuey
When Close() fails with an error, we should end up back in ContentParent and we eventually need to call CloseWithError().
2013-08-07 11:08:52 -07:00
Tom Schuster
042a54a9cb Bug 617804 - Note that SetTitle is implemeneted by JS. rs=felipe 2013-08-06 12:35:39 -04:00
Olli Pettay
8c1d091b8e Bug 901312 - crash in mozilla::dom::ContentParent::ActorDestroy @ nsFrameMessageManager::Disconnect, r=jlebar
--HG--
extra : rebase_source : a03a8b0339fc7200ed2430dcfaa81986fef743e7
2013-08-05 14:02:38 +03:00
Nicholas Cameron
dd58f82344 Bug 874721, bug 899435. D3D9 compositor and windows OMTC window resizing. r=Bas, mattwoodrow 2013-08-04 19:46:17 +12:00
Tom Schuster
154b379adb Bug 617804 - Implement SetStatus in TabChild/TabParent, enables link tooltips. r=felipe 2013-07-25 15:45:31 -04:00
Ed Morley
0dd52ba0e1 Merge latest green b2g-inbound changeset and mozilla-central 2013-08-02 13:30:22 +01:00
Ms2ger
625b832e4f Bug 896251 - Make nsEvent::{refPoint, lastRefPoint} LayoutDeviceIntPoints; r=smaug+kats 2013-08-02 09:05:16 +02:00
Justin Lebar
7a09255449 Bug 899761 - Fix a debug-build shutdown crash in ContentParent. r=khuey
Sometimes a ContentParent object gets destroyed after XPCOM shutdown has
shut down the cycle collector.  If the ContentParent destructor releases
a cycle collected object (e.g. mMessageManager), this causes the cycle
collector to assert.
2013-07-31 14:26:19 -07:00
Ryan VanderMeulen
02d1dbe0d8 Merge m-c to inbound. 2013-07-30 18:08:18 -04:00
Justin Lebar
9befee6c8d 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
80fc21967b Bug 866232 - Update TabChild to better handle scrolling subframes. r=BenWa, mattwoodrow 2013-07-30 14:03:42 -04:00
Bobby Holley
99246966e4 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
77cb688076 Backed out changeset 4aeb00521c9d (bug 896890) for build bustage.
CLOSED TREE
2013-07-30 15:50:46 -04:00
Justin Lebar
c092dd4810 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
085494b95d 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
4c54164898 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
b9c20a7821 Bug 894646 - Various dom deCOM cleanups r=Ms2ger 2013-07-23 16:39:17 -07:00
Joshua Cranmer
f44c71b4ef 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
ba97a4cddb Merge m-c to inbound on a CLOSED TREE. 2013-07-18 14:53:05 -04:00
Fabrice Desré
1dd2c96895 Bug 894940 - ProcessPriorityManagerChild::Init() is never called r=jlebar 2013-07-18 02:00:56 -07:00
Justin Lebar
c3947b21bb 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
17f38d235b 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
6b91a51925 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
439e6922dd 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
cb3b4dd80a 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
d7ff0ef7d9 Bug 879475 - Make PBlob manually keep track of its manager r=jlebar 2013-07-16 13:07:09 -07:00
Ryan VanderMeulen
dd188cfa23 Merge birch to m-c. 2013-07-16 16:03:20 -04:00
Michael Wu
188d8224eb Bug 870311 - Fix coordinates on contextmenu event, r=kats 2013-07-16 15:54:59 -04:00
Ryan VanderMeulen
5ed72ade5c Merge inbound to m-c. 2013-07-15 17:03:59 -04:00
Justin Lebar
39744d9386 Bug 893172 - Call ShutDownProcess in ContentParent::ActorDestroy. r=bent 2013-07-15 08:55:13 -04:00
David Anderson
0930e61030 Implement CPOW support in MessageManager (bug 870180, r=smaug,billm). 2013-07-10 15:05:39 -07:00
Trevor Saunders
238525e2d8 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
3864c304c1 Bug 886903 - Send correct UserAgent data for content process. r=jdm 2013-04-22 18:41:59 +02:00
Tom Schuster
c3a3b8fa79 Bug 868859 - Make chromeWindow.content work in e10s. r=bz 2013-05-08 23:16:46 +02:00
Ryan VanderMeulen
97083e557a 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
f5ccc808eb Bug 886903 - Send correct UserAgent data for content process. r=jdm 2013-04-22 18:41:59 +02:00
Tom Schuster
46fe724e6d Bug 868859 - Make chromeWindow.content work in e10s. r=bz 2013-05-08 23:16:46 +02:00
Brian O'Keefe
f98dd45a72 Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps 2013-07-04 08:28:43 -04:00
Reuben Morais
bb425fd69b 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
aa89fe2cd5 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
336bc41be0 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
80b0b5d760 Bug 875674 part.1 nsIMEUpdatePreference should store wanted updates per notification r=roc 2013-07-11 16:46:34 +09:00
Wes Kocher
e4601507f5 Backout 129da44ac469 (bug 870180) for breaking message manager 2013-07-10 18:22:34 -07:00
David Anderson
144a6b0e34 Implement CPOW support in MessageManager (bug 870180, r=smaug,billm). 2013-07-10 15:05:39 -07:00
Gregory Szorc
7b97260199 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
1d7eff0f7a Backed out changeset b7d6458d2a3c (bug 887483) for apparently causing Android robocop-2 failures. 2013-07-10 13:51:28 -04:00
David Zbarsky
8161e27f6d Bug 879475 - Make PBrowser manually keep track of its manager r=jlebar 2013-07-10 13:07:51 -04:00
David Zbarsky
22bccfeb0c Bug 879475 - Move some blob constructor params to ipdlh headers r=jlebar 2013-07-10 13:07:51 -04:00