Commit Graph

69 Commits

Author SHA1 Message Date
Bill McCloskey
04667a361f Bug 1328423 - Switch tab switch assertion to use AutoAssertNoContentJS (r=dvander)
MozReview-Commit-ID: D7bAfJRWLRg
2017-01-17 13:28:47 -08:00
Bill McCloskey
3e17b86e18 Back out bug 1308039 - Add AutoAssertOnBarrier to painting code (a=backout)
This reverts commit 34602e4a46b068e3c2ecdc95fbf9e534d3aad3b6.

MozReview-Commit-ID: 5E232mrC17r
2017-01-11 13:20:11 -08:00
Bill McCloskey
7e929a5016 Back out bug 1308039 - Preempt GC to paint (a=backout)
This reverts commit 7a09100b677a1967c66e9ebd2273ef01e2fc317d.

MozReview-Commit-ID: 5ghL6nbMqeZ
2017-01-11 13:19:36 -08:00
Andrew McCreight
a1285d5eda Bug 1321052 - Convert ProcessHangMonitor to use endpoints. r=billm
MozReview-Commit-ID: Ixj2b3ONLcc
2017-01-05 12:54:52 -08:00
Andrew McCreight
209d4ee048 Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
Nathan Froyd
f2d50c26f4 Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange 2016-12-12 08:45:46 -05:00
Andrew McCreight
2f93d6e48d Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj 2016-12-12 07:58:33 -05:00
Kan-Ru Chen
1b9dd22e2d Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.

MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Andi-Bogdan Postelnicu
efac806caa Bug 1317241 - Use C++11's override and remove virtual where applicable in dom/ r=baku
MozReview-Commit-ID: 8jUAehd1odv
2016-11-15 13:09:07 +02:00
Andi-Bogdan Postelnicu
c47b0b7b15 Bug 1317241 - Replace default bodies of special member functions with = default in dom/. r=baku
MozReview-Commit-ID: 12AHOhrpaNO
2016-11-14 11:40:37 +02:00
Andi-Bogdan Postelnicu
dbc05f2e21 Bug 1317241 - Use auto type specifier where aplicable for variable declarations to improve code readability and maintainability in dom/. r=baku
MozReview-Commit-ID: CST7fV4h20h
2016-11-14 11:35:58 +02:00
Jon Coppeard
bb10b7dd94 Bug 1310147 - Rename AutoAssertOnGC to AutoAssertNoGC r=sfink 2016-10-27 11:03:53 +01:00
Mike Conley
0661bec74c Bug 1312080 - Tell the BackgroundHangMonitor for force paint in the content process to wait after the next paint, even if we weren't interrupting JS. r=billm"
MozReview-Commit-ID: 1Rk2VN1pR3C
2016-10-21 14:56:46 -04:00
Mike Conley
0e51cb8c84 Bug 1310880 - Add a specialized BackgroundHangMonitor for content process force paints. r=jchen,billm
MozReview-Commit-ID: CccuQRDuaW2
2016-10-19 14:33:13 -04:00
Mike Conley
8c7aecadb2 Backed out changeset aeadb583041d (bug 1303077) because the work in the upcoming bug 1310880 supercedes it.
MozReview-Commit-ID: HUiVze5j4WD
2016-10-17 20:59:55 -04:00
Mike Conley
5496bee1a4 Bug 1303077 - Annotate hangs that occur on the content process main thread during paint forcing. r=aklotz,billm
MozReview-Commit-ID: 9UBsoy5sIJE
2016-10-13 16:41:28 -04:00
Bill McCloskey
494d4f1e4a Bug 1308039 - Preempt GC to paint (r=mrbkap) 2016-10-10 18:06:18 -07:00
Bill McCloskey
070ae552cd Bug 1308039 - Add AutoAssertOnBarrier to painting code (r=mrbkap) 2016-10-10 18:06:16 -07:00
Andi-Bogdan Postelnicu
9cd9f47683 Bug 1282408 - Add ignore-initialization-check annotation to mForcePaintEpoch from HangMonitorChild. r=baku
MozReview-Commit-ID: EkreJsiAIZH
2016-09-20 12:13:40 +03:00
Bill McCloskey
1680d779a9 Bug 1279086 - Allow painting for tab switch when JS is running (r=dvander,mconley,mrbkap) 2016-09-16 20:35:11 -07:00
Kan-Ru Chen
a9b19d0584 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Wes Kocher
9836520505 Backed out 2 changesets (bug 1279086) for causing painting issues a=backout
Backed out changeset b1c893387fdd (bug 1279086)
Backed out changeset 277c54118c8a (bug 1279086)
2016-08-22 16:00:34 -07:00
Bill McCloskey
6b326939fd Bug 1279086 - Allow painting for tab switch when JS is running (r=dvander,mconley,mrbkap) 2016-08-19 14:41:26 -07:00
Wes Kocher
bd5bb0eef4 Backed out 2 changesets (bug 1279086) for failures in browser_menu_item_01.js a=backout
Backed out changeset 00bb53b58e96 (bug 1279086)
Backed out changeset cff59fe2b933 (bug 1279086)
2016-08-19 12:31:55 -07:00
Bill McCloskey
003cabfc2c Bug 1279086 - Allow painting for tab switch when JS is running (r=dvander,mconley,mrbkap) 2016-08-19 09:59:40 -07:00
Nicholas Nethercote
1f65390cc9 Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
David Anderson
ad7d54327f Clean up Transport memory management in IPDL. (bug 1283744, r=billm) 2016-07-06 18:51:20 -07:00
Gabriele Svelto
de20e36698 Bug 1284030 - Do not take multiple minidumps during a hang r=jimm 2016-07-05 13:39:37 +02:00
Gabriele Svelto
f8555cd1cf Bug 1262852 - Create a minidump of the plugin process as soon as possible during hang r=jimm 2016-06-24 14:25:08 +02:00
Gabriele Svelto
f8f593accf Backed out changeset c1dd7376263e (bug 1262852) which caused crashdumps from plugin hangs to be without a signature. 2016-06-12 00:25:25 +02:00
Gabriele Svelto
55058521bf Bug 1262852 - Create a minidump upon each plugin hang r=jimm 2016-05-26 00:14:36 +02:00
Kyle Huey
b972c94d0f Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Kyle Huey
b91ceaea75 Bug 1268313: Part 2 - Replace some NewRunnableMethods with NS_NewNonOwningRunnableMethod. r=froydnj 2016-05-05 01:44:59 -07:00
Carsten "Tomcat" Book
d10653e369 Backed out changeset fd833da413ad (bug 1268313) 2016-04-29 14:21:25 +02:00
Carsten "Tomcat" Book
aadd508ffe Backed out changeset 85ce8cb0639a (bug 1268313) 2016-04-29 14:21:16 +02:00
Kyle Huey
e62a0823c9 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
Kyle Huey
b334682d78 Bug 1268313: Part 2 - Replace some NewRunnableMethods with NS_NewNonOwningRunnableMethod. r=froydnj 2016-04-28 14:08:24 -07:00
Kyle Huey
f3e34e67b3 Bug 1266595: Replace Chromium Task with Runnable. r=froydnj 2016-04-27 17:06:05 -07:00
Kyle Huey
a9cf047227 Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Bill McCloskey
15c142f7b6 Bug 1164931 - Clear hangs when they're over (r=mrbkap) 2016-04-07 17:15:26 -07:00
Aaron Klotz
aa93454d29 Bug 1161169: Clean up usage of mContentParent and clearly identify it as specifically for async plugin init; r=billm,jimm
mContentParent is really just to be used while handling a synchronous
ContentParent::RecvLoadPlugin call when async plugin init turned on.

