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

26353 Коммитов

Автор SHA1 Сообщение Дата
Dorel Luca 365efa35da Backed out changeset 44d68ed90676 (bug 1635362) for Mochitest failures in browser/browser_Telemetry_timestamp_test.js. CLOSED TREE 2020-05-12 15:50:41 +03:00
Martin Stransky 9273e0a347 Bug 1635362 [Wayland] Split mozcontainer implementation for X11 and Wayland, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D73794
2020-05-12 10:14:21 +00:00
Martin Stransky edbe69232a Bug 1636072 [Wayland] Don't crash when GetWlBuffer() fails, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D74663
2020-05-12 09:20:25 +00:00
Kartikaya Gupta e660dc1ae3 Bug 1636982 - Restore old behaviour of disallowing interleaved rotate and magnify gestures on macOS. r=tnikkel
Depends on D74640

Differential Revision: https://phabricator.services.mozilla.com/D74742
2020-05-12 02:24:01 +00:00
Kartikaya Gupta 7a22496951 Bug 1636473 - Use the APZ machinery to dispatch magnifygesture events. r=dao,tnikkel
Unify two separate codepaths that do conceptually identical things. That is,
instead of having the widget code directly dispatch wheel and pinch gesture
events to Gecko, allow APZ to do it as part of it's handling of pinch inputs
when zooming is disabled.

The main difference is that the WidgetSimpleGestureEvent delta values come out
different, because they are based on the macOS event's magnification value,
rather than the (now deprecated) deltaZ value. This is actually better since it
makes the values consistent across platforms and allows removal of some ifdefs.

Differential Revision: https://phabricator.services.mozilla.com/D74640
2020-05-12 00:46:34 +00:00
Hiroyuki Ikezoe 34c6fd1e8c Bug 1636838 - Undef CurrentTime and define X11CurrentTime instead. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D74585
2020-05-11 19:34:02 +00:00
Bogdan Tara 8c5c4f1dd7 Backed out 7 changesets (bug 1634703) for testDeviceRecordingEventAudioAndVideo failures CLOSED TREE
Backed out changeset b982f5d74610 (bug 1634703)
Backed out changeset 59229853930e (bug 1634703)
Backed out changeset e017380f5539 (bug 1634703)
Backed out changeset 47a3a96b969b (bug 1634703)
Backed out changeset b4af76cfbdaf (bug 1634703)
Backed out changeset 7ef57434b09d (bug 1634703)
Backed out changeset 9df87d346b0f (bug 1634703)
2020-05-11 23:04:54 +03:00
owlishDeveloper 72cf60fade Bug 1635862 - Add object URI support to WebExecutor r=geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D74465
2020-05-11 17:51:05 +00:00
Mike Conley 6f208cdbc2 Bug 1634703 - Add support for getting the window ID used by nsIMediaDevice for a shared window on Linux. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D74241
2020-05-11 19:11:54 +00:00
Mike Conley 3a7b58ea9d Bug 1634703 - Add support for getting the window ID used by nsIMediaDevice for a shared window on Windows. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D73505
2020-05-08 22:32:24 +00:00
Mike Conley 36940b0179 Bug 1634703 - Add support for getting the window ID used by nsIMediaDevice for a shared window on macOS. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D73482
2020-05-08 22:32:21 +00:00
Mike Conley 364a058417 Bug 1634703 - Add a parent-process-only method to nsIDOMWindowUtils to get the native window ID from a window. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D73481
2020-05-08 22:31:19 +00:00
Ian Moody fc7c4cc29e Bug 1636204 - Return size in bytes instead of page count for RSS in ProcInfo. r=Yoric
As noted in the comment /proc/[pid]/stat is returning the number of pages, but
this value is being used elsewhere as a bytes figure, so we need to multiply by
the page size to get that.

Differential Revision: https://phabricator.services.mozilla.com/D74350
2020-05-11 16:09:20 +00:00
Ian Moody f71399b0ca Bug 1636204 - Use correct indexes for parsing /proc/[pid]/stat. r=Yoric
All the indexes were off by two, so the values were for completely different
measurements, and thus nonsense.  Resident Set Size still doesn't seem to be
handled correctly, perhaps because it's being treated as a bytes count rather
than the page count it is somewhere, but with this change the Virtual Memory
figures match what system monitor displays.

