Commit Graph

1262 Commits

Author SHA1 Message Date
Nicholas Cameron
a958a793b4 Bug 910158. Don't include BasicLayers.h unnecessarily. r=roc 2013-09-02 10:20:45 +12:00
Kartikaya Gupta
f5f0ff5641 Bug 907754 - Ensure that the zoom on the FrameMetrics is initialized correctly for all frames. r=tn
RecordFrameMetrics gets called on a variety of layers. Previously it would
incorrectly set mZoom for a number of these layers. For scrollable container
layers inside the main document, it would set the mResolution from the
presShell's resolution, thus compounding the painted resolution.
Furthermore, for iframes inside the document, it would assign mZoom the
value from TabChild's mLastMetrics, which is only meant to apply to the
top-level document. Prior to multi-apzc work these values were never used
so it didn't matter but now they are so they should be assigned correctly.
2013-08-30 13:11:01 -04:00
Ben Turner
7773efd07e Bug 908432 - 'Crash when reading multiple slices of a cross-process file-backed blob'. r=khuey. 2013-08-29 10:16:44 -07:00
Ed Morley
fb25f85fa8 Backed out changeset 5a71d3bf48ce (bug 870676) 2013-08-29 10:42:42 +01:00
Ryan VanderMeulen
1d7bdba295 Merge inbound to m-c. 2013-08-29 00:00:10 -04:00
Pin Zhang
8fdbde9324 Bug 870676: Part 2 - Implement IPDL for mozFMRadio. r=khuey CLOSED TREE 2013-08-28 10:25:09 -07:00
Kyle Huey
7164ad4749 Back out my failed attempt to land bug 870676. 2013-08-28 10:23:32 -07:00
Kyle Huey
781a923eab No bug: Make some whitespace changes on a CLOSED TREE. r=me 2013-08-28 10:20:51 -07:00
Kyle Huey
fcd4cf2b3c Bug 870676: Part 2 - Implement IPDL for mozFMRadio. r=khuey 2013-08-28 10:17:37 -07:00
Kyle Huey
0907c06c26 Back out my failed attempt to land bug 870676. 2013-08-28 10:10:39 -07:00
Kyle Huey
c4bb026ae2 Bug 870676: Part 2 - Implement IPDL for mozFMRadio. r=khuey 2013-08-28 09:45:50 -07:00
Brian O'Keefe
0ee041b9fd Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal 2013-08-15 09:02:09 -04:00
Ryan VanderMeulen
183be64998 Merge m-c to inbound. 2013-09-12 22:30:22 -04:00
Tom Schuster
e4f459bd82 backout changeset 966df39694c2 for crashing xpcshell on a CLOSED TREE. 2013-09-12 17:20:09 -04:00
Tom Schuster
195b18c157 Bug 915822 - Make GetTabChildFrom a class method on TabChild. r=smaug 2013-09-12 15:24:11 -04:00
Tom Schuster
7754600226 Bug 910436 - Electrolysis: Pass PBrowser to the PExternalHelperAppParent so that we can get a window for the download box. r=jdm 2013-09-12 15:24:10 -04:00
Nicholas Nethercote
74b9b3cd56 Bug 831193 (part 4) - Don't use NS_MEMORY_REPORTER_IMPLEMENT in SharedMemory.cpp. r=cjones.
--HG--
extra : rebase_source : 0781ae1c947ba8312bdc7b71d969c3a56b7a7ae4
2013-01-15 21:29:48 -08:00
Tom Schuster
6bbb683509 Bug 905441 - Load style sheets from the parent into the child. r=bz 2013-08-27 13:10:39 -04:00
David Anderson
86124d9cd4 Don't deadlock on a child process for a CPOW (bug 905896, r=cjones). 2013-08-26 21:56:57 -07:00
Ryan VanderMeulen
52ef962a16 Merge inbound to m-c. 2013-08-26 20:19:26 -04:00
Kartikaya Gupta
55c123d4d6 Bug 885023 - Convert mFrameMetrics.mZoom to a CSSToScreenScale. r=BenWa,k17e
The mFrameMetrics.mZoom was previously a "resolution-independent" zoom,
which meant it had to always be multiplied by the CalculateIntrinsicScale()
value to be useful. This patch converts it to a "resolution-dependent" zoom,
and includes the intrinsic scale multiplier already. This means it needs
to be updated if either the viewport or composition bounds (which determine
the intrinsic scale) change, but there are only a few places where this
happens and it makes the rest of the code cleaner.
2013-08-26 09:50:30 -04:00
Boris Zbarsky
1955cb60db Bug 908576 part 7. Move the various DOMProxyHandler classes into the binding implementation files. r=smaug 2013-08-23 22:42:42 -04:00
Tom Schuster
0976f7fb14 Bug 908213 - Fix CPOWs test failure and make it more robust. r=dvander 2013-08-23 19:04:20 -04:00
Ryan VanderMeulen
9d72cb6e1e Merge b2g-inbound to m-c. 2013-08-23 10:50:14 -04:00
Nicholas Nethercote
9ec228491f Bug 905017 (part 2, attempt 2) - Move structured clone stuff from jsapi.{h,cpp} and jsclone.{h,cpp} to js/StructuredClone.{h,cpp}. r=billm.
--HG--
rename : js/src/jsclone.cpp => js/src/vm/StructuredClone.cpp
extra : rebase_source : 2699588c63ef58ab84bc8c63adc0487648af3834
2013-08-19 23:43:47 -07:00
Ryan VanderMeulen
8ca0b33e39 Merge m-c to b2g-inbound. 2013-08-22 20:47:37 -04:00
Dave Hylands
b97c5dfc24 Bug 878310 - Improve DeviceStorage volume status reporting. r=qDot
This changeset causes tranistory states when changing from mounted to shared,
and back to mounted to be reported as shared instead of unavailable.

