Commit Graph

1641 Commits

Author SHA1 Message Date
Boris Zbarsky
d8f459f516 Bug 1466298 part 2. Stop using do_GetService to get the non-window geolocation in C++ code. r=mccr8 2018-06-04 12:41:04 -04:00
Andrea Marchesini
7ba8b77e07 Bug 1466023 - Separate FontTableURI and BlobURL, r=qdot
This patch splits FontTableURI and BlobURL in 2 classes:
FontTableURIProtocolHandler and BlobURLProtocolHandler
both under mozilla::dom.

It also removes a memory reporter because that report is already covered by the
BlobURL one.

--HG--
rename : dom/file/nsHostObjectProtocolHandler.cpp => dom/file/BlobURLProtocolHandler.cpp
rename : dom/file/nsHostObjectProtocolHandler.h => dom/file/BlobURLProtocolHandler.h
2018-06-02 15:51:42 +02:00
Peter Van der Beken
0dbc31467c Bug 1451973 - Split off process from non-process message managers. r=bz.
Process and non-process managers have different script loader interfaces
(ProcessScriptLoader/GlobalProcessScriptLoader vs FrameScriptLoader). The WebIDL
conversion used the same interface for some process and
non-process managers, but because of the different script loader interfaces they really
should be using separate interfaces.

--HG--
rename : dom/base/ChromeMessageBroadcaster.cpp => dom/base/MessageBroadcaster.cpp
rename : dom/base/ChromeMessageBroadcaster.h => dom/base/MessageBroadcaster.h
rename : dom/base/ChromeMessageBroadcaster.cpp => dom/base/ParentProcessMessageManager.cpp
rename : dom/base/ChromeMessageBroadcaster.h => dom/base/ParentProcessMessageManager.h
rename : dom/base/ChromeMessageSender.cpp => dom/base/ProcessMessageManager.cpp
rename : dom/base/ChromeMessageSender.h => dom/base/ProcessMessageManager.h
extra : rebase_source : c9b0c543f9f367535919a6c6840e5ba038023112
extra : histedit_source : 7749f98e11e25423fcf414cc1f0415104343798a
2018-04-16 15:18:48 +02:00
Boris Zbarsky
c53f7f15b1 Bug 1466213 part 2. Remove nsIDOMGeoPositionError. r=qdot 2018-06-01 22:35:44 -04:00
Emilio Cobos Álvarez
fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Panos Astithas
f041fb6e3c Bug 1461851 - Properly add the source URL in the profiler metadata. r=glandium
MozReview-Commit-ID: 53M4bGolmJk

--HG--
extra : rebase_source : f0da66755c92d2937f5fad1f5784f9a81829c951
2018-05-15 16:44:44 -07:00
Gurzau Raul
bcd412f2a9 Backed out changeset 602bdd9d5a96 (bug 1461851) for linting failures on /checkouts/gecko/build/appini_header.py on a CLOSED TREE 2018-05-30 19:03:50 +03:00
Panos Astithas
9be1c58dd1 Bug 1461851 - Properly add the source URL in the profiler metadata. r=glandium
MozReview-Commit-ID: 53M4bGolmJk

--HG--
extra : rebase_source : 17c2f3922d04b1ee7e168837f4440bb1b0abc218
2018-05-15 16:44:44 -07:00
Alex Gaynor
7905a9416b Bug 1465162 - don't crash in ContentParent::RecvDeallocateLayerTreeId if the content parent ID doesn't exist; r=jld
MozReview-Commit-ID: IyLyhVUsOow

--HG--
extra : rebase_source : 5537174ddbc12cc56a17f0b8eca44501fb35d83c
2018-05-29 13:56:12 -04:00
Alex Gaynor
61a3697aef Bug 1464194 - don't crash in ContentParent::RecvAllocateLayerTreeId if the content parent ID doesn't exist; r=jimm
MozReview-Commit-ID: FQxcTj3phIV

--HG--
extra : rebase_source : 15d0547c8359efdf3786a86f441c0232615c181a
2018-05-24 15:30:32 -04:00
Blake Kaplan
220f89f300 Bug 1431272 - Set the process priority for the preallocated process when it becomes active. r=jimm
This is currently a no-op, but the idea here is to make sure to set the
process to "active" when we're about to use it for something.

MozReview-Commit-ID: 2QUlALhfD4k