Differential Revision: https://phabricator.services.mozilla.com/D74349
2020-05-11 12:04:39 +00:00
Ian Moody e9286fdadb Bug 1636203 - Include pid in ProcInfo on Linux. r=Yoric
The pid wasn't being included in the ProcInfo returned from GetProcInfo unlike
on macOS, so all child processes were ending up with the default pid of 0

Differential Revision: https://phabricator.services.mozilla.com/D74348
2020-05-11 09:58:40 +00:00
Jonathan Watt 3199185dcc Bug 1636636. Remove old printing pref paper size fixup code. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D74714
2020-05-11 18:00:26 +00:00
Kartikaya Gupta 227e130c84 Bug 1632293 - Replace the BothFingersLifted() special case behaviour with a new pinch input type. r=tnikkel,botond
The BothFingersLifted() mechanism was a bit of a hack to handle the case that
with touch inputs, a user might be able to lift just one finger to transition
from a pinch to a pan or other kind of gesture. This isn't possible with
other kinds of pinch gestures, such as on trackpads or with mousewheels.
So instead of tracking that via special-case behaviour of mFocusPoint, or
adding an extra bool to the PinchGestureInput class, it seems cleaner to
separate the concerns by adding a new type of input event that explicitly
covers the "finger lifted" touch scenario. This patch implements this change,
and removes the BothFingersLifted() machinery.

Differential Revision: https://phabricator.services.mozilla.com/D74415
2020-05-11 16:56:57 +00:00
Edgar Chen 3f250fba44 Bug 1618295 - Make imgRequestProxy implement and use PreloaderBase to support the preload as speculative load feature; r=tnikkel,smaug,mayhemer
Depends on D72083

Differential Revision: https://phabricator.services.mozilla.com/D69860
2020-05-11 14:43:05 +00:00
Mihai Alexandru Michis c48271d35e Backed out changeset 54d6f39b880a (bug 1635362) for causing failures in test_bug659071.html and browser_Telemetry_timestamp_test.js
CLOSED TREE
2020-05-11 17:26:29 +03:00
Jonathan Watt 28edea04b6 Bug 1636725 p2. Properly save the settings chosen by the user in the Page Setup dialog on macOS. r=bobowen
Depends on D74547

Differential Revision: https://phabricator.services.mozilla.com/D74548
2020-05-11 14:23:12 +00:00
Jonathan Watt 6c2bfc599b Bug 1636725 p1. Add some printing comments. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D74547
2020-05-11 14:21:02 +00:00
Jonathan Watt d6e518eb36 Bug 1636668. Move the kInitSaveNativeData setting code into C++ code. r=bobowen
This code could have been moved into nsPrintingPromptService::ShowPageSetupDialog
(the C++ function that the JS code calls).  However, since kInitSaveNativeData
for the print dialog is handled in nsPrintDialogX (this constant is only
relevant on macOS), I've moved the kInitSaveNativeData handling in this case
(the print *settings* dialog) one call deeper, into
nsPrintDialogX::ShowPageSetup, for consistency.

Depends on D74522

Differential Revision: https://phabricator.services.mozilla.com/D74523
2020-05-11 14:10:45 +00:00
Martin Stransky d8946e5c38 Bug 1635362 [Wayland] Split mozcontainer implementation for X11 and Wayland, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D73794
2020-05-11 12:25:58 +00:00
Simon Giesecke e6422e2afd Bug 1626570 - Remove obsolete copy enabling machinery. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D72176
2020-05-11 08:23:03 +00:00
Timothy Nikkel 756565b8c7 Bug 1636646. ifdef direct manipulation code so it's not compiled on mingw. r=aklotz
It seems like the build environment needs updating/modifying so it can handle this. But for now we unbreak the build.

