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

1175 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 6bbca4f2e2 Bug 1331988 - Don't provide DPI and related values until the TabChild has received the the ShowInfo, to avoid doing sync IPC. r=dvander
In bug 1331509, mRemoteFrame started getting populated earlier, while the DPI
and default scale values remained unpopulated until RecvShow was called. This
opened a small window where calling TabChild::GetDPI (and GetDefaultScale) would
result in a sync IPC message where previously it would just return -1. This
restores the original behaviour and elimintes the perf regression from the
sync IPC.

MozReview-Commit-ID: AikQmZjVHc9

--HG--
extra : rebase_source : f8c5245a4241c8cf7c2786407deb8c6ef71bb089
2017-01-23 12:03:53 -05:00
Masayuki Nakano 3227a842d7 Bug 1332195 part.2 Fix some nits of event handlers in TabChild, TabParent and PuppetWidget r=smaug
This patch fixes:

* some long lines
* some odd indent
* wrapping one line blocks with {}
* removing B2G specific block

in event handlers in TabChild, TabParent and PuppetWidget.

MozReview-Commit-ID: 6xMsNEDA5nv

--HG--
extra : rebase_source : 7f5ff8830842af9338085a31ac4b40d6c1fb91fe
2017-01-19 17:57:20 +09:00
Masayuki Nakano 4db09a4429 Bug 1332195 part.1 Event handlers in TabChild, TabParent and PuppetWidget should use "a" prefix for their arguments r=smaug
MozReview-Commit-ID: 2c7cbOigwfU

--HG--
extra : rebase_source : 61ab34ac7c680d68edf3773905ae4bb264045916
2017-01-19 17:27:15 +09:00
Markus Stange b797477463 Bug 1331402 - Update plugins' clipRects when hiding a tab. r=jimm,mattwoodrow
In non-e10s, all tabs of a window would share one nsRootPresContext. When
switching tabs, the tab switch paint would trigger a call to
nsRootPresContext::ComputePluginGeometryUpdates, which would call
SetEmptyWidgetConfiguration on all registered nsPluginFrames, notably also
those inside the tab that was hidden.

With e10s, every tab has its own nsRootPresContext, and paints in one tab do
not trigger calls to nsRootPresContext::ComputePluginGeometryUpdates on the
root pres contexts of other tabs. So when painting the new tab, the registered
plugin frames in the old tab were not notified that they were now hidden.
This patch now does that in TabChild::MakeHidden.

MozReview-Commit-ID: LlW9dKKFqZE

--HG--
extra : rebase_source : 0e7f24d7ef90d8582d7f60729e712bca78ed8e17
2017-01-17 18:07:05 +01:00
Ryan VanderMeulen 4eacb032f5 Merge autoland to m-c. a=merge 2017-01-18 09:24:55 -05:00
Ben Kelly abfbb82e23 Bug 1331193 P2 Don't leave TabChild in inconsistent state if init fails. r=billm 2017-01-17 16:28:40 -08:00
Ben Kelly 76b154e7c1 Bug 1331193 Make TabChild handle a nullptr mMessageManager. r=smaug 2017-01-17 16:28:39 -08:00
Phil Ringnalda b3c440155b Merge m-c to m-i 2017-01-16 14:50:05 -08:00
Phil Ringnalda 5a78aec0aa Merge m-i to m-c, a=merge 2017-01-16 13:18:17 -08:00
Kartikaya Gupta 9498238c0e Bug 1331380 - Remove unused kDefaultViewportSize. r=botond
MozReview-Commit-ID: 80gkw0BUErW

--HG--
extra : rebase_source : ba759cc9406cfdea2a2483ba84047e9c3291c985
2017-01-16 10:25:35 -05:00
Olli Pettay cb443e8ff8 Bug 1330252, try to avoid flooding child process with repeated key events, r=masayuki
--HG--
extra : rebase_source : 53241a14eae10852024d68837d377b91a2f7fbec
2017-01-16 11:29:37 +02:00
Kartikaya Gupta 619cad37b5 Bug 1330037 - Propagate the CompositorOptions over to TabChild and keep a copy there. r=dvander
MozReview-Commit-ID: IQSm5cHkW4z

