Commit Graph

140270 Commits

Author SHA1 Message Date
Justin Lebar
bf4b322de3 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
Chenxia Liu
68fe35ecfa Bug 896992 - Activity looping if GeckoApp has been killed and Settings is launched from notification. r=kats 2013-07-30 11:45:25 -07:00
Ehsan Akhgari
e95830ec39 Bug 895322 - Part 5: Stop #defining MOZ_STATIC_ASSERT in C++ code; r=Waldo
--HG--
extra : rebase_source : 463c9918228e3f46c909cc7cad45c9d2913b0152
2013-07-18 14:39:20 -04:00
Ehsan Akhgari
974619d92d Bug 895322 - Part 4: Only use MOZ_STATIC_ASSERT in mar.h when we're compiling C code; r=Waldo
--HG--
extra : rebase_source : 9180550b66311f339e9ea46546aa75cab3d8c92b
2013-07-18 14:36:39 -04:00
Ehsan Akhgari
aa0b1f106f Bug 895322 - Part 3: Stop generating MOZ_STATIC_ASSERT in Web IDL bindings; r=Waldo
--HG--
extra : rebase_source : 5f48f54084623486fd3da0356711526597b90f5f
2013-07-19 14:39:20 -04:00
Ehsan Akhgari
77a958fb3c Bug 895322 - Part 2: Stop generating MOZ_STATIC_ASSERT in the telemetry code; r=Waldo
--HG--
extra : rebase_source : 5fae47388a94b4429eb4ed217b92ed919b58d2d8
2013-07-18 14:32:52 -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
Bobby Holley
97899ea185 Bug 898939 - Disable crashtest on android. r=me CLOSED TREE 2013-07-30 11:11:44 -07:00
Nathan Froyd
b8637e1e35 Bug 899547 - add needs-focus to editor reftests; r=ehsan 2013-07-29 20:20:09 -04:00
Boris Zbarsky
052e0c5524 Bug 895728 part 4. Fix unions to work with the new boolean/numeric/string setup. r=khuey 2013-07-30 10:39:35 -07:00
Boris Zbarsky
e66bdfb7fb Bug 895728 part 3. Fix overload resolution to work with the new boolean/numeric/string setup. r=khuey 2013-07-30 10:39:34 -07:00
Boris Zbarsky
8bad2f9c1a Bug 895728 part 2. Make booleans, numerics, and strings/enums all be distinguishable from each other. r=khuey 2013-07-30 10:39:34 -07:00
Boris Zbarsky
a3425171f3 Bug 895728 part 1. Introduce "boolean" and "numeric" types, since those will be treated differently for purposes of distinguishability and overload resolution. r=khuey 2013-07-30 10:39:34 -07:00
Brian Nicholson
1b619da690 Bug 878156 - Mark all startup tabs as external. r=mfinkle 2013-07-30 13:26:45 -04:00
Terrence Cole
cdf01ab7ac Bug 889682 - Eagerly check for remembered set membership before buffering; r=billm
--HG--
extra : rebase_source : 83da73e4ee40f2185b63b214b6710b9146109ff1
2013-07-10 10:13:46 -07:00
Ehsan Akhgari
4852fc5e21 Bug 898881 - Enable OpenSearch auto discovery for private windows; r=jdm 2013-07-30 13:12:16 -04:00
Jeff Hammel
705ba8d7a3 backout of
https://hg.mozilla.org/integration/mozilla-inbound/rev/93501fc853ed
Bug 885784; not intended to push, old bug