Differential Revision: https://phabricator.services.mozilla.com/D74525
2020-05-09 21:38:55 +00:00
Sylvestre Ledru 1929dd1ab3 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D73347
2020-05-09 14:51:53 +00:00
Jonathan Watt ac1ef7b1a2 Bug 1636623. Remove some old DEBUG_rods_X from nsPrintSettingsService.cpp. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D74522
2020-05-09 12:34:55 +00:00
Bogdan Tara b6c165951a Backed out changeset 78ed541858a2 (bug 1633119) for browser_panelUINotifications* failures CLOSED TREE 2020-05-09 17:48:04 +03:00
Xidorn Quan 5ee0a750a9 Bug 1633119 - Use orderFront for force window full screen. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D74527
2020-05-09 12:04:29 +00:00
sotaro 230d8f88ed Bug 1635769 - Call WebRenderLayerManager::ClearCachedResources() during re-creating widget r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D74392
2020-05-09 05:44:37 +00:00
Timothy Nikkel e28d058a27 Bug 1636061. Rollup popups on direct manipulation event. r=NeilDeakin
Direct Manipulation uses a different input model from processing messages that Windows sends.

Windows asks us if we want to start a direct manipulation session by sending us the DM_POINTERHITTEST message, and we call SetContact if we do. After that Windows won't send us messages until the user ends the gesture. Instead Direct Manipulation will update a transform (that's invisible to the user). We pull that transform and turn it into pan and pinch gestures.

So DealWithPopups is not called and popups don't get rolled up. Instead I call it in the function where we send all events that come from dmanip.

Differential Revision: https://phabricator.services.mozilla.com/D74215
2020-05-08 23:20:38 +00:00
Timothy Nikkel 1bca0138f5 Bug 1630912. Handle sending Direct Manipulation input events properly. r=kats
The old code didn't handle content prevent defaulting the input.

The pinch gesture code doesn't seem to fully work properly, it will allow a little pinch zooming before halting it if content is prevent defaulting it. Not sure what is up yet.

Differential Revision: https://phabricator.services.mozilla.com/D73220
2020-05-08 23:20:31 +00:00
Timothy Nikkel 642d331b8c Bug 1630912. Add a small state machine and code to send pinch and pan events from direct manipulation. r=kats
We can't just get pinch events, we need to handle both.

This state machine code is basically copied from Chrome's implementation.

Differential Revision: https://phabricator.services.mozilla.com/D71307
2020-05-08 23:20:23 +00:00
Timothy Nikkel 9439cfc6c5 Bug 1630912. Hook up direct manipulation object to vsync. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D71306
2020-05-08 23:20:05 +00:00
Timothy Nikkel 3cd8209b42 Bug 1630912. Create the necessary direct manipulation objects. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D71305
2020-05-08 23:19:58 +00:00
Timothy Nikkel 1dcfcb4957 Bug 1630912. Add PT_TOUCHPAD to touchinjection_sdk80.h. r=aklotz
We need this in a later patch.

Differential Revision: https://phabricator.services.mozilla.com/D71304
2020-05-08 23:19:38 +00:00
Kartikaya Gupta 688791ad90 Bug 1630912. Add a simple way to observe vsync on the mainthread. r=jrmuizel
I had to mess with the refcounting of Display (and hence destructors) because we create a NewRunnableMethod inside Display that holds a pointer to |this|. There are versions of NewRunnableMethod that don't take a ref but I'm not sure of the lifetime of Display, so easier to just take a ref since several of the subclasses are already refcounted.

Differential Revision: https://phabricator.services.mozilla.com/D71303
2020-05-08 23:19:31 +00:00
Jean-Yves Avenard 2df41aacc8 Bug 1635001 - P2. Don't use MessageLoop threads with APZ. r=kats,geckoview-reviewers,snorp
It is unclear on why MessageLoop was ever used with this code.