--HG--
extra : rebase_source : 13a67e9353bb47593b1394ce7ae7a7b6eef6e381
2018-01-17 17:37:20 -08:00
Doug Thayer
fc77954257 Bug 1176019 - Force a paint when switching to a loaded tab r=mconley
This is fairly straightforward, other than the fact that the
nomenclature gets a bit awkward with the aForce parameter on
the ForcePaint methods. I'm not sure which direction to go with
this - "aForce" seems a fairly intuitive name for what we want,
and I'm kind of inclined to say the existing ForcePaint mechanic
should be renamed to something like PaintWithInterrupt, or
PaintWithPriority.

MozReview-Commit-ID: Bj9DROug1pC

--HG--
extra : rebase_source : a3d91fec940d83325d36bafb13fe892e9c9530e8
2018-05-14 23:45:00 -07:00
Bogdan Tara
3287e1104c Merge inbound to mozilla-central. a=merge 2018-05-18 01:04:08 +03:00
Andrea Marchesini
76570152bf Bug 1459562 - Transmit the permissions of the owning principal together with the blobURL when broadcasted to content processes, r=nika 2018-05-17 13:36:50 +02:00
Narcis Beleuzu
4353ec59e5 Backed out changeset 1ea614928f8b (bug 1459562) for build bustages on ContentParent.cpp. CLOSED TREE
--HG--
extra : amend_source : c0f6d788cc05d298e88ab9d55658e012325771f2
2018-05-17 15:15:04 +03:00
Andrea Marchesini
187183debd Bug 1459562 - Transmit the permissions of the owning principal together with the blobURL when broadcasted to content processes, r=nika 2018-05-17 13:36:50 +02:00
Gabriele Svelto
67a43f4a6a Bug 1451005 - Forward all memory-pressure events to the child processes; r=njn
When memory-pressure events were first used in an e10s environment it was
to implement memory minimization from about:memory. However when low memory
detection was first introduced in Firefox OS an issue arised with this scheme:
every process was using a kernel-based low-latency mechanism to detect low
memory scenarios and send memory-pressure events; but the main process events
were also being forwarded to all child processes causing listeners to be
triggered twice. Because of this -no-forward events were introduced and used.
Currently however low-memory is detected via polling, so there will always be
a significant delay between the beginning of the low-memory scenario and its
detection. Because of this there is no value in having content processes poll
on their own and it's best to have only the main process do it and then
forward the memory-pressure events to all child processes.

MozReview-Commit-ID: AMQOsEgECme

--HG--
extra : rebase_source : 1b408b31dd27940981407f50f2e5f07e354b16d7
2018-05-12 01:21:13 +02:00
Stephen A Pohl
4ecf5cdf16 Bug 1446900: Place bug 1348361 (async content process launching) behind an ifdef and disable it to avoid numerous top crashers. r=jld 2018-05-11 20:00:40 -04:00
Andrea Marchesini
bb4ddb115c Bug 1459206 - Use FileSystemSecurity in ContentParent::RecvGetFilesRequest, r=ehsan 2018-05-10 11:24:25 +02:00
Csoregi Natalia
db7438d0c5 Backed out changeset 05ad0f66aa8f (bug 1459206) for mochitest crashes. CLOSED TREE 2018-05-10 12:03:41 +03:00
Andrea Marchesini
2c140e4d73 Bug 1459206 - Use FileSystemSecurity in ContentParent::RecvGetFilesRequest, r=ehsan 2018-05-10 09:05:51 +02:00
Ciure Andrei
61548f81d6 Merge inbound to mozilla-central. a=merge
--HG--
rename : testing/web-platform/meta/webdriver/tests/navigation/get_title.py.ini => testing/web-platform/meta/webdriver/tests/get_title/user_prompts.py.ini
2018-05-09 01:58:44 +03:00
Alex Gaynor
804ccc2c59 Bug 1459701 - Don't crash if ContentParent::UnregisterRemoteFrame is called with a ContentParentId that doesn't exist; r=jimm
MozReview-Commit-ID: AUnuR6W2S5S

--HG--
extra : rebase_source : 3b96e03acb419169782ee0436adb225900a5a182
extra : source : d95af3da7cc6f39f0404622b2293c55dc13265c8
2018-04-25 11:35:56 -04:00
Stephen A Pohl
860c14b396 Bug 1366808: Properly detect buildID mismatches between parent and child processes and display about:restartrequired to prompt the user to restart Firefox before proceeding. r=jimm,felipe,bz 2018-05-08 10:31:44 -04:00
Andrea Marchesini
3ac438523c Bug 1458505 - grapping 'self' in mozilla::MakeScopeExit instead of '&' when needed, in DOM code, r=erahm 2018-05-03 08:09:58 +02:00
Alex Gaynor
fda419d39c Bug 1457899 - use IPC_FAIL_NO_REASON instead of KillHard in ContentParent::RecvFileCreationRequest; r=baku
MozReview-Commit-ID: LoO4Kxh7aZn

