Commit Graph

6625 Commits

Author SHA1 Message Date
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
Ed Morley
4b841ae8c6 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
Ehsan Akhgari
3717325909 Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted 2013-07-30 10:25:31 -04:00
David Zbarsky
f0098e9a95 Bug 898947 - Remove nsIInlineEventHandlers from nodes r=bz 2013-07-30 01:47:28 -07:00
David Zbarsky
53f3f3f4df Backout a0868fe02c2a because I suspect it caused the debug mochitest failures resulting in the CLOSED TREE 2013-07-29 19:51:39 -07: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
Bobby Holley
9f3d1e24f0 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
David Zbarsky
1a7436ff31 Bug 898947 - Remove nsIInlineEventHandlers from nodes r=bz 2013-07-29 16:04:09 -07:00
John Schoenick
4f47c01ab7 Bug 889614 - Followup, don't erroneously cancel other events. r=josh 2013-07-29 13:50:55 -07:00
Jon Coppeard
fd4d274d46 Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug 2013-07-26 10:00:38 +01:00
Robert O'Callahan
343eac0301 Bug 837242. Part 1: Convert bool parameters to flags. r=mats 2013-07-26 14:31:41 +12:00
Ryan VanderMeulen
d07905c6bc Backed out changeset f570fc641c5f (bug 894586) for xpcshell failures on a CLOSED TREE. 2013-07-26 22:49:13 -04:00
Mook
9a443aeeaf content: sync load service: don't die when channels have unknown size (b=894586 r=jst r=jduell) 2013-07-26 15:25:27 -07:00
Ivan Alagenchev
2f05ea5a46 Bug 846918: adds hsts reporting from nsDocument. r=smaug. 2013-07-26 08:37:03 -07:00
Carsten "Tomcat" Book
ac22f0d0ad Backed out changeset ae8d72538dee (bug 897484) for b2g bustage 2013-07-26 12:34:25 +02:00
Jon Coppeard
fed22eac4c 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
f9fb745d15 Backed out changeset 44c751cee3b1 (bug 837242) for suspicion of causing OSX Bustage CLOSED TREE 2013-07-26 09:25:03 +02:00
Robert O'Callahan
aa23ef7e8f Bug 837242. Part 1: Convert bool parameters to flags. r=mats
--HG--
extra : rebase_source : e59fe41c41f2be6b4f0c78528cf954093f3011bd
2013-07-26 14:31:41 +12:00
Boris Zbarsky
a0857fe689 Bug 894448 part 1. Move IsChromeOrXBL to xpcpublic.h. r=bholley 2013-07-25 19:41:46 -07:00
Ryan VanderMeulen
20fabd9691 Merge m-c to inbound. 2013-07-25 21:59:02 -04:00
Sid Stamm
ec103f9648 bug 898190 - fix test for bug 888172 to use a valid CSP policy for testing. r=grobinson 2013-07-25 17:11:12 -07:00
Garrett Robinson
2d5640ffce Bug 888172 - CSP 1.0 does not process 'unsafe-inline' or 'unsafe-eval' for default-src. r=imelven 2013-07-24 17:48:30 -04:00
John Schoenick
3da5e26ba8 Bug 889614 - Fix test_object display:none checking issues found while testing. r=josh 2013-07-25 14:02:34 -07:00
John Schoenick
c97b82a961 Bug 889614 - Fix regression in plugin reparenting. r=josh 2013-07-25 14:02:33 -07:00
James Kitchener
5b157af303 Bug 885289 - Improve context menu behaviour for srcdoc iframes. r=mconley, r=bz 2013-07-25 09:32:50 -04:00
Ms2ger
8ab83f380e Merge m-c to inbound. 2013-07-24 11:53:22 +02:00
Ms2ger
3c5e135131 Bug 896280 - Pass MutableHandleValue to JS::Call(); r=terrence 2013-07-24 09:40:01 +02:00
Ms2ger
d34efeaec4 Bug 776517 - Move GetExistingAttrNameFromQName from nsIContent to dom::Element; r=smaug 2013-07-24 09:39:46 +02:00
Ms2ger
5ae654e2b6 Bug 885170 - Remove nsINode::GetClassInfo(); r=peterv 2013-07-24 09:31:06 +02:00
Ms2ger
7d7359c752 Bug 888643 - Part b: Move CPP_UNIT_TESTS definitions into moz.build files; r=gps 2013-07-24 09:23:06 +02:00
Olli Pettay
4399ddbfe6 Bug 895222, improve skippability optimization for nodes, r=mccr8
--HG--
extra : rebase_source : ce3ebc2020a26d22f7cf2636d63657a8fe6ebb2d
2013-07-22 20:47:20 +03:00
David Zbarsky
287181f0bc Bug 897211: Remove nsITouchEventReceiver from nodes r=bz 2013-07-23 23:20:16 -07:00
David Zbarsky
404ebd49a1 Bug 897211: Remove nsIDOMDocumentTouch r=bz 2013-07-23 23:20:16 -07:00
David Zbarsky
b9c20a7821 Bug 894646 - Various dom deCOM cleanups r=Ms2ger 2013-07-23 16:39:17 -07:00
Boris Zbarsky
6fe1316182 Bug 895974. Implement ParentNode on document fragments and documents and move previousElementSibling and nextElementSibling to ChildNode. r=smaug 2013-07-22 08:15:43 -04:00
Joshua Cranmer
46c5cc932a Bug 884061 - Part 3d: Use NS_DECL_THREADSAFE_ISUPPORTS in content/, r=smaug
--HG--
extra : rebase_source : ee869e0ec710259b1f3d1a328bff27c5d2960ea1
2013-07-18 21:21:19 -05:00
Jon Coppeard
6c0077c7f6 Bug 888338 - 1 - Add TenuredHeap<T> class r=terrence r=bz 2013-07-23 10:58:26 +01:00
Ryan VanderMeulen
4033000ea2 Backed out changesets 0a196c0e9f96 (bug 895974) and 0d8aa14f5ed3 (bug 895009) for causing intermittent Linux32 mochitest-1 asserts on a CLOSED TREE. 2013-07-22 18:18:17 -04:00
Boris Zbarsky
e0a481867c Bug 895974. Implement ParentNode on document fragments and documents and move previousElementSibling and nextElementSibling to ChildNode. r=smaug 2013-07-22 08:15:43 -04:00
Ed Morley
1becf19348 Backed out changeset 9e7d1f4496ff (bug 888839) for B2G failures in test_copypaste.xhtml 2013-07-22 08:55:34 +01:00
Drew Willcoxon
8a46894e04 Bug 888839 - Don't pretty print text/plain when copying and pasting non-(X)HTML documents. r=smaug 2013-07-19 19:56:18 -07:00
Benjamin Smedberg
dd57b47a65 Bug 889788 - Plugin doorhanger breaks when plugins are dynamically removed from a page. This implements the short-term solution of hiding the plugin doorhanger when no more plugins are on the page (the better long-term solution will keep showing the UI and track all the plugins a page ever uses). This also implements a short-term solution when a user enables a plugin. Also bug 887088 - Short-term UI solution: when a user loads multiple tabs from a site and enables a plugin on one of them, the plugins are not enabled on other tabs but the "continue allowing" button does nothing. This patch makes the "Continue Allowing" button enable existing plugins of that type. r=jaws r=jschoenick
--HG--
extra : rebase_source : a60ae3259579ea63d51921dc3c70836da2d7ab3a
2013-07-19 10:02:48 -04:00
Ehsan Akhgari
5b25678716 Bug 895168 - Part 1: Stop using LL_I2L in the tree; r=jcranmer
--HG--
extra : rebase_source : b66b363de4c4e132ef94181d2b7d8f008caa643a
2013-07-18 16:47:55 -04:00
Ryan VanderMeulen
ba97a4cddb Merge m-c to inbound on a CLOSED TREE. 2013-07-18 14:53:05 -04:00
Justin Lebar
705f1ae9f1 Bug 895123 - Change nsFrameLoader::mChildHost from nsCOMPtr<nsIObserver> to nsRefPtr<ContentParent>, and rename it to mContentParent.
This doesn't change any behavior; the only effect of this change is to make it easier to figure out, from GDB, which ContentParent a nsFrameLoader points to.
2013-07-17 16:34:57 -07:00
Ryan VanderMeulen
eec7a0e659 Backed out changeset 8421bc750585 (bug 888864) for Werror bustage. 2013-07-16 12:03:59 -04:00
Tom Schuster
7f21dbc657 Bug 893858 - More testing for CPOWs and fix some small bugs. r=dvander 2013-07-17 09:27:49 -04:00
Boris Zbarsky
7bc16a6b9c Bug 894874. Fix .selectedStyleSheetSet to consider all the sheets even after it finds an enabled sheet. r=smaug 2013-07-17 23:23:52 -04:00
Boris Zbarsky
3978c4cfd1 Bug 892510. Cache whether we're only-whitespace on textnodes so we don't have to keep figuring that out over and over again. r=smaug 2013-07-17 23:23:52 -04:00