In any other context, using it will be unsafe.

This patch adds comments and assertions to ensure that this value isn't set
otherwise, and converts the one use of mContentParent outside of async plugin
init to use an alternative mechanism for identifying the content process.

MozReview-Commit-ID: Esgt1kj0MCt
2016-03-03 00:24:36 -07:00
Nicholas Nethercote
2e4a3b68d7 Bug 1186812 (part 2) - Replace nsBaseHashtable::EnumerateRead() calls in dom/{ipc,plugins}/. r=jimm. 2015-11-01 20:18:41 -08:00
Jim Mathies
cd16f0c9d7 Bug 1119442 - Update hang ui, remove drop down options and replace with simpler 'just fix it' button interface. r=mconley 2015-11-02 06:37:25 -06:00
Birunthan Mohanathas
ac37dec517 Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Carsten "Tomcat" Book
8a00793f8e Backed out changeset 88b02bfcc8c7 (bug 1119442) for test failures in browser_ProcessHangNotifications.js 2015-10-26 14:40:28 +01:00
Jim Mathies
45d0895d14 Bug 1119442 - Update hang ui, remove drop down options and replace with simpler 'just fix it' button interface. r=mconley 2015-10-23 14:39:22 -05:00
Nathan Froyd
4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Andrew McCreight
3289cbeb94 Bug 1212984 - HangMonitorChild should delete its Transport. r=billm
Also fix some minor comment typos.
2015-10-12 10:27:00 -07:00
Nathan Froyd
66bf0bb004 Bug 1153394 - make HangMonitorChild::sInstance an atomic variable; r=billm 2015-09-11 19:24:53 -04:00
Chris Peterson
899c73c86e Bug 1194955 - Fix -Wunreachable-code warnings in dom/ipc and dom/plugins. r=jimm 2015-05-31 19:39:16 -07:00