--HG--
extra : rebase_source : 73f35ed36903878b27fcf8e0b44eb310f8a960a0
extra : source : a8dea58b54da6e4a6f124b4ca0c2215048a3b35b
2018-04-27 14:58:59 -04:00
Alex Gaynor
8a6d2c1753 Bug 1457208 - use IPC_FAIL_NO_REASON instead of KillHard in ContentParent::RecvPlaySound; r=mikedeboer
MozReview-Commit-ID: 1qixpl6qshu

--HG--
extra : rebase_source : c5b34a15eebf85806d8f7e70b11058bace0990e0
extra : source : 09fb4b50b043f8260e88309d0b89dd4aaf8862ad
2018-04-26 09:35:18 -04:00
Tarek Ziadé
90bafd1f42 Bug 1452580 - remove RELEASE_OR_BETA defines for PerformanceCounter usage - r=baku,erahm,farre
PerformanceCounters are currently disabled in two ways:

- a preference that's off by default "dom.performance.enable_scheduler_timing"
- calls made only for nightly using #ifndef RELEASE_OR_BETA

In order to simplify the code, let's remove the #ifndef and rely only on the pref.
That will also allows us to use the feature in every version going forward.

The performance will not be impacted since the current code is already using
the (cached) pref value to determine if the counters are used.

MozReview-Commit-ID: 47t2M1O13aH

--HG--
extra : rebase_source : e129e1829f1dc37c019e50e156474c4876d6d6cb
2018-04-24 22:03:06 +02:00
Stephen A Pohl
a770c946af Backout changeset c8842b205236 to turn on the fix for bug 1423261 on all branches. a=backout 2018-04-21 21:09:18 -04:00
Mike Conley
0c2106dafb Bug 1358712 - Force the frameloader to go through layout when content causes a TabParent to be created. r=Nika
This is necessary to avoid web platform test failures for tests that rely on layout calculations occurring
inside a recently opened tab or window. Originally, the layout flush was happening "accidentally" within
the StatusPanel that displays loading status for the browser. That flush is being removed in another patch
in this series.

MozReview-Commit-ID: IUxiBS9CDRY

--HG--
extra : rebase_source : 1174290fc6fa8da68bfe383e79daa417bbb8de39
2018-04-19 14:26:56 -07:00
Alex Gaynor
96d753fce3 Bug 1455328 - handle repeated calls to ContentParent::AllocPPrintingParent more gracefully; r=bobowen
MozReview-Commit-ID: FPl7zr7imPC

--HG--
extra : rebase_source : 6afd6e2151e135fc5a7ed772b0825a6438868e21
2018-04-19 10:28:20 -04:00
Alex Gaynor
795b6ca574 Bug 1455075 - handle a null argument in ContentParent::RecvShowAlert; r=mystor
MozReview-Commit-ID: Be6D1fOe0w3

--HG--
extra : rebase_source : 8a361caf83f1d9b1f5e4c4ff48074fa17cbafdd9
2018-04-18 14:53:43 -04:00
Valentin Gosu
2d5b10a0b5 Bug 1450199 - Cookie is not synced across tabs r=Ehsan
This patch reverts parts of changeset e87e706def11 (bug 1425031).
The problem in bug 1425031 was that when the content process set a cookie
a notification was sent to the parent process. This notification was then
forwarded to all the content processes, including the one it originated from.
The solution was to not forward cookies that originated from a content
process, but this causes the current bug.
The correct fix is to forward the cookie changes to all content processes
except the one they originated from.
The test for bug 1425031 remains, and should keep passing.


MozReview-Commit-ID: 1P6JwHQDy93

