Timothy Nikkel
0249c3fba0
Bug 1742241. Don't access the PresShell's visual viewport offset if we haven't set one. r=botond a=pascalc
...
If the visual viewport offset is not set on the presshell then calling GetVisualViewportOffset returns (0, 0). This then causes us to introduce an incorrect offset between the layout scroll offset and the visual viewport offset that didn't exist before.
Logically we want to treat an unset visual viewport offset as the layout scroll offset.
Other possible fixes:
-make PresShell::GetVisualViewportOffset return the layout scroll offset if a visual viewport offset is not set
-make this if conditional on a visual viewport offset already being set
-the combination of the two above
All of these fail some tests on try server. I haven't investigated why. If we want to go with any of those potential fixes in the future then this patch is a step on the way there
Differential Revision: https://phabricator.services.mozilla.com/D137873
2022-02-11 11:56:44 +00:00
..
2021-06-15 04:16:46 +00:00
2021-08-30 21:17:21 +00:00
2021-03-25 10:19:44 +00:00
2020-12-23 22:42:55 +00:00
2021-02-17 02:41:24 +00:00
2021-03-10 05:59:49 +00:00
2021-06-09 23:13:08 +00:00
2020-11-04 11:12:50 +00:00
2020-10-28 19:10:00 +00:00
2020-10-28 19:10:00 +00:00
2021-06-02 13:43:39 +00:00
2020-10-26 18:34:53 +00:00
2020-10-26 18:34:53 +00:00
2021-07-08 17:58:42 +00:00
2020-10-26 18:34:53 +00:00
2020-10-14 00:19:33 +00:00
2021-06-25 10:14:17 +00:00
2021-06-14 01:22:05 +00:00
2021-03-15 15:45:18 +00:00
2021-03-15 15:45:18 +00:00
2021-01-26 02:47:40 +00:00
2021-01-26 02:47:40 +00:00
2021-08-06 18:46:22 +00:00
2021-03-18 04:41:14 +00:00
2020-12-07 12:45:38 +00:00
2020-11-18 00:08:12 +00:00
2021-06-02 13:43:39 +00:00
2020-11-18 00:08:12 +00:00
2020-08-31 03:45:15 +00:00
2021-06-14 01:22:05 +00:00
2021-03-24 17:56:46 +00:00
2021-03-23 10:26:17 +00:00
2021-03-23 10:26:17 +00:00
2021-01-26 02:47:40 +00:00
2021-08-06 18:46:21 +00:00
2021-08-06 18:46:22 +00:00
2021-04-14 09:29:37 +00:00
2020-08-29 00:22:16 +00:00
2021-06-30 07:07:28 +00:00
2021-06-08 16:21:36 +00:00
2021-04-02 12:22:14 +00:00
2021-06-14 01:22:05 +00:00
2021-06-14 01:22:05 +00:00
2022-02-11 11:56:44 +00:00
2021-06-23 13:10:15 +00:00
2021-06-07 23:56:29 +00:00
2021-08-06 18:46:22 +00:00
2021-05-25 16:05:09 +00:00
2021-01-26 02:47:40 +00:00
2021-07-07 03:11:06 +00:00
2021-03-25 10:19:44 +00:00
2021-07-13 08:15:55 +00:00
2021-06-15 04:16:46 +00:00
2021-03-04 00:34:04 +00:00
2020-09-09 23:45:29 +00:00
2021-06-14 01:22:04 +00:00
2021-06-14 01:22:04 +00:00
2021-03-23 10:26:17 +00:00
2021-02-11 00:19:58 +00:00
2021-06-23 13:10:15 +00:00
2021-01-26 02:47:40 +00:00
2021-01-26 02:47:40 +00:00
2021-03-24 17:56:46 +00:00
2021-03-24 17:56:46 +00:00
2021-03-12 09:28:00 +00:00
2020-11-18 00:08:12 +00:00
2021-10-06 06:51:52 +00:00
2021-05-04 18:46:44 +00:00
2021-08-12 23:31:19 +00:00
2021-06-22 19:41:57 +00:00
2021-05-11 17:00:30 +00:00
2021-05-04 18:46:44 +00:00
2020-12-23 03:01:19 +00:00
2021-03-12 09:28:00 +00:00
2021-01-26 02:47:40 +00:00
2021-03-23 10:26:17 +00:00
2021-02-11 00:19:58 +00:00
2021-03-12 09:28:00 +00:00
2021-03-12 09:28:00 +00:00
2020-11-30 17:49:04 +00:00
2020-12-07 10:17:57 +00:00
2021-07-08 13:21:50 +00:00
2021-01-26 02:47:40 +00:00
2021-12-13 21:47:56 +00:00
2021-06-11 23:54:06 +00:00
2021-01-05 21:53:40 +00:00
2021-05-19 01:11:32 +00:00
2021-01-26 02:47:40 +00:00
2021-05-04 18:46:44 +00:00
2021-02-12 15:42:38 +00:00
2021-06-07 11:39:31 +00:00
2021-05-12 06:32:40 +00:00
2020-11-20 01:13:05 +00:00
2020-11-18 00:08:12 +00:00
2021-02-16 04:44:19 +00:00
2020-12-17 14:04:35 +00:00
2020-09-12 13:06:12 +00:00
2020-11-13 22:58:13 +00:00
2020-11-13 22:58:13 +00:00
2021-03-24 17:56:46 +00:00
2021-03-24 17:56:46 +00:00
2021-05-19 01:11:32 +00:00
2021-01-25 00:31:30 +00:00
2021-03-18 01:06:03 +00:00