Граф коммитов

3686 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 6d057a3060 Bug 1298173 - Push HandleTap from the GPU process back to the parent process before passing it on to the child process. r=dvander
Sending it back via the parent process ensures that it will take the same path
that regular touch events do, and so guarantees that the Tap event won't overtake
the touch events and get dispatched to content first.

MozReview-Commit-ID: 8TiHY2PFPvE
2016-09-21 10:26:33 -04:00
Kartikaya Gupta 15ae08f0b4 Bug 1298173 - Remove redundant parameter. r=dvander
The parameter is always true if the tap type is a eSingleTap and false in
all other cases, so it's redundant. As it was added as an optimization in bug
1020199 removing it should be safe.

MozReview-Commit-ID: IPB8BUagQl6
2016-09-21 10:25:05 -04:00
Andrea Marchesini 9d38619302 Bug 1288997 - memory blob should not be shared across processes - part 3 - SendStream for memory blobs, r=bkelly 2016-09-21 12:27:26 +02:00
Andrea Marchesini db15f776a7 Bug 1288997 - memory blob should not be shared across processes - part 1 -PSendStream should use nsIContentChild, r=jld, f=bkelly 2016-09-21 12:27:26 +02:00
Matt Woodrow 7756c8a512 Bug 1288618 - Part 13: Add VideoDecoderManager protocol. r=dvander 2016-09-21 21:25:33 +12:00
Carsten "Tomcat" Book f918af64da Backed out 16 changesets (bug 1288618) for bustage on a CLOSED TREE
Backed out changeset 06187d250f7a (bug 1288618)
Backed out changeset 2a47f8ea1d89 (bug 1288618)
Backed out changeset e179c8e8265d (bug 1288618)
Backed out changeset 25396a1af922 (bug 1288618)
Backed out changeset e98f835c6ee5 (bug 1288618)
Backed out changeset 24df0e89b273 (bug 1288618)
Backed out changeset f8bbdabdb6da (bug 1288618)
Backed out changeset 8b0adeab93df (bug 1288618)
Backed out changeset 95f23366de82 (bug 1288618)
Backed out changeset 63a9c689e1d5 (bug 1288618)
Backed out changeset 8f67443dccb8 (bug 1288618)
Backed out changeset 4e7fe69d5f45 (bug 1288618)
Backed out changeset 53b113acee42 (bug 1288618)
Backed out changeset 2583ae4e2e3b (bug 1288618)
Backed out changeset 75a61d0e71b7 (bug 1288618)
Backed out changeset da740b4fd484 (bug 1288618)
2016-09-21 08:44:11 +02:00
Matt Woodrow c4fcc19e35 Bug 1288618 - Part 13: Add VideoDecoderManager protocol. r=dvander
--HG--
extra : rebase_source : f330066c3e301299f541939ac170217625dcdca5
2016-09-21 15:36:39 +12:00
Bill McCloskey 26c5049b5a Bug 1303967 - Don't set mIPCOpen until TabChild is initialized (r=mrbkap) 2016-09-20 19:20:42 -07:00
Nathan Froyd 817fe1571d Bug 1304017 - improve MultipartBlobImpl refcounting; r=baku
MultipartBlobImpl always requires copying the incoming BlobImpl array.
This copying, and its associated refcounting, is unnecessary in many
cases, as we're just going to delete the copied-from array anyway.  We
might as well pass in ownership when creating the multipart blob and
avoid all the overhead associated with copying and refcounting.
2016-09-20 21:29:28 -04:00
Nathan Froyd 9709651f99 Bug 1303910 - remove superfluous FallibleTArray in Blob.cpp; r=baku
This array only exists to be initialized fallibly so we can swap it into
the infallible array we actually want to use.  But we can fallibly
initialize the infallible array directly, so let's do that.
2016-09-20 21:29:28 -04:00
Andi-Bogdan Postelnicu f0fc76e6d7 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
David Anderson f2cfe86ef2 Recreate PLayerTransactions for TabChildren when the compositor restarts. (bug 1300936 part 4, r=mattwoodrow, r=billm)
--HG--
extra : rebase_source : ea92ecc5738e830a86f3b323d262f3537afe4534
2016-09-20 01:19:32 -07:00
David Anderson 81234feb8d Recreate content compositor endpoints when the GPU process dies. (bug 1300936 part 3, r=mattwoodrow,billm)
--HG--
extra : rebase_source : 054937d0adf92ab90c0a630034808e5069b6a956
2016-09-20 01:18:50 -07:00
David Anderson 27c5a863e6 Send content compositor bridges atomically rather than individually. (bug 1300936 part 1, r=billm)
--HG--
extra : rebase_source : 3d642f674ecb21c4a1c95ad9312c7afd87c5931a
2016-09-20 01:15:49 -07:00
Tooru Fujisawa e933275fe8 Bug 92737 - Part 3: Open multiple tabs when multiple items are dropped on remote content area. r=enndeakin 2015-11-11 07:35:12 +09:00
Aaron Klotz b9b9c1ca1f Bug 1297549: Part 2 - Propagate changes in tab native window down to content for a11y; r=jimm
MozReview-Commit-ID: 4akhzCtYciq
2016-09-15 13:37:04 -06:00
Chris H-C 7876f2ef1e bug 1218576 - Accumulate child histograms in the parent process r=froydnj
Batch the accumulations to only transmit every so often, so we don't incur
too much in the way of IPC overhead penalties.