--HG--
extra : rebase_source : 85845c93059004836e14d5a46f2df881237fad6e
2018-04-19 13:18:50 +02:00
Stephen A Pohl
fbfb18c610 Bug 1423261: Restrict patch to nightly only for now. r=jimm 2018-04-17 21:38:29 -04:00
Stephen A Pohl
484e9fd139 Bug 1423261: Skip intentionally crashing the browser during KillHard shutdowns. r=jimm 2018-04-17 21:38:22 -04:00
Stephen A Pohl
a9aa675006 Bug 1423261: Backout diagnostics changeset 58ddcf890331. r=backout 2018-04-17 21:38:14 -04:00
shindli
5ccc4a0150 Backed out changeset f45d6ae3fdb1 (bug 1423261) for causing bug 1453252. a=backout 2018-04-12 02:51:14 +03:00
arthur.iakab
280690d83e Merge mozilla-central to inbound 2018-04-11 01:02:05 +03:00
Nika Layzell
952f6a915a Bug 1443954 - Part 3: Add support for RefCounted types to IPDL, r=bz,froydnj,baku
This patch was reviewed in parts, however the intermediate states would not build:

Bug 1443954 - Part 3A: Strip pointers from the argument to WriteParam and WriteIPDLParam before selecting the ParamTraits impl, r=froydnj

Bug 1443954 - Part 3B: Move nsIAlertNotification serialization to the refcounted system, r=bz

Bug 1443954 - Part 3C: Move geolocation serialization to the refcounted system, r=bz

Bug 1443954 - Part 3D: Move nsIInputStream serialization to the refcounted system, r=baku

Bug 1443954 - Part 3E: Move BlobImpl serialization to the refcounted system, r=baku

Bug 1443954 - Part 3F: Correctly implement ParamTraits for actors after the ParamTraits changes, r=froydnj
2018-04-10 17:49:48 -04:00
Ryan VanderMeulen
355897fc22 Backed out changeset cb808626c8df (bug 1424505) because it didn't help with the crashes. r=jimm, a=RyanVM 2018-04-10 16:26:55 -04:00
Bob Owen
e2dd0c27f0 Bug 1451376: Properly enforce single PrintingParent per content process. r=jld 2018-04-10 15:36:26 +01:00
Gurzau Raul
59bd7c58a9 Backed out changeset c905d37ed54a (bug 1451376) for bustage on workspace/build/src/dom/ipc/ContentParent.cpp on a CLOSED TREE 2018-04-10 16:17:51 +03:00
Bob Owen
baef6401be Bug 1451376: Properly enforce single PrintingParent per content process. r=jld 2018-04-10 13:58:06 +01:00
Andreea Pavel
26f640b36b Backed out 4 changesets (bug 1366808) for Windows GPU leakchecks on a CLOSED TREE
Backed out changeset 23f60e5acaa2 (bug 1366808)
Backed out changeset bf2262b6aca8 (bug 1366808)
Backed out changeset 1fc82af3a155 (bug 1366808)
Backed out changeset 0649f0d9884b (bug 1366808)
2018-04-10 05:11:36 +03:00
Stephen A Pohl
b40a23754c Bug 1366808: Properly detect buildID mismatches between parent and child processes and display about:restartrequired to prompt the user to restart Firefox before proceeding. r=jimm,felipe,bz 2018-04-09 20:16:31 -04:00
Stephen A Pohl
ffcb1034c3 Bug 1423261: Close the IPC channel during KillHard shutdowns to prevent shutdown crashes in the parent process. r=jimm 2018-04-09 15:54:52 -04:00
Tarek Ziadé
0cc1d7259a Bug 1447768 - part 1 - Add PerformanceUtils helpers - r=baku
This new module simplifies how we interact with PerformanceInfo counters:

- CollectPerformanceInfo: returns all PerformanceInfo instances
- NotifyPerformanceInfo: converts PerformanceInfo in XPCOM and notify them

MozReview-Commit-ID: JedKEtsbQTF

--HG--
extra : rebase_source : c87ad34f116a789f909c480963fb99cae3fafa6d
2018-04-04 10:12:02 +02:00
Peter Van der Beken
5e6f3328ec Bug 1448850 - Remove nsIMessageListener and nsIMessageListenerManager. r=bz.
--HG--
extra : rebase_source : 2938f6e1cb9078a6d45a8d58db0f6bf70e461b9c
2018-02-16 15:28:31 +01:00
Peter Van der Beken
001dd2aa3b Bug 1448850 - Empty nsIMessageSender. r=bz.
--HG--
extra : rebase_source : 267648b64b9fcfc4217cf59aad524a27fecd5b82
2018-02-16 10:34:21 +01:00
Peter Van der Beken
01a1cdcd31 Bug 1448850 - Remove nsIMessageBroadcaster. r=bz.
--HG--
extra : rebase_source : c9ef8d762347b3c71dd5cfeffafbfbb81eb6e042
2018-02-14 17:35:39 +01:00