Commit Graph

1119 Commits

Author SHA1 Message Date
Nicholas Nethercote
1009bf0056 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.
2016-08-24 15:23:45 +10:00
Kan-Ru Chen
60adf9d651 Bug 1269036 - Never call PBrowserChild::Send__delete__ in content process. r=smaug
Automatically destroy TabParent if *aResult is not NS_OK
or *aWindowIsNew is false.

We should never call PBrowserChild::Send__delete__ directly in content
process because the parent side needs to do some cleanup first. In this
case if OpenWindowWithTabParent failed but the TabParent has been
associated with a nsFrameLoader we could crash on trying to destroy a
already destroyed TabParent.

MozReview-Commit-ID: E2KFn6yA1Fm
2016-08-24 18:49:42 +08:00
Kan-Ru Chen
5f33c836c5 Bug 1295103 - Check OriginAttributes::PopulateFromSuffix return value in TabContext and ContentChild. r=smaug
MozReview-Commit-ID: JWtO5rqJGBF
2016-08-15 18:21:53 +08: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
Sebastian Hengst
a120adeb93 Backed out changeset d1d614497fbf (bug 1046166) on request of developer for crashes. r=backout a=backout
MozReview-Commit-ID: IHG3TraKy6n
2016-08-19 12:35:34 +02:00
Wei-Cheng Pan
e832cd2ba9 Bug 1046166 - Send userContent.css URL to content processes. r=dbaron
MozReview-Commit-ID: 4NTxwYeFGSU
2016-07-21 18:57:35 +08:00
JW Wang
757c5c2302 Bug 1290318 - listen to "cacheservice:empty-cache" to clear media cache. r=mayhemer
MozReview-Commit-ID: 7t4FPCxOUYl
2016-08-08 11:04:55 +08:00
Yura Zenevich
abb4eebf15 Bug 527003 - separating XPCOM parts from nsAccessibilityService. Removing a11y service in favour of using nsAccessibilityService directly. Adding support for a11y service shutdown. r=surkov
MozReview-Commit-ID: KKeywNi3fQb
2016-08-08 20:51:39 -04:00
Aaron Klotz
4564b367fa Bug 1273635: Enable alertable waits in content process main thread; r=jimm
MozReview-Commit-ID: 2qGdGj41M0n
2016-08-03 11:54:35 -06:00
David Anderson
d1e4782bd9 Introduce gfxVars for sharing graphics variables across processes. (bug 1288259 part 2, r=jrmuizel,billm) 2016-08-04 11:33:42 -07:00
Alexandre Lissy
b2834a3543 Bug 1284674 - Remove NUWA r=cyu
MozReview-Commit-ID: GyMRNzOBKw6
2016-08-02 14:54:00 +02:00
Cervantes Yu
0d93d9b92e Bug 1281223 - Debug instrumentation for catching accidental destruction of the ContentChild instance. r=billm
MozReview-Commit-ID: 5LozIBYXLeO
2016-07-29 15:13:10 +08:00
Carsten "Tomcat" Book
38b71fbd21 Backed out changeset d45c9f5c4bc8 (bug 1281223) for bustage on a CLOSED TREE 2016-07-28 13:35:02 +02:00
Cervantes Yu
e87b3374e8 Bug 1281223 - Debug instrumentation for capturing accidental destruction of the ContentChild instance. r=billm
MozReview-Commit-ID: 5LozIBYXLeO
2016-07-28 19:17:04 +08:00
Haik Aftandilian
720f4f7470 Bug 1274540 - Record sandboxing status in crash reports; r=gcp
Adds content sandbox metadata to parent and child crash reports:
Includes the value of pref security.sandbox.content.level,
whether or not the system is capable of sandboxing, if the
sandbox was successfully turned on, and (on Linux systems)
the sandbox capabilities flags.

New crash report keys:
"ContentSandboxLevel" in parent and content
"ContentSandboxCapable" in parent
"ContentSandboxEnabled" in content
"ContentSandboxCapabilities" in content on Linux
2016-07-25 13:21:00 +02:00
Carsten "Tomcat" Book
19af329f0e merge mozilla-inbound to mozilla-central a=merge 2016-07-25 15:50:41 +02:00
Chris Pearce
facb452a67 Bug 1288976 - Use gmp-changed rather than gmp-path-added to retry MediaKeys requests. r=gerald
We're already routing the "gmp-changed" observer service notification over from
the chrome process to the content process, and it fires at pretty much the same
time as the "gmp-path-added" notification (and a few more) so we can just switch
to have the MediaKeySystemAccessManager listen on that notification instead, and
we'll be e10s compatible.