--HG--
extra : rebase_source : 4d340257394d1d641a208a83e93f84e1d24f9056
2017-01-12 17:29:41 -05:00
Andrea Marchesini 359ae91eac Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
Kartikaya Gupta 3f784d94ea Bug 1331509 - Always return the correct APZ state, since we should have it. r=dvander
MozReview-Commit-ID: CrLri2Qucj0

--HG--
extra : rebase_source : 505172985098f0ead435db80c5c683d734c89385
2017-01-17 15:52:46 -05:00
Kartikaya Gupta 31869bd5e8 Bug 1331509 - Extract the InitRenderingState function in TabChild and invoke it earlier from TabParent. r=dvander
MozReview-Commit-ID: 5nwvKLRYpx7

--HG--
extra : rebase_source : e014ef381aed8d41ab1ca838b47505ef70e1fa95
2017-01-17 15:52:45 -05:00
Kartikaya Gupta 77bdba2eb7 Bug 1331509 - Rearrange TabChild::RecvShow to make it a bit more obvious how InitRenderingState can be extracted. r=dvander
MozReview-Commit-ID: AnOnBd5Wqs9

--HG--
extra : rebase_source : 9fa73430c72c3fd6030b98a3dec385ef6eb5e1cf
2017-01-17 15:52:45 -05:00
Michael Layzell 3a272149c6 Bug 1329331 - Leave the Large-Allocation process after subsequent navigations, r=smaug
MozReview-Commit-ID: DfivmSEvzBu
2017-01-16 14:03:09 -05:00
Botond Ballo e8cc185f9d Bug 1326290 - Correct sequencing of layer transaction and StartAsyncScrollbarDrag messages. r=kats
In cases where a mouse click that starts a scrollbar drag is also what
layerizes the scroll frame, the StartAsyncScrollbarDrag message needs to
arrive after the layer transaction. This patch ensures it does.

MozReview-Commit-ID: A02qRb6yWxg

--HG--
extra : rebase_source : 3517e8c8a578a0bd257a80bb8cb81303d171bb6c
2017-01-04 13:42:36 -05:00
Olli Pettay 0364dbc792 Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Ho-Pang 41adef3ae2 Bug 1299209 - Part 1: Passing PointerId when a new WidgetMouseEvent is created. h=sshih, r=smaug
--HG--
extra : rebase_source : b123e74425e56c09ab38f5916589abb84c3d5996
2016-12-20 22:53:00 -05:00
Bill McCloskey 563f66dae7 Bug 1318506 - Assign a TabGroup to every PBrowser (r=mystor,ehsan)
Every new PBrowser, whether it's created by the parent or the child, needs
to get a TabGroup assigned to it. That way IPC messages for the PBrowser will
be dispatched to that TabGroup.

For new PBrowsers created by the child, we just create a new TabGroup or reuse
the opener's TabGroup.

For PBrowsers created by the parent, the child needs to intercept the
PBrowserConstructor message and assign a TabGroup immediately. PBrowsers created
by the parent never have an opener so we can always create a new TabGroup.

In both cases, the nsGlobalWindow::TabGroupOuter logic needs to be updated to
read the TabGroup out of the IPC code. Otherwise the DOM and IPC code will get
out of sync about TabGroups.

MozReview-Commit-ID: D5iEdgirfvK
2016-12-23 11:48:13 -08:00
Bill McCloskey 86da1e11a4 Bug 1318506 - Initialize TabChild in constructor message, not allocation (r=dvander)
MozReview-Commit-ID: Iq1M4EeKHXg
2016-12-23 11:48:13 -08:00
Samael Wang 1e9e35e6e1 Bug 1323651 - Rename Partial/GroupedSessionHistory to Partial/GroupedSHistory. r=ehsan
MozReview-Commit-ID: G2GW4ZPIfH3
2016-12-22 16:06:50 +08:00
Masayuki Nakano d48cef4255 Bug 1322736 part.2 Remove "after keydown" and "after keyup" events r=smaug
MozReview-Commit-ID: ICFPyDhgfh7