Differential Revision: https://phabricator.services.mozilla.com/D73829
2020-05-08 20:46:13 +00:00
Jean-Yves Avenard 912e294406 Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-08 20:20:44 +00:00
Narcis Beleuzu 2a7e80bbbb Backed out 3 changesets (bug 1635001) for causing bustages on RemoteContentController.cpp . CLOSED TREE
Backed out changeset 62d98215d177 (bug 1635001)
Backed out changeset bc73609fc638 (bug 1635001)
Backed out changeset 26daca5f7dab (bug 1635001)
2020-05-08 23:41:40 +03:00
Narcis Beleuzu 58a833221c Backed out 9 changesets (bug 1634253) for bc failures on browser_bug295977_autoscroll_overflow.js . CLOSED TREE
Backed out changeset d41b75c1f7ec (bug 1634253)
Backed out changeset 5f8a1ee17b81 (bug 1634253)
Backed out changeset 43eda078b405 (bug 1634253)
Backed out changeset e98212a74709 (bug 1634253)
Backed out changeset 855e222ceb14 (bug 1634253)
Backed out changeset 9f01acdf4367 (bug 1634253)
Backed out changeset ea62cb1ec472 (bug 1634253)
Backed out changeset fa3e7588e7d6 (bug 1634253)
Backed out changeset 139e7035e736 (bug 1634253)
2020-05-08 23:09:31 +03:00
Jeff Muizelaar 6d8d4c153f Bug 1636482 - Allow WebRender on all versions of Windows. r=aosmond
Previously we were blocking older Windows and only allowing on Windows
10. This switches us to relying on the blocking to prevent WebRender
from riding the trains on Win7/8.

Differential Revision: https://phabricator.services.mozilla.com/D74409
2020-05-08 14:54:24 +00:00
Jean-Yves Avenard 4329c55477 Bug 1635001 - P2. Don't use MessageLoop threads with APZ. r=kats,geckoview-reviewers,snorp
It is unclear on why MessageLoop was ever used with this code.

Differential Revision: https://phabricator.services.mozilla.com/D73829
2020-05-07 08:30:22 +00:00
Jean-Yves Avenard f304da03ac Bug 1634253 - P6. Remove MessageLoop use from gfx. r=kats,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D73825
2020-05-07 08:04:53 +00:00
Masayuki Nakano 8c3ba237c6 Bug 503838 - part 1: Remove following `<br>` element for empty line when it becomes unnecessary with inserting text r=m_kato
`HTMLEditor` does not remove padding `<br>` element for last empty line when
it becomes unnecessary.

This patch removes it when inserting some text into a text node and it's
followed by a padding <br> element.

Differential Revision: https://phabricator.services.mozilla.com/D74203
2020-05-08 01:55:31 +00:00
Nika Layzell 2454ade94e Bug 1633820 - Part 3: Get rid of PBrowserOrId, r=mattwoodrow,necko-reviewers,dragana
The 'Id' variant was only used with b2g for remote `mozbrowser`s, and is no
longer relevant. The new code instead uses `PBrowser` directly in all cases.

Differential Revision: https://phabricator.services.mozilla.com/D72933
2020-05-07 22:49:06 +00:00
Aaron Klotz 429648e903 Bug 1636285: Add a descriptive message to EnsureJNIObject; r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D74328
2020-05-07 22:18:48 +00:00
Razvan Maries 7a5b66f9b6 Backed out 5 changesets (bug 1633820) for build bustages at TabContext.cpp. CLOSED TREE
Backed out changeset 0a20dd1935d7 (bug 1633820)
Backed out changeset 626e834293ed (bug 1633820)
Backed out changeset 14cc454a8cbc (bug 1633820)
Backed out changeset 7bbcb9266b87 (bug 1633820)
Backed out changeset ef99672bd2af (bug 1633820)
2020-05-08 00:59:20 +03:00
Nika Layzell dd35cc6b02 Bug 1633820 - Part 3: Get rid of PBrowserOrId, r=mattwoodrow,necko-reviewers,dragana
The 'Id' variant was only used with b2g for remote `mozbrowser`s, and is no
longer relevant. The new code instead uses `PBrowser` directly in all cases.

Differential Revision: https://phabricator.services.mozilla.com/D72933
2020-05-07 17:45:12 +00:00
alwu 635e073f6f Bug 1635577 - add wakelog log. r=spohl,karlt
Differential Revision: https://phabricator.services.mozilla.com/D73949
2020-05-07 19:51:30 +00:00