MozReview-Commit-ID: EowFDfdWgAJ
2016-07-25 10:18:34 +12:00
Wei-Cheng Pan
a87ccbfa5e Bug 1264566 - Part 2: Refactor all usage of FileDescriptor. r=valentin
Callers should use a UniquePtr to hold the platform handle.

MozReview-Commit-ID: 6BWnyAf4b3a
2016-05-27 16:12:51 +08:00
Mike Conley
617f7ad200 Bug 1261842 - Stop sending the window name to ContentParent when opening a new window. r=smaug
By the time that the parent is being asked to create a new window, the name
really doesn't matter anymore.

MozReview-Commit-ID: 4IKrEEylaLY
2016-06-08 15:31:01 -04:00
Andrea Marchesini
3ac1b3ccda Bug 1279493 - Use blob URLs exclusively rather than having mediastream and mediasource URLs, r=smaug 2016-07-21 14:31:43 +02:00
David Anderson
93867a4051 Open content VRManagers using endpoints. (bug 1287597 part 1, r=billm) 2016-07-21 00:14:59 -07:00
David Anderson
227ba95f86 Use Endpoints for content-process ImageBridges. (bug 1287366 part 2, r=billm) 2016-07-20 00:18:30 -07:00
Carsten "Tomcat" Book
e6bf5134e3 Backed out 25 changesets (bug 1261842, bug 1278985) breaking firefox-ui tests
Backed out changeset bb6c6889b802 (bug 1261842)
Backed out changeset c14ccfac7b4b (bug 1261842)
Backed out changeset d6ffc9db5346 (bug 1261842)
Backed out changeset 2a1acfd17baf (bug 1261842)
Backed out changeset 968e7b3b73fb (bug 1261842)
Backed out changeset 8d708922e47a (bug 1261842)
Backed out changeset 0a08398b5087 (bug 1261842)
Backed out changeset b2e910bb1d72 (bug 1261842)
Backed out changeset f6062f113911 (bug 1261842)
Backed out changeset 07b259eb7121 (bug 1261842)
Backed out changeset 970cbbb3a658 (bug 1261842)
Backed out changeset b6f7395d2bbf (bug 1261842)
Backed out changeset 20eb3987a721 (bug 1261842)
Backed out changeset 6eaa642a93e1 (bug 1261842)
Backed out changeset 855931929739 (bug 1261842)
Backed out changeset 1240345f5624 (bug 1261842)
Backed out changeset ce46ebf231c1 (bug 1261842)
Backed out changeset 8d34b61fbfb3 (bug 1261842)
Backed out changeset 9d8a382c5b1d (bug 1261842)
Backed out changeset e2472a4cc209 (bug 1261842)
Backed out changeset e91913cd64b8 (bug 1261842)
Backed out changeset 4cf843a05a68 (bug 1261842)
Backed out changeset cbdc0deb92bd (bug 1261842)
Backed out changeset a94e6a85c931 (bug 1261842)
Backed out changeset 3b5b92f04ea5 (bug 1278985)
2016-07-19 09:12:58 +02:00
Mike Conley
341f29447f Bug 1261842 - Stop sending the window name to ContentParent when opening a new window. r=smaug
By the time that the parent is being asked to create a new window, the name
really doesn't matter anymore.