What this doesn't do:
* remove or restructure child telemetry code to adapt to the new way
* send the telemetry anywhere
* allow for the child process to clear child histograms
* support anything but histograms (but this is expected and okay)

MozReview-Commit-ID: JnUkcmN3Ya7
2016-09-19 13:30:25 -04:00
Phil Ringnalda 99be2eef50 Backed out changeset d1cfae63f790 (bug 1297549) for talos bustage 2016-09-18 11:18:17 -07:00
Bill McCloskey 50c44c717c Bug 1279086 - Allow painting for tab switch when JS is running (r=dvander,mconley,mrbkap) 2016-09-16 20:35:11 -07:00
Aaron Klotz 6775220daf Bug 1297549: Part 2 - Propagate changes in tab native window down to content for a11y; r=jimm
MozReview-Commit-ID: LA5yLIGufEb
2016-09-15 13:37:04 -06:00
Wes Kocher 8805e85679 Backed out 3 changesets (bug 1297549) for Windows VM Mn-e10s failures a=backout
Backed out changeset c3f82cedfb27 (bug 1297549)
Backed out changeset c643278d88c8 (bug 1297549)
Backed out changeset 3d515669d3e0 (bug 1297549)
2016-09-15 16:45:31 -07:00
Aaron Klotz cd649a45e3 Bug 1297549: Part 2 - Propagate changes in tab native window down to content for a11y; r=jimm
MozReview-Commit-ID: E96pONRnHt0