--HG--
extra : rebase_source : 6d3a9d227ac99710ac2daa036e1e169d31ae9e6a
2016-12-16 16:01:51 +09:00
Aaron Klotz fd166cbe7a Bug 1314707: Replace PDocAccessible::SendCOMProxy with new parameter to PDocAccessibleConstructor and async RecvParentCOMProxy call in child. Sending of a11y events from child to parent is now deferred until DocAccessibleChild::RecvParentCOMProxy is called; r=tbsaunde
MozReview-Commit-ID: DjxSfLJQtTu

--HG--
extra : rebase_source : d0f1ff1d22df003bc87968e1991eb08eeb977d85
2016-12-01 16:28:54 -07:00
Michael Layzell 1b315d2194 Bug 1320391 - Part 1: Clean up PartialSHistories which are keeping old SHEntries alive, r=ehsan
MozReview-Commit-ID: FY36NdOUM66

--HG--
extra : rebase_source : 6dea22921c7b0e27868827e78503e8a7133e9127
2016-12-15 13:28:40 +08:00
Ryan Hunt 5730889559 Bug 1320817 - Move child process PAPZ initialization into TabChild::InitRenderingState. r=kats
--HG--
extra : rebase_source : 89b21123943a039e31e787f41c344574efe7989f
2016-11-28 22:21:27 -06:00
Tomislav Jurin 348bfffc19 Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
Ting-Yu Lin 4174a3a87e Bug 1304598 Part 3 - Rename nsPresShell.h/cpp to PresShell.h/cpp, and move exported header to mozilla/ subdir. r=dholbert
The class PresShell doesn't have ns-prefix, so it's better to drop ns-prefix
in the file names to avoid confusion.

MozReview-Commit-ID: IljxsF5CVjh