MozReview-Commit-ID: 4IKrEEylaLY
2016-06-08 15:31:01 -04:00
Andrea Marchesini
2a77b642a3 Bug 1279186 - Blob URLs in multi-e10s - part 3 - Remove all the blobURLs when the child goes away, r=me 2016-07-18 11:13:31 +02:00
Andrea Marchesini
cc1175569b Bug 1279186 - Blob URLs in multi-e10s - part 1 - BlobURLs broadcasted, r=gabor 2016-07-17 16:50:50 +02:00
David Anderson
cbb942190f Send content compositor bridges using endpoints rather than Opens. (bug 1282348 part 7, r=billm) 2016-07-17 21:24:28 -07:00
Iris Hsiao
102cce1cd6 Backed out changeset effbc83efa08 (bug 1279186) 2016-07-18 12:11:07 +08:00
Andrea Marchesini
cc147c927e Bug 1279186 - Blob URLs in multi-e10s - part 1 - BlobURLs broadcasted, r=gabor 2016-07-17 16:50:50 +02:00
Andrea Marchesini
cdafafdc73 Bug 1186932 - Implement support for form submission of a picked directory - part 6 - GetFilesHelper executed on the parent process, r=smaug 2016-07-14 09:04:21 +02:00
Andrea Marchesini
ef79736364 Bug 1286126 - Move ServiceWorker initialization early in the ContentChild startup, r=gabor 2016-07-13 10:34:24 +02:00
Lee Salzman
dbd438bc8a Bug 1286317 - part 2 - remove Qt widget usage from plugins. r=jrmuizel 2016-07-12 20:28:31 -04:00
Alexandre Lissy
11df7f04db Bug 1285157 - Remove SetTransport(aChannel) for NUWA r=cyu
MozReview-Commit-ID: HR8r9flyJDQ
2016-07-07 10:07:24 +02:00
Andrea Marchesini
1649abea0a Bug 1285947 - Rename BrowserConfiguration to ServiceWorkerConfiguration, r=gabor 2016-07-11 16:04:04 +02:00
Andrea Marchesini
924300c131 Bug 1279503 - part 2 - moving BrowserConfiguration in the ContentChild::InitXPCOM, r=gabor 2016-07-11 00:28:13 +02:00
Fabrice Desré
288fa0129a Bug 1284455 - Remove the System Messages API, Gecko part r=me
MozReview-Commit-ID: 1mhzddSLkuu
2016-04-20 19:04:13 +02:00
Michael Layzell
7581dc0c5b Bug 1278939 - Store nsIFile entries as nsIFile, but continue to produce dom::File objects from relevant APIs, r=enndeakin 2016-07-04 15:45:45 -04:00
Chih-Yi Leu
50630611e7 Bug 1221730 - Move gamepad API to PBackground. r=qdot, r=baku 2016-06-28 00:25:00 +02:00
Dave Huseby
133d94302e Bug 1280497 - fixes bug 1280497 by removing the assert and adding missing code in permission manage. r= baku
fixes bug 1280497 by removing the assert and adding missing code in
permission manager.
2016-06-17 08:18:00 +02:00
Cervantes Yu
0def5fe401 Bug 1275398 - Use shmem for sending image data in IPCDataTransfer. r=nical
MozReview-Commit-ID: 9XETnSBXxEW
2016-06-16 00:57:46 +08:00
Blake Kaplan
37317cd21c Bug 1274516 - Add a helper to iterate over all ContentParents and use it to clear the image cache in both the parent and child processes. r=billm r=seth 2016-06-10 16:00:22 -07:00
Makoto Kato
1543b91e5f Bug 1257731 - Part 1. Send HaveBidiKeyboards information to content process. r=masayuki
MozReview-Commit-ID: 87J4hE79e3n
2016-06-03 18:56:04 +09:00
Bill McCloskey
77e5086879 Bug 1268559 - Wait to finish nested event loops before shutdown (r=bsmedberg) 2016-06-08 22:10:44 -07:00
Jonas Sicking
893d1cf3ac Bug 1263991 parts 2 and 2.5: Enable launching a server in the parent process. r=baku,ehsan 2016-06-07 02:46:03 -07:00
Carsten "Tomcat" Book
db216362ee Backed out changeset 65e49149fbcc (bug 1263991) 2016-06-07 12:10:29 +02:00
Jonas Sicking
d5d5cd9094 Bug 1263991 part 2: Enable launching a server in the parent process. r=baku 2016-06-07 02:46:03 -07:00
Jim Mathies
5b48ca8566 Bug 1268559 - Add a safety shutdown timer in ContentChild. r=billm
MozReview-Commit-ID: FVnOvJzErpI
2016-06-02 07:52:17 -05:00
Kit Cambridge
55818e5451 Bug 1275434 - Notify "push-subscription-modified" observers in the child. r=dragana
MozReview-Commit-ID: H3DGrhEm3fn
2016-05-14 16:54:51 -07:00
Kit Cambridge
7a4fee08c1 Bug 1275434 - Refactor PushNotifier to clarify remoting logic. r=dragana
Previously, all `PushNotifier` methods checked the process type, and
either called `Notify*{Workers, Observers}` or sent an IPDL message.
The message handlers then called back in to `PushNotifier` from the
remote process.

This was clearer when we only sent worker event notifications to the
content process, and fired all observer notifications in the parent.
It became more complicated once we started notifying observers for all
subscriptions in both processes (bug 1266433). This makes it harder to
see omissions; for example, "push-subscription-modified" isn't
currently forwarded to the child, but "push-subscription-change" and
"push-message" are.

This patch moves the remoting code into `PushNotifier::Dispatch`, and
adds a base `PushDispatcher` class. Each notification type subclasses
this class and implements logic for sending messages and firing
observers and worker events. It's more code, but a bit easier to see
which methods are called where.

MozReview-Commit-ID: 7Q0eD7qXOrW
2016-05-19 19:01:34 -07:00
Karl Tomlinson
7468cc8813 bug 1276086 set GLib prgname in child process r=glandium
MozReview-Commit-ID: 4Neb36zGScf
2016-05-27 11:50:26 +12:00