Commit Graph

62 Commits

Author SHA1 Message Date
"Kan-Ru Chen (陳侃如)"
5f49dee2c3 Bug 879475 - Part 001. Add an nsIContentParent api r=jlebar
Based on original patch by David Zbarsky <dzbarsky@gmail.com>
2014-06-11 13:44:03 +08:00
Gabriele Svelto
b6f9ebb914 Bug 1011493 - Assign the correct priority to the keyboard app. r=khuey 2014-05-30 15:29:43 +02:00
Birunthan Mohanathas
0e6f3a6562 Bug 869836 - Part 3: Use Append('c') instead of AppendLiteral("c"). r=ehsan 2014-05-22 06:48:51 +03:00
Gabriele Svelto
bfafadca3e Bug 999327 - Consider the wake-locks held by the main process when computing priorities. r=fabrice 2014-05-01 15:47:26 +02:00
Birunthan Mohanathas
5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Patrick Wang (Chih-Kai Wang)
47db9c30ce Bug 994560: Compute CPU priority based on priority that is going to be set r=gsvelto 2014-04-18 14:28:14 +08:00
Gabriele Svelto
6b12580552 Bug 873284 - When a content process is running at high priority do not send memory-pressure events. r=khuey 2014-02-17 17:45:29 +01:00
Cervantes Yu
53aa9fe207 Bug 959966: prevent the preallocated process from being killed by the lowmem killer by rasing its priority. r=khuey,gsvelto 2014-03-13 15:24:42 +08:00
Mark Hammond
9cb5162643 Bug 935793 (part 2) - rename browser-shown notifications and send them for all frames. r=smaug 2014-02-21 09:19:18 +11:00
Gabriele Svelto
57d27b5e54 Bug 971728 - Use memory-pressure events instead of minimization when sending an app to the background. r=khuey 2014-02-12 16:50:39 +01:00
Gabriele Svelto
bbff24bbde Bug 968297 - Prevent the priority manager from changing the Nuwa process priority. r=khuey 2014-02-06 19:28:21 +01:00
Ben Kelly
bfb523ca41 Bug 957346: Extend grace period for perceivable background processes. r=fabrice 2014-01-15 18:17:59 -05:00
Ehsan Akhgari
1b83407ce9 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Alan Huang
223ff1be02 Backed out changesets 21b77163bf9f and ebcfdf7200db (bug 922919) because the logging code is no longer needed. r=khuey 2013-12-10 11:25:01 +08:00
Ryan VanderMeulen
99bbd6a132 Backed out changesets a7fc463961ce and 65061e971eb8 (bug 935793) for breaking Travis testing (bug 950441). 2013-12-15 12:47:09 -05:00
Mark Hammond
4834261c63 Bug 935793 (part 2) - rename browser-shown notifications and send them for all frames. r=smaug
--HG--
extra : rebase_source : 475b2cafc094117a2edf8ba95605e7f4d5f95410
2013-12-13 14:24:37 +11:00
Ehsan Akhgari
e004ec8ac0 Bug 947736 - Build modules/libpref/ in unified mode; r=bsmedberg 2013-12-10 18:10:01 -05:00
Alan Huang
8caf4f9ee0 Bug 942040 - Remove a process from BackgroundProcessLRUPool in ParticularProcessPriorityManager only if it is indeed a background process. r=khuey 2013-11-22 17:10:30 +08:00
Alan Huang
c146f11eba Bug 922919 - Remove unnecessary FireTestOnlyObserverNotification calls to avoid intermittent test timeouts. r=khuey 2013-11-15 14:50:22 +08:00
Kyle Huey
cf5ef62928 Bug 922919: Followup to disable logging on 64 bit OSes because it doesn't compile reliably. r=me 2013-11-07 14:23:46 +08:00
Alan Huang
f43546ed61 Bug 922919: Add logging to detect "Intermittent test_BackgroundLRU.html | Test timed out". r=khuey 2013-11-07 11:14:27 +08:00
Alan Huang
f36c0848bb Bug 822325: Implement an LRU pool for background app processes. The LRU app will get the smallest oom_adj and get killed last. r=khuey 2013-10-01 11:54:59 +08:00
Nathan Froyd
e8316ed759 Bug 914826 - part 4 - fix source files that were bootlegging XPCOM do_* functions via generated ipdl headers; r=ehsan 2013-09-10 16:56:05 -04:00
Kan-Ru Chen (陳侃如)
064dc3f94e Bug 914541 - Assign higher priority for mozapptype=inputmethod. r=fabrice 2013-09-24 16:10:20 +08:00
Ehsan Akhgari
8c43a4f37f Bug 919505 - Minimize the #includes in dom/ipc; r=jst 2013-09-23 17:30:40 -04:00
Robert O'Callahan
03e7828db2 Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
David Zbarsky
f6f620d05f Bug 894646 - Various dom deCOM cleanups r=Ms2ger 2013-07-23 16:39:17 -07:00
Fabrice Desré
d89eef6cf9 Bug 894940 - ProcessPriorityManagerChild::Init() is never called r=jlebar 2013-07-18 02:00:56 -07:00
David Zbarsky
45aa3d2bde Bug 864206 - Use dom::Touch instead of nsIDOMTouch where possible r=Ms2ger 2013-05-17 13:17:53 -07:00
Justin Lebar
eeb5b507f2 Bug 870181 - Part 2: Lower CPU priority for non-high priority processes when there's an incoming call. r=bent 2013-05-09 16:27:06 -04:00
Justin Lebar
ec4b8c6403 Bug 868741 - Fix a null-pointer crash in ProcessPriorityManager. r=bent
This crash would occur if a ParticularProcessPriorityManager observed a
wake-lock change after being ShutDown().
2013-05-07 16:44:25 -04:00
Justin Lebar
b282c85385 Bug 860799 - Part 1: Give frames expecting a system message priority at least BACKGROUND_PERCEIVABLE, so long as either haven't yet handled the system message or are holding the CPU/high-priority wake lock. r=khuey 2013-04-25 20:53:26 -04:00
Justin Lebar
b9b9b91ceb Bug 844323 - Part 2 (The Main Event): Move ProcesPriorityManager to the main process. r=bent,khuey 2013-04-25 20:53:26 -04:00
Justin Lebar
c73b99561e Bug 844323 - Part 1: Move process preallocation logic out of ContentParent and into a new file, PreallocatedProcessManager. r=bent
Also make the PreallocatedProcessManager respond to pref changes.  This allows us to write a test involving the preallocated process.  Making this change was the main motivation for this patch; I moved the logic out of ContentParent because with the pref-watching code it was becoming unweildy.
2013-04-25 20:53:26 -04:00
David Zbarsky
9e176d3804 [Bug 857884] Use dom::EventTarget more instead of nsIDOMEventTarget Part 7 r=Ms2ger 2013-04-21 21:25:28 -04:00
David Zbarsky
fac86787ae Bug 857884 - Use dom::EventTarget more in content/ and dom/ Part 4 r=Ms2ger 2013-04-19 18:18:32 -04:00
Ryan VanderMeulen
0c3a721fee Backed out changesets a550dadafa30 and 315f6b451d07 (bug 857884) for mochitest failures on a CLOSED TREE. 2013-04-11 13:59:02 -04:00
David Zbarsky
899ae8e46f Bug 857884 - Use dom::EventTarget more in content/ and dom/ Part 4 r=Ms2ger 2013-04-11 12:24:47 -04:00
Blake Kaplan
7de6360cc3 Bug 846067 - Add a missing interface to the QI impl. r=jlebar
--HG--
extra : rebase_source : 3f2d51ba19092cb85a1f481bdfe75a8a5d2dbd9e
2013-02-28 14:36:55 -08:00
Justin Lebar
5386132d2f Bug 844970 - Use a grace period for all process priority downgrades. r=cjones 2013-02-27 14:28:57 -05:00
Justin Lebar
6b640c9515 Bug 842679 - Part 3: Wait for a tab-child to be created before modifying priorities in the ProcessPriorityManager. r=cjones 2013-02-22 23:24:28 -05:00
Justin Lebar
d4e696a9c0 Bug 841563 - Actually set PROCESS_PRIORITY_FOREGROUND_HIGH when we want to. r=cjones 2013-02-15 08:40:01 -05:00
Justin Lebar
4f1627e9e7 Bug 836654 - Part 6: If a process is "critical" and holds the "cpu" or "high-priority" wake lock, give it priority FOREGROUND_HIGH. r=cjones 2013-02-14 15:41:30 -05:00
Justin Lebar
b264db7208 Bug 835563 - When an iframe mozbrowser's embedder calls setVisible(false), immediately send the relevant process into the background (if none of its other frames are in the foreground). r=cjones 2013-02-14 15:41:29 -05:00
Justin Lebar
306bf90c91 Bug 838625 - Add hal::ProcessPriorityToString and use it in ProcessPriorityManager logging. r=cjones
--HG--
extra : rebase_source : 0a9ecf848a9c6c3ba37acafa24c775154ccb417f
2013-02-08 14:32:23 +00:00
Justin Lebar
cb341cafa3 Bug 838625 - Add logcat logging to ProcessPriorityManager. r=cjones
The logging is placed behind an #if 0 guard.

--HG--
extra : rebase_source : 9105e7225a2e64138c4d6fb2ea62209fc7f29ca2
2013-02-08 14:32:23 +00:00
Justin Lebar
185cd851c6 Bug 836735 - Add interface to QI implementation for ProcessPriorityManager. r=bent 2013-01-31 14:44:12 -05:00
Andrea Marchesini
3f200030f7 Bug 828283 - Apps playing sound should not be muted when the screen is put to sleep., r=sicking 2013-01-28 12:47:18 +01:00
Justin Lebar
0f0d04a754 Bug 834059 - Send processses into the foreground when they first launch, so they don't get killed quite so quickly. r=cjones
This patch also sends the preallocated process into the background immediately after it's launched.
2013-01-26 16:14:01 -05:00
Trevor Saunders
138e996dfc no bug - remove a bunch of extra ';'s to make -pedantic happy 2013-01-11 05:14:04 -05:00