--HG--
extra : rebase_source : 10d653b125c0916d7c432a42a9011a7dc7985630
2016-09-15 13:37:04 -06:00
Carsten "Tomcat" Book b6c7ec9860 Backed out changeset f981edef8f81 (bug 1288618) 2016-09-15 16:34:00 +02:00
Matt Woodrow 5fd458fdfa Bug 1288618 - Part 13: Add VideoDecoderManager protocol. r=dvander 2016-09-15 23:18:00 +12:00
Nathan Froyd ca183ff3cd Bug 1298149 - explicitly ignore the result of SendUpdateWindow in ContentParent::SendAsyncUpdate; r=baku
This change doesn't modify the behavior of the code, but it does silence
a clang-cl warning.
2016-09-14 19:28:26 -04:00
Haik Aftandilian 9de1898bc2 Bug 1290619 - Content sandbox rules should use actual profile directory, not Profiles/*/ regex's; r=jimm
Passes the profile dir to the content process as a -profile CLI
option so that the correct profile dir can be used in the OS X content
sandbox rules.  Only enabled on OS X for now.

On Nightly, profile directories will now be read/write protected
from the content process (apart from a few profile subdirectories) even
when they don't reside in ~/Library.

xpcshell tests invoke the content process without providing a
profile directory. In that case, we don't need to add filesystem
profile dir. read/write exclusion rules to the sandbox.

This patch adds two new macros to the content sandbox rule set:
|profileDir| holds the path to the profile or the emptry string;
|hasProfileDir| is a boolean (1 or 0) that indicates whether or
not the profile directory rules should be added. If |hasProfileDir|
is 0, profile directory exclusion rules don't need to be added
and |profileDir| is not used.

MozReview-Commit-ID: rrTcQwTNdT

--HG--
extra : rebase_source : 3d5b612c8eb3a1d0da028eba277cd9d6f0c9ac00
2016-08-30 13:32:21 -07:00
Andrea Marchesini 513886ee03 Bug 1301094 - part 2 - RemoteInputStream must be created using a ControlWorkerRunnable, r=smaug 2016-09-12 12:18:22 +02:00
Andrea Marchesini 2a473b5013 Bug 1301094 - part 1 - RemoteBlobImpl::CreateStreamHelper must be a CancelableRunnable, r=smaug 2016-09-12 12:17:08 +02:00
Kan-Ru Chen 8d637c482f Bug 1301339 - Annotate content shutdown hang due to nested event loop in RecvShutdown. r=billm
We currently allow nested event loop to delay ContentChild::RecvShutdown
which in turn might cause content process shutdown hang. This patch
attempts to annotate the crash report that a shutdown hang was after we
have received RecvShutdown but never reach SendFinishShutdown or the
hang happened before or after RecvShutdown.

MozReview-Commit-ID: 8pGqwzLlYpK

--HG--
extra : rebase_source : 78fdec0c29ded1abbd6651c67fe5c97f63555635
2016-09-08 17:23:57 +08:00
Wes Kocher 5cbc382303 Merge inbound to m-c a=merge 2016-09-07 17:54:24 -07:00
Carsten "Tomcat" Book 7c6c7db247 Merge mozilla-central to autoland 2016-09-07 17:26:11 +02:00
Carsten "Tomcat" Book 1c61ba654e merge mozilla-inbound to mozilla-central a=merge 2016-09-07 17:20:12 +02:00
Wes Kocher 92e5271008 Backed out 17 changesets (bug 1277504, bug 1218577, bug 1218576) for ASAN bc2 failures a=backout
Backed out changeset 62009556e4ad (bug 1218576)
Backed out changeset 57f9849f0f8f (bug 1218576)
Backed out changeset 9595c56c9db2 (bug 1277504)
Backed out changeset 9d15ae92f2fa (bug 1218576)
Backed out changeset ea7282078b05 (bug 1218576)
Backed out changeset 848f4ef30978 (bug 1218576)
Backed out changeset 1b6666eb3b81 (bug 1218576)
Backed out changeset ce2a2dabb042 (bug 1218576)
Backed out changeset 3caacb5c213b (bug 1218576)
Backed out changeset c68fc5ad5ecf (bug 1218576)
Backed out changeset 1678482b2fad (bug 1218576)
Backed out changeset df28918fe236 (bug 1218576)
Backed out changeset eb5dbe28ab20 (bug 1218576)
Backed out changeset baf105cbe0c8 (bug 1218576)
Backed out changeset 7fdd6b6ab594 (bug 1218576)
Backed out changeset a0a4829d0ca0 (bug 1218577)
Backed out changeset fc16cda7781b (bug 1218576)
2016-09-07 10:18:17 -07:00
Mike Conley b56cf3f8af Bug 1298219 - Don't fire oop-browser-crashed event if the browser has already flipped remoteness and moved on. r=billm
We currently make the initial browser in a window remote by default. If early
on in the session, that one remote browser goes away (and the content process
was still booting), there's about 5 seconds before the shutdown kill timer
will take that content process out for not quitting fast enough.

There are some cases during startup where the content process is waiting
on information from the parent, so it cannot respond to the request to
quit in time. The parents shutdown kill timer goes off, and the shutdown
kill occurs.

In this bug, what's happening is that the initial browser flips remoteness
from remote to non-remote when it goes to about:sessionrestore. This starts
the shutdown kill timer. The content process runs out of time, and the
shutdown kill timer fires, killing the content process. The TabParent::ActorDestroy
method (which still exists, even though the browser is no longer remote),
interprets this as an abnormal shutdown, and bubbles the oop-browser-crashed
event to the associated <xul:browser>, which causes the page to browser to
about:tabcrashed, when it had already loaded about:sessionrestore.

This patch makes it so that the TabParent::ActorDestroy method first checks
to ensure that the associated remote frameloader is still the one that the
frameloader owner cares about. If not (because, say, the remoteness has
flipped and a new non-remote frameloader has been created), then the
event is not fired, since the user has moved on.

MozReview-Commit-ID: G4jmR6lMMFl

--HG--
extra : rebase_source : 7e752d9854d6c17b2b346cc986c0fbad00292848
2016-08-31 18:23:40 -04:00
Wes Kocher 371d1cf853 Backed out 2 changesets (bug 1298219) for asan bc5 crashes a=backout
Backed out changeset 98b0e9b88212 (bug 1298219)
Backed out changeset 5948ae1f4218 (bug 1298219)
2016-09-06 14:40:32 -07:00
Mike Conley b43b848475 Bug 1298219 - Don't fire oop-browser-crashed event if the browser has already flipped remoteness and moved on. r=billm
We currently make the initial browser in a window remote by default. If early
on in the session, that one remote browser goes away (and the content process
was still booting), there's about 5 seconds before the shutdown kill timer
will take that content process out for not quitting fast enough.

There are some cases during startup where the content process is waiting
on information from the parent, so it cannot respond to the request to
quit in time. The parents shutdown kill timer goes off, and the shutdown
kill occurs.

In this bug, what's happening is that the initial browser flips remoteness
from remote to non-remote when it goes to about:sessionrestore. This starts
the shutdown kill timer. The content process runs out of time, and the
shutdown kill timer fires, killing the content process. The TabParent::ActorDestroy
method (which still exists, even though the browser is no longer remote),
interprets this as an abnormal shutdown, and bubbles the oop-browser-crashed
event to the associated <xul:browser>, which causes the page to browser to
about:tabcrashed, when it had already loaded about:sessionrestore.

This patch makes it so that the TabParent::ActorDestroy method first checks
to ensure that the associated remote frameloader is still the one that the
frameloader owner cares about. If not (because, say, the remoteness has
flipped and a new non-remote frameloader has been created), then the
event is not fired, since the user has moved on.

MozReview-Commit-ID: G4jmR6lMMFl

--HG--
extra : rebase_source : 7e752d9854d6c17b2b346cc986c0fbad00292848
2016-08-31 18:23:40 -04:00
Carsten "Tomcat" Book 656d6db419 Merge mozilla-central to mozilla-inbound 2016-09-07 17:21:27 +02:00
Michael Layzell c47fca1cd7 Bug 1018486 - Part 1: Changes in dom/, r=baku
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Andi-Bogdan Postelnicu 59bbadfe2d Bug 1297075 - initialise with default value showAccelerators| and |showFocusRings|. r=baku
MozReview-Commit-ID: EB6F5RvoR9o

--HG--
extra : rebase_source : c746e4874acfb8e2679c01941dfecc96de9c9b10
2016-08-22 17:06:31 +03:00
Carsten "Tomcat" Book a1c780edbb merge mozilla-inbound to mozilla-central a=merge 2016-09-06 15:28:44 +02:00
Chun-Min Chang 50ceb41bab Bug 1299061 - Expose the browser that the request was originated in; r=smaug
MozReview-Commit-ID: 2iFQiYeoxBh

--HG--
extra : rebase_source : c516a7d8cc70c85c0303e27d07854808fe9192aa
2016-08-31 20:56:17 +08:00
Kan-Ru Chen 78c48f9b6d Bug 1300512 - Remove OptionalContentId and replace it with Maybe<ContentParentId> in IndexedDB. r=janv
MozReview-Commit-ID: 6Cjlej1TwCY

--HG--
extra : rebase_source : 2a9990e842a05a2e75b473f6d038b946bf59fc5e
2016-09-05 18:31:21 +08:00
Phil Ringnalda 8d0d871432 Backed out changeset 85a53a4c3778 (bug 1299061) for merge conflicts 2016-09-05 13:28:36 -07:00
Chun-Min Chang 941035740b Bug 1299061 - Expose the browser that the request was originated in; r=smaug
MozReview-Commit-ID: 2iFQiYeoxBh

--HG--
extra : rebase_source : ae00411a047e7331d4f7b988abe544047cce86f2
2016-08-31 20:56:17 +08:00
Kan-Ru Chen 5ab6035522 Bug 1269036 - Also destroy TabParent properly in case of mozbrowser. r=smaug
MozReview-Commit-ID: Co0HL40b4q7

--HG--
extra : source : d880cbd65bcd0b4345f18f9f3ad86cc3622843ec
extra : intermediate-source : 11228436d644eaa50c2dbfb840e309c61d2bef02
2016-09-02 16:03:19 +08:00
Boris Zbarsky 058c0dac3f Bug 1300005. Make sure that our PositionOptions structs are always owned by someone in geolocation code. r=kanru 2016-09-02 17:55:37 -04:00
Chris H-C 14a62ec6c8 bug 1218576 - Accumulate child histograms in the parent process r=froydnj
Batch the accumulations to only transmit every so often, so we don't incur
too much in the way of IPC overhead penalties.

What this doesn't do:
* remove or restructure child telemetry code to adapt to the new way
* send the telemetry anywhere
* allow for the child process to clear child histograms
* support anything but histograms (but this is expected and okay)

MozReview-Commit-ID: JnUkcmN3Ya7
2016-09-07 08:53:00 -04:00
Wes Kocher ee92002ede Merge inbound to m-c a=merge 2016-09-02 13:17:30 -07:00
Jimmy Wang ff4e05f90e Bug 1297539 - Add IPC message, PasteTransferable, to call PasteTransferable via a controller on the content process to handle the command content event, "pasteTransferable". New method nsContentUtils::IPCTransferableToTransferable since ContentParent::RecvSetClipboard and TabChild::RecvPasteTransferable both require the same setup to make a transferable. r=mrbkap
MozReview-Commit-ID: 3I443eBOPEO

--HG--
extra : rebase_source : 86dbafb500c68e9a1f9976a6016d4e42311a4de8
2016-08-30 21:30:45 -04:00
Kartikaya Gupta 48a5a4c393 Bug 1298908 - On Windows, fire the contextmenu and long-tap events on the long-tap-up user action. r=botond,jimm
This patch prevents the Windows widget code from dispatching the contextmenu
event if APZ is handling touch input. Instead, the APZ code processes the
raw touch input, and will fire a contextmenu event when the user lifts their
finger after a long-press action, in keeping with the Windows platform
convention. Doing it this way also allows us to respect web conventions where
the web content can prevent the contextmenu event from firing by calling
preventDefault on the touchstart event; this was not possible when dispatching
the contextmenu event directly from the widget code.

This also makes long-pressing on browser chrome components work properly, as
it just shifts the point in time that the contextmenu event is fired without
changing any of the code that triggers the XUL popup. However, some changes
were needed to have the widget code ignore the synthetic mouse events that
the Windows platform sends us, because those would otherwise immediately
dismiss the contextmenu popup after it appeared.

MozReview-Commit-ID: 9HFZLC6xUAi

--HG--
extra : rebase_source : aea932d9f95454c585bcdf962d151c946b5c6ec2
2016-08-30 17:32:08 -04:00