Enable APZ in scrollable popups without remote content
Categories
(Core :: Panning and Zooming, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: botond, Assigned: hiro)
References
(Blocks 4 open bugs)
Details
Attachments
(8 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
1.98 KB,
text/plain
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
In bug 1493208, we enabled APZ in popups with remote content.
We'd also like to enable APZ in popups without remote content, but only if they are scrollable (see discussion in bug 1562101 comment 5).
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
| Assignee | ||
Comment 4•1 year ago
|
||
| Assignee | ||
Comment 5•1 year ago
|
||
| Assignee | ||
Comment 6•1 year ago
|
||
| Assignee | ||
Comment 7•1 year ago
|
||
| Assignee | ||
Comment 8•1 year ago
|
||
The uploaded patches mostly work as expected at least on Linux, but the browser mochitest (D230881) fails on Mac for some reasons. I am going to debug it on Mac. Though on Mac we don't support touch screen at all, so that it's not a big deal I think.
| Assignee | ||
Comment 9•1 year ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #8)
The uploaded patches mostly work as expected at least on Linux, but the browser mochitest (D230881) fails on Mac for some reasons. I am going to debug it on Mac. Though on Mac we don't support touch screen at all, so that it's not a big deal I think.
On Mac we don't create the compositor session for popup windows having no remote content, thus we don't even try to create the APZCTreeManager there.
I am going to skip running the browser test on Mac.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 10•1 year ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #9)
(In reply to Hiroyuki Ikezoe (:hiro) from comment #8)
The uploaded patches mostly work as expected at least on Linux, but the browser mochitest (D230881) fails on Mac for some reasons. I am going to debug it on Mac. Though on Mac we don't support touch screen at all, so that it's not a big deal I think.
On Mac we don't create the compositor session for popup windows having no remote content, thus we don't even try to create the APZCTreeManager there.
Note that to make the test work on Mac we also need to implement SynthesizeNativeTouchPoint for popup windows on Mac.
Attaching file is the patch, FWIW.
| Assignee | ||
Comment 11•1 year ago
|
||
One more note about Mac, on Mac the popup window's WindowType is not Popup, it's Child.
| Assignee | ||
Comment 12•1 year ago
|
||
https://treeherder.mozilla.org/jobs?repo=try&revision=3afd05c95e67d26529a5c0c746582f5265c49b55 is a try run including all patches here on Phab.
| Assignee | ||
Comment 13•1 year ago
|
||
There's a mochitest, test_bug1728171.html [1] excersizing native pen
events in popup context menus, so we need to make sendNativePenInput
works there before enabling APZ in the popup windows.
| Assignee | ||
Comment 14•1 year ago
|
||
Added D231185 in the patch series, it's just for our internal tests, it should impact on real uses.
Comment 15•1 year ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #11)
One more note about Mac, on Mac the popup window's WindowType is not Popup, it's Child.
Hm? That doesn't sound right. Well, there's both a Popup widget and an nsChildView inside (which is a Child). I guess that's what you mean?
| Assignee | ||
Comment 16•1 year ago
|
||
I don't remember exactly what I checked is probably this mPopupContentView.
Comment 17•1 year ago
|
||
Yeah, that is a Child indeed.
| Reporter | ||
Comment 18•1 year ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #12)
https://treeherder.mozilla.org/jobs?repo=try&revision=3afd05c95e67d26529a5c0c746582f5265c49b55 is a try run including all patches here on Phab.
I tested this Try build on a Linux touchscreen laptop, with the screen resolution set sufficiently low to make the application menu scrollable, and I can confirm that the application menu can be scrolled using touch input.
Comment 19•1 year ago
|
||
Comment 20•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1a5ae2af03b7
https://hg.mozilla.org/mozilla-central/rev/00b4021a2824
https://hg.mozilla.org/mozilla-central/rev/7b9f315333ec
https://hg.mozilla.org/mozilla-central/rev/4855f60214d8
https://hg.mozilla.org/mozilla-central/rev/73b0c2063498
https://hg.mozilla.org/mozilla-central/rev/3b859e813e2f
https://hg.mozilla.org/mozilla-central/rev/9446114872ee
Description
•