Cleanup in native menu code, round 2
Categories
(Core :: Widget: Cocoa, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: mstange, Assigned: mstange)
References
Details
(Whiteboard: [proton-context-menus][mac:mr1])
Attachments
(13 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 | |
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 | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D106367
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D106368
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D106369
Assignee | ||
Comment 5•4 years ago
|
||
This does the same but looks more modern.
Depends on D106370
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D106371
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D106372
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D106373
Assignee | ||
Comment 9•4 years ago
|
||
Depends on D106374
Assignee | ||
Comment 10•4 years ago
|
||
This removes some polymorphism and makes it easier to understand what's actually going on.
The explicit if checks added in this patch will go away once nsMenuX and nsMenuItemX are unified.
Depends on D106375
Assignee | ||
Comment 11•4 years ago
|
||
Depends on D106376
Assignee | ||
Comment 12•4 years ago
|
||
Depends on D106377
Assignee | ||
Comment 13•4 years ago
|
||
Depends on D106378
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 14•4 years ago
|
||
Comment 15•4 years ago
|
||
Backed out for causing bustages on nsMenuBarX.mm
backout: https://hg.mozilla.org/integration/autoland/rev/19297968e487e711d38fc1508eba3dc3e8e2a4b2
failure log: https://treeherder.mozilla.org/logviewer?job_id=331682793&repo=autoland&lineNumber=41307
[task 2021-03-02T02:13:14.467Z] 02:13:14 INFO - In file included from Unified_mm_widget_cocoa1.mm:92:
[task 2021-03-02T02:13:14.467Z] 02:13:14 ERROR - /builds/worker/checkouts/gecko/widget/cocoa/nsMenuBarX.mm:483:5: error: Unused value of must-use type 'already_AddRefed<mozilla::dom::Element>'
[task 2021-03-02T02:13:14.467Z] 02:13:14 INFO - HideItem(domDoc, u"aboutSeparator"_ns);
[task 2021-03-02T02:13:14.467Z] 02:13:14 INFO - ^
[task 2021-03-02T02:13:14.467Z] 02:13:14 ERROR - /builds/worker/checkouts/gecko/widget/cocoa/nsMenuBarX.mm:490:5: error: Unused value of must-use type 'already_AddRefed<mozilla::dom::Element>'
[task 2021-03-02T02:13:14.467Z] 02:13:14 INFO - HideItem(domDoc, u"menu_FileQuitSeparator"_ns);
[task 2021-03-02T02:13:14.467Z] 02:13:14 INFO - ^
[task 2021-03-02T02:13:14.467Z] 02:13:14 ERROR - /builds/worker/checkouts/gecko/widget/cocoa/nsMenuBarX.mm:498:5: error: Unused value of must-use type 'already_AddRefed<mozilla::dom::Element>'
[task 2021-03-02T02:13:14.468Z] 02:13:14 INFO - HideItem(domDoc, u"menu_PrefsSeparator"_ns);
[task 2021-03-02T02:13:14.468Z] 02:13:14 INFO - ^
Comment 16•4 years ago
|
||
Comment 17•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/26d9473effa7
https://hg.mozilla.org/mozilla-central/rev/5f04fabbda74
https://hg.mozilla.org/mozilla-central/rev/7483b04409d6
https://hg.mozilla.org/mozilla-central/rev/8469ccbdd11b
https://hg.mozilla.org/mozilla-central/rev/8000f1b854b2
https://hg.mozilla.org/mozilla-central/rev/87e88d7cc395
https://hg.mozilla.org/mozilla-central/rev/8a130665c1e8
https://hg.mozilla.org/mozilla-central/rev/0b3de65fd6db
https://hg.mozilla.org/mozilla-central/rev/8d3288672d58
https://hg.mozilla.org/mozilla-central/rev/b58aa3f4d623
https://hg.mozilla.org/mozilla-central/rev/aead89217550
https://hg.mozilla.org/mozilla-central/rev/6a64177bdcb5
https://hg.mozilla.org/mozilla-central/rev/ec9e249d963e
Assignee | ||
Updated•4 years ago
|
Description
•