[macOS] The PDF draw pen cursor is no longer used if right click context menu is opened
Categories
(Core :: Widget: Cocoa, defect, P3)
Tracking
()
People
(Reporter: csasca, Assigned: mstange)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(7 files, 1 obsolete file)
(deleted),
text/html
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details |
Found in
- Firefox 111.0b8
Affected versions
- Firefox 111.0b8
- Firefox 112.0a1
Tested platforms
- Affected platforms: macOS 12/13
- Unaffected platforms: Windows, Ubuntu
Steps to reproduce
- Launch Firefox
- Access an editable pdf, for example
- Select the Draw pen and draw anything on the pdf
- Right click over the pdf and close the context menu after
Expected result
- The drawing pen is still visible
Actual result
- The default cursor icon is used
Regression range
- Will see for a regression
Additional notes
- The issue can be seen in the following attachment
- Windows and Ubuntu keeps the draw pen cursor after closing the context menu.
Updated•2 years ago
|
Reporter | ||
Comment 1•2 years ago
|
||
Seems that this is not a regression as it happens on Firefox 104.0a1 (2022-07-19), the day the PDF drawing functionality was added.
Comment 2•2 years ago
|
||
I can reproduce either the issue with the html file I attached so it isn't a pdf.js issue.
:spohl, maybe you'd have an idea on what's wrong here.
Comment 3•2 years ago
|
||
This appears to have stopped working with native context menus. Setting widget.macos.native-context-menus
to false
doesn't reproduce the issue.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 4•2 years ago
|
||
:mstange, since you are the author of the regressor, bug 1698997, could you take a look?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 5•2 years ago
|
||
Assignee | ||
Comment 6•2 years ago
|
||
These guards are only needed at the boundary to C++, see https://bugzilla.mozilla.org/show_bug.cgi?id=1693392 .
Updated•2 years ago
|
Assignee | ||
Comment 7•2 years ago
|
||
Happy code deletion day!
nsMacCursor was used so that animated cursors could be treated like non-animated cursors.
But we don't have animated cursors anymore! Nothing calls -[nsMacCursor cursorWithFrames:type:].
Depends on D172479
Assignee | ||
Comment 8•2 years ago
|
||
Depends on D172480
Assignee | ||
Comment 9•2 years ago
|
||
Depends on D172481
Assignee | ||
Comment 10•2 years ago
|
||
Depends on D172482
Assignee | ||
Comment 11•2 years ago
|
||
This renames nsMacCursorManager to MOZDynamicCursor and makes it implement NSCursor.
We also install a cursor rect which covers the entire ChildView and which refers
to the MOZDynamicCursor singleton.
With the help of the cursor rect, the -[NSCursor set] implementation is now called
at the right times.
We can also stop resetting the cursor when it leaves the window.
Depends on D172483
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 12•2 years ago
|
||
Set release status flags based on info from the regressing bug 1698997
Comment 13•2 years ago
|
||
Comment 14•2 years ago
|
||
Backed out 6 changesets (Bug 1820168) for causing multiple failures CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=408884863&repo=autoland&lineNumber=4302
https://treeherder.mozilla.org/logviewer?job_id=408884902&repo=autoland&lineNumber=5687
Backout: https://hg.mozilla.org/integration/autoland/rev/bd439d90e560048f09bc7424127df84caff68a6c
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 15•2 years ago
|
||
There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:mstange, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 16•2 years ago
|
||
(In reply to Release mgmt bot [:suhaib / :marco/ :calixte] from comment #15)
There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
More work is needed to find the reason for the crashes that were the reason for the backout.
This has exceeded my time box for non-speedometer work at the moment, so I'll make this bug available for anyone who wants to finish it.
Updated•2 years ago
|
Description
•