--HG--
extra : rebase_source : 3ff8955be64870195163d1368ff136619f0e8c93
extra : amend_source : 6e734c23067299d711bb5d477cc3e5bca369aaae
2013-07-30 10:00:04 -07:00
Ed Morley
7b9d7844ff Bug 893714 - Disable test_cpows.xul on OS X for too many intermittent assertions, whilst the fix is finished
--HG--
extra : rebase_source : d3ad44b025610f5b1ec91f662eb9cbf5ba613a7d
2013-07-30 17:28:59 +01:00
Ed Morley
d935b50c79 Bug 851349 - Disable browser_inspector_bug_831693_searchbox_panel_navigation.js for too many intermittent failures
--HG--
extra : rebase_source : dfc972c73c4c7e3a11e2695039b687048b478049
2013-07-30 17:21:57 +01:00
Gregory Szorc
10c9fbd1c5 Bug 899292 - Exception constructing environment when topobjdir isn't available; r=glandium
--HG--
extra : rebase_source : a920d5c87d112338259c0401c4cb29ed228cfa4c
2013-07-30 09:39:54 -07:00
Jeff Hammel
80cc88e2b9 Bug 885784 - disable mozdevice tests;r=jgriffin
--HG--
extra : rebase_source : 3f69b0b5a1e2a7c9382510103fbb5e9e9720ce88
2013-06-21 10:12:07 -07:00
Timothy Nikkel
33438547b6 Bug 837242. Part 3. Keep track of what area is exposed to events so that covered frames don't get events. r=roc 2013-07-30 11:22:46 -05:00
Timothy Nikkel
3cbce855ee Bug 837242. Part 2. Add a function to calculate the area of an nsRegion. r=roc 2013-07-30 11:22:43 -05:00
Timothy Nikkel
ea8b9e98de Bug 892994. On retina screens cocoa rounds widget coordinates to even pixel values, so account for that when placing widgets so we don't get confused. r=mstange 2013-07-30 11:22:41 -05:00
Timothy Nikkel
d39427d39a Bug 899430. Correct incorrect use GetDefaultScale in TextInputHandler to BackingScaleFactor. r=jfkthame
We are converting between cocoa points and dev pixels, cocoa points do not know about our prefs but GetDefaultScale takes into account our prefs, which is wrong.
2013-07-30 11:22:39 -05:00
Nick Alexander
15d0c3f988 Bug 898296 - Search for Android SDK build tools version 18.0.0. r=gps
This patch also tries to verify that the tools are actually found
early in the configure process, rather than failing with difficult to
parse errors at the end of the build.

Since the Android developer tools are defined earlier in the build
process, we can remove a work-around needed for |make install|.
2013-07-30 09:15:50 -07:00
Wes Johnston
0a317b6fef Bug 895709 - Kill guest mode profile when we start in non-guest mode. r=blassey 2013-07-30 09:05:25 -07:00
Christian Holler
61f89fdae6 Bug 899504 - Disable about:memory vsize test under ASan. r=ted
--HG--
extra : rebase_source : be8f7dad036016dac89f4d3b78f7ff1e3c79d0a9
2013-07-30 16:01:46 +02:00
Christian Holler
8546152aee Bug 899492 - Disable plugin crash test when crashreporter not available. r=ted
--HG--
extra : rebase_source : abfb42265477940a373891241f6fa5d68e441e03
2013-07-30 16:01:45 +02:00
Bobby Holley
dc8ec482b2 Bug 897676 - Null out |si| if we end up using that of the proto in WrapNewGlobal. r=mrbkap 2013-07-30 08:53:56 -07:00
Mats Palmgren
dbea38ef61 Bug 897852 - Don't flush if we were destroyed. r=roc 2013-07-30 15:47:19 +00:00
Alexander Surkov
cff1dc5bcc Bug 892091 - ARIA treegrid should be editable by default, r=davidb 2013-07-30 11:43:00 -04:00
Bobby Holley
6a8c3f7e7f Bug 898939 - Crashtest. r=me 2013-07-30 08:43:46 -07:00
Bobby Holley
8848597459 Bug 898939 - Loosen assertion. r=bz
This is just an overzealous assertion, rather than a security issue.
2013-07-30 08:43:46 -07:00
Bobby Holley
44ef67cca0 Bug 898939 - Flip custom scope automation prefs for 449149-1{a,b}.html. r=bz
Bonus fix I noticed while working on this.