We also don't send the same status twice in a row.
2013-08-22 16:12:25 -07:00
Tom Schuster
23e2f02c19 Bug 658087 - Remove printfs in TabChild. r=smaug 2013-08-22 15:52:07 -04:00
Ms2ger
4af9d89266 Merge m-c to inbound 2013-08-22 10:38:48 +02:00
Ms2ger
dd3ed79f0d Merge PGO-green changeset from inbound to m-c. 2013-08-22 10:31:44 +02:00
Ms2ger
707d12dbb2 Backout changesets 7e6fb33fdf22:c85332df4320 (bug 905017) for windows bustage. 2013-08-22 10:16:30 +02:00
Ms2ger
2fab82586f Bug 883284 - Part c: Move LIBXUL_LIBRARY into moz.build (d-e); r=mshal 2013-08-22 08:56:00 +02:00
Ms2ger
66214743ad Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps 2013-08-22 08:55:59 +02:00
Nicholas Nethercote
6b42324e2b Bug 905017 (part 2) - Move structured clone stuff from jsapi.{h,cpp} and jsclone.{h,cpp} to js/StructuredClone.{h,cpp}. r=billm.
--HG--
rename : js/src/jsclone.cpp => js/src/vm/StructuredClone.cpp
extra : rebase_source : ecce9699ddb45535aa94d5e3add901f5a8620c46
2013-08-19 23:43:47 -07:00
Tom Schuster
c4a7289b9f Bug 902013 - Only enable CPOWs on desktop with browser.tabs.remote. r=dvander 2013-08-21 13:24:53 -04:00
Nicholas Nethercote
b89a8ac1c0 Bug 905017 (part 1) - Minimize inclusions of JS engine headers in .h and .idl files. r=billm.
--HG--
extra : rebase_source : 984c61ab12f46be0509b1ce0d458d9a6e5841c64
2013-08-17 15:50:18 -07:00
Nicholas Cameron
9b7d0b4cf3 Bug 903816. Fixups in non-layers files. r=roc 2013-08-12 11:15:10 +12:00
Tom Schuster
f1efce9fdf Bug 900707 - Ifdef some child permission checks that right now only work with B2G. r=sicking,felipe 2013-08-22 15:52:07 -04:00
Tom Schuster
ca24c2702b Bug 900707 - Add a configure step that only enables child permission checks for B2G. r=glandium 2013-08-22 15:52:07 -04:00
Ben Turner
ab1bf02119 Bug 887029 - 'DeviceStorage: addNamed() crashes when invoked from an inline activity'. r=khuey. 2013-08-04 10:51:18 -07:00
Nathan Froyd
96043952ef Bug 908526 - remove Element.h include from PContent.ipdl; r=bz 2013-08-22 21:21:00 -04:00
David Zbarsky
826b4c099f Bug 903819 - Don't include Layers.h everywhere, part 4 r=nrc 2013-08-20 15:45:30 -04:00
Nicholas Cameron
d45b9fe216 Bug 903893. Backend fallback for OMTC. r=mattwoodrow 2013-08-18 18:46:16 +12:00
Jeff Muizelaar
be2cbcb453 Bug 898525. Separate out Gfx helpers into GfxMessageUtils.h. r=bent
This helps us include less.