--HG--
rename : layout/base/nsPresShell.cpp => layout/base/PresShell.cpp
rename : layout/base/nsPresShell.h => layout/base/PresShell.h
extra : rebase_source : e73a6873f360a7223d87bd22d9854fc9603c499f
2016-11-30 11:14:28 +08:00
Bob Owen f5830d5e44 Bug 1147911 Part 7: Create browsing context with no opener if URI needs different process. r=smaug
This also means window.open returns null in the same circumstance.
2016-11-24 15:08:31 +00:00
Sebastian Hengst 3e560293d1 Backed out changeset f8ff074e9145 (bug 1147911) 2016-11-23 18:32:50 +01:00
Bob Owen 3f62d10e4d Bug 1147911 Part 7: Create browsing context with no opener if URI needs different process. r=smaug
This also means window.open returns null in the same circumstance.
2016-11-23 13:36:58 +00:00
Jessica Jong 3f2c55024c Bug 1309587 - PreventDefault() on suppressed/delayed key events that are sent back to parent. r=smaug
--HG--
extra : rebase_source : 0762ef1284c063c9716a963bf40ff5cc82b48326
2016-11-21 06:55:00 -05:00
Sebastian Hengst f02ffed0dd Backed out changeset f768dac3f7a9 (bug 1147911) 2016-11-18 00:58:51 +01:00
Bob Owen ce1bc7d820 Bug 1147911 Part 7: Create browsing context with no opener if URI needs different process. r=smaug
This also means window.open returns null in the same circumstance.
2016-11-17 15:48:53 +00:00
Ehsan Akhgari d07f79a266 Bug 1318210 - Remove nsIAppsService; r=baku 2016-11-17 10:41:36 -05:00
Ehsan Akhgari 5cc591dc59 Bug 1318209 - Remove mozIApplication; r=baku 2016-11-17 10:12:43 -05:00
Ehsan Akhgari 569f181508 Bug 1311149 - Remove the b2g preallocated app support; r=baku 2016-11-16 09:17:35 -05:00
Ehsan Akhgari eac76d9772 Bug 1310845 - Remove support for mozapp iframes; r=fabrice,jryans,baku,mcmanus
This patch removes support for mozapp iframes, leaving support for
mozbrowser iframes intact.  Some of the code has been rewritten in order
to phrase things in terms of mozbrowser only, as opposed to mozbrowser
or app.  In some places, code that was only useful with apps has been
completely removed, so that the APIs consumed can also be removed.  In
some places where the notion of appId was bleeding out of this API, now
we use NO_APP_ID.  Other notions of appId which were restricted to this
API have been removed.
2016-11-16 09:13:38 -05:00
Kan-Ru Chen f8100451db 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
David Anderson 4664a9b713 Finish initializing TabChild rendering state even if compositing IPC is lost. (bug 1314520 part 2, r=billm) 2016-11-14 14:58:22 -08:00
David Anderson 2c5e03e62e Don't reset devices for each tab when the compositor resets. (bug 1316788, r=rhunt) 2016-11-14 11:47:01 -08:00
Wes Kocher 32812d8ba8 Backed out changeset 419fcafe1794 (bug 1289001) at baku's request a=backout 2016-11-11 13:04:09 -08:00
Andrea Marchesini a8fa7a66fa Bug 1289001 - Fix a race condition in the use of TabChild::mIPCOpen, r=jld 2016-11-11 20:23:28 +01:00
Phil Ringnalda fdc221b30f Backed out changeset 43835f5fa2b2 (bug 1314707) for crashes @ mozilla::a11y::ProxyDestroyed
MozReview-Commit-ID: 9jIOao58gMQ
2016-11-09 19:33:25 -08:00
Aaron Klotz 37a3b973b9 Bug 1314707: Replace PDocAccessible::SendCOMProxy with new parameter to PDocAccessibleConstructor and async RecvParentCOMProxy call in child. Sending of a11y events from child to parent is now deferred until DocAccessibleChild::RecvParentCOMProxy is called; r=tbsaunde
--HG--
extra : amend_source : 59d080ee7370d62211d7c9f8ca5ef17870bfe500
2016-11-09 15:24:58 -07:00
Wes Kocher 0330db10eb Merge m-c to autoland, a=merge 2016-11-08 14:09:10 -08:00
Matt Woodrow 9775890c70 Bug 1315581 - Notify MediaFormatReader when the compositor gets recreated. r=jya,smaug,jw_wang 2016-11-08 15:23:12 +13:00
Kartikaya Gupta 7e39a2bc59 Bug 1315974 - When creating the widget layer manager, don't assume it will always be a ClientLayerManager. r=mattwoodrow
MozReview-Commit-ID: 8r037jdHJ0E

--HG--
extra : rebase_source : 5f0e406ea6eb497b72f40054ba50cf64a6bd7dfb
2016-11-08 10:42:26 -05:00
Ting-Yu Lin 904617e77f Bug 1310509 - Call NotifyAsyncPanZoomStarted/Stopped on document containing current scrolling content. r=kats
We now call NotifyAsyncPanZoomStarted/Stopped precisely on the document
which is being transformed, so we no longer need to notify the child
docshells which was added in Bug 1088559.

Remove the |nsIDocument| argument for ProcessAPZStateChange(), which is not
used anymore.

mActiveAPZTransforms added in bug 1142926 is removed because AccessibleCaret
is the only consumer for AsyncPanZoomStarted/Stopped, and it now defaults to
always show while scrolling, i.e.
"layout.accessiblecaret.always_show_when_scrolling" defaults to true. And I
cannot reproduce the bug even if I turn off the preference.

MozReview-Commit-ID: DiEk2gCIHn2
2016-11-04 22:27:02 +08:00