This was done before we flipped the default to make reftests always run with
dom.use_xbl_scopes_for_remote_xul=false (see reftest-cmdline.js). So to get
the full test coverage we're looking for here, we need to force the opposite
pref.
2013-07-30 08:43:45 -07:00
Steven Michaud
19dbe2b725 Bug 893973 - crash in -[ChildView keyDown:], log more debugging info to Breakpad's app notes. r=masayuki 2013-07-30 10:42:29 -05:00
Masatoshi Kimura
c0b9631e71 Bug 898817 - test_interfaces.html update. r=bz 2013-07-30 22:26:27 +09:00
Masatoshi Kimura
ab73027c06 Bug 898817 - Stop exposing nsIDOM* interfaces on the global automatically. r=bz 2013-07-30 22:26:27 +09:00
Kartikaya Gupta
f99024f916 Bug 899421 - Rename getArguments so that FennecInstrumentationTestRunner is compatible with Android API level 18. r=gbrown 2013-07-30 11:13:34 -04:00
Jeff Muizelaar
7dfe172ed7 Bug 891650. Use mTransform instead of GetDTTransform() in Mask(). r=bas
GetDTTransform includes the device offset. We need to avoid that in order for things to work properly.

--HG--
extra : rebase_source : 5a8ae0011f16b85421df182263ec3137cecf6a6b
2013-07-30 10:15:27 -04:00
Guillaume Abadie
fc19fe386a bug 894007 - WebGLContext::getParameter(GL_MAX_TEXTURE_SIZE) should be a power of two - r=jgilbert 2013-07-30 11:07:04 -04:00
Nathan Froyd
8d86b320b1 Bug 898491 - use the four argument form of compare_exchange_strong in Atomics.h; r=Waldo
The C++ standard (29.6p20-22 in N3337) specifies limitations on the failure ordering
for atomic compare-and-exchange.  Specifically, you can't pass memory_order_acq_rel or
memory_order_release.  For the (T&, T, std::memory_order) version, which we use, the
standard specifies that the provided argument should be "lowered" to comply with the
above restrictions on the failure ordering (29.6p21).

However, it seems that some versions of GCC's <atomic> header don't follow the spec
for the generic versions of std::atomic<>, though they do follow the spec with the
appropriate specializations (bool, integer, and pointer) of std::atomic<>.  This
results in mysterious failures when using atomic enums, as bug 888548 purports to
do, and ReleaseAcquire ordering.

Happily, we can work around this by using the more explicit version of
compare-and-exchange.  I've chosen to add another member to AtomicOrderConstraints,
even though it'd be the same as LoadOrder.  I feel explicitness is to be preferred
here.
2013-07-26 12:31:19 -04:00
Ehsan Akhgari
9c4af96caa Bug 872127 - Part 3: Remove MSStdInt.h; r=Waldo 2013-07-30 10:25:42 -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
Ehsan Akhgari
4c789cad3e Bug 872127 - Part 1: Remove support for MOZ_CUSTOM_STDINT_H; r=Waldo,ted 2013-07-30 10:24:49 -04:00
Ryan VanderMeulen
e3e2198ade Merge m-c to inbound on a CLOSED TREE. 2013-07-30 09:23:28 -04:00
Ryan VanderMeulen
c359eea4e4 Merge birch to m-c. 2013-07-30 09:01:43 -04:00
Jon Coppeard
a87c4efd10 Backout 80e1116e4599 for Android failures on a CLOSED TREE 2013-07-30 13:52:30 +01:00
Ryan VanderMeulen
51ceaf5fcb Backed out changesets bc5f5ce22ae3 and 3d682482e90c (bug 880643) for Marionette failures. 2013-07-30 08:52:19 -04:00
Jeff Hammel
8ca165a5cb Bug 688667 - refactor automation.py into mozprocess and mozprofile and load via virtualenv. r=jmaher 2013-07-30 08:30:40 -04:00