--HG--
extra : rebase_source : bb9ca934a9dade9ef21cecfee7ae8e860f9c60c1
2013-07-26 15:28:31 -04:00
Ryan VanderMeulen
8c1d293b1c Merge m-c to inbound. 2013-08-16 21:58:51 -04:00
Mark Hammond
8e6b564620 Bug 890840 - calling KillHard() multiple times may crash parent process. r=jlebar 2013-08-17 10:44:17 +10:00
Mark Hammond
6df0bf43c6 Bug 904323 - use NS_DebugBreak() on Windows instead of sleeping to debug child processes. r=bent 2013-08-17 09:38:17 +10:00
Botond Ballo
cc9d060ff1 Bug 895905 - Eliminate some of the special handling of ROOT_SCROLL_ID. r=kats, r=tn 2013-08-08 15:56:08 -04:00
Botond Ballo
c7e59f7954 Bug 895905 - B2G mechanism for content to inform APZC about scroll events. Handles multi-APZC. r=kats 2013-08-08 15:56:08 -04:00
Carsten "Tomcat" Book
572f78c990 merge b2g-inbound to mozilla-central 2013-08-16 10:32:10 +02:00
Reuben Morais
7f61d541b4 Bug 904863 - Remove unnecessary remote call in Notification::GetPermissionInternal. r=sicking
--HG--
extra : rebase_source : c77b4cf992d71b5f886cf78604588033beae8320
2013-08-15 17:15:07 -03:00
Guillaume Destuynder
eda4902d8b Bug 790923: Adds seccomp-bfp sandboxing support for B2G. r=khuey, r=gerv, r=agal, r=dhylands, r=keeler, r=imelven, a=kang. 2013-08-12 12:58:35 -07:00
Ryan VanderMeulen
c292f445e7 Merge m-c to inbound. 2013-08-14 17:11:30 -04:00
Kartikaya Gupta
dda4ae2f30 Bug 890280 - Ensure that the APZCTreeManager gets input events in screen coordinates. r=smaug 2013-08-14 10:15:27 -04:00
Ryan VanderMeulen
a9619b4c64 Merge m-c to b2g-inbound. 2013-08-13 15:38:58 -04:00
Ms2ger
0f97870355 Backout changeset 9a57f0f347e3 for insufficient review. 2013-08-13 13:30:00 +02:00
Carsten "Tomcat" Book
4c7eb2b6bd merge mozilla-central to b2g-inbound 2013-08-13 13:57:37 +02:00
Nicholas Nethercote
6f8439bc4e Bug 903949 (part 2) - Don't trigger about:memory re-generation when a child process closes. r=jlebar.
--HG--
extra : rebase_source : ee532ba1176906a69cf68774d755856581e44dd9
2013-08-12 18:15:04 -07:00
Nicholas Nethercote
2416f26c54 Bug 903949 (part 1) - ChildMemoryReporter should return mProcess in GetProcess() rather than an empty string. r=jlebar.
--HG--
extra : rebase_source : a0979780a7289429e4c06dce2de06576bb3a3e90
2013-08-12 18:14:41 -07:00
Guillaume Destuynder
0351bab10b Bug 790923: Adds seccomp-bfp sandboxing support for B2G. r=agal, r=dhylands, r=dkeeler, r=imelven, a=kang. 2013-08-12 12:58:35 -07:00
Kan-Ru Chen (陳侃如)
f186023681 Bug 845169 - Update touch region from remote frame. r=roc 2013-08-13 15:56:57 +08:00
Phil Ringnalda
26893fc5ad Back out d393cfeb5dbf:9f82224bb8a3 (bug 903816) for Android reftest failures
CLOSED TREE
2013-08-11 19:21:17 -07:00
Nicholas Cameron
f639add88a Bug 903816. Fixups in non-layers files. r=roc 2013-08-12 11:15:10 +12:00
Tom Schuster
3f0b801331 Bug 905761 - Proxy nsDefaultURIFixup::KeywordToURI to the parent. r=smaug 2013-08-16 13:59:31 -04:00
Brian O'Keefe
3dadb0e396 Bug 896177 - Remove useless config.mk includes; r=gps 2013-07-17 16:06:53 -04:00
Trevor Saunders
a8a12176ad bug 659722 - remove _IMPL_NS_LAYOUT r=bz 2013-03-16 00:31:38 -04:00
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