No edit context menu appears in Search field of Addons Manager -> Extensions
Categories
(Thunderbird :: Add-Ons: General, defect)
Tracking
(thunderbird_esr60 unaffected, thunderbird_esr68 affected, thunderbird68 wontfix, thunderbird69 wontfix, thunderbird70 wontfix, thunderbird71 affected)
People
(Reporter: alice0775, Assigned: mkmelin)
References
(Regression)
Details
(Keywords: nightly-community, regression)
Attachments
(1 file, 3 obsolete files)
2.75 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
Steps To Reproduce:
- Open Add-ons Manager
- Select "Extensions" of left pane
- Right click on search field on top of the right pane
Actual Results:
Nothing happens
Expected Results:
Edit context menu should appear
Regression window:
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=0578849d7c953f13f6b8c6c57c1054b5a445c317&tochange=55a635377bed6cdeb57175d7e25a67b34dfce540
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=a42caa9f04fc41044437ac56eab6f6086c841d9f&tochange=2abcefb31ba7b2a1c573edc5695b772826c6a078
Regressed by: 55a635377bed6cdeb57175d7e25a67b34dfce540 Magnus Melin — Bug 1534913 - Port bug 1521280 [Remove search-textbox binding] to Thunderbird. r=jorgk
Comment 1•5 years ago
•
|
||
Grrrr, yet another one. We've already added the damn scripts for the filter manager, config editor, password manager and downloads manager in bug 1584720.
But that add-ons manager is an M-C piece, right?
Comment 2•5 years ago
|
||
It is but it's probably related to the other context menu problems we are having in about: pages. Alessandro's working on that.
Assignee | ||
Comment 3•5 years ago
|
||
I'm not sure why Firefox doesn't show this problem, since they do not include the needed js files (in extensions.xul). Anyway, I guess we could add the script elements in aboutAddonsExtra.js somewhere? And while at it, remove the "on" - https://searchfox.org/comm-central/rev/dbc116c2b1bcb8d1c50af5d45b750af2a174a9e3/mail/base/content/aboutAddonsExtra.js#61
Comment 4•5 years ago
|
||
It's because they use the HTML Add-ons manager.
Comment 5•5 years ago
|
||
So which resource would you like to dedicate to this, Magnus?
Assignee | ||
Comment 6•5 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #4)
It's because they use the HTML Add-ons manager.
I don't think so? Where is that?
Looking into this a bit, turns out it's not directly fixable outside of adding the needed js includes to extensions.xul. (CSP on the page won't allow us to make use of the scripts properly)
Comment 7•5 years ago
|
||
I wasn't able to fix the about:config issue in bug 1584795 as a patch in m-c was needed.
Assignee | ||
Comment 8•5 years ago
|
||
Maybe not be worth doing anything about for 68, and things could be a lot different before we get to 78.
Assignee | ||
Comment 9•4 years ago
|
||
At least for trunk, turns out this due to bug 1472785.
We should just turn on the context menu.
Comment 10•4 years ago
|
||
Comment on attachment 9126716 [details] [diff] [review] bug1589459_addons_input_context.patch Review of attachment 9126716 [details] [diff] [review]: ----------------------------------------------------------------- ::: mail/base/content/aboutAddonsExtra.js @@ +26,5 @@ > document.insertBefore(contentStylesheet, document.documentElement); > > // Fix the "Search on addons.mozilla.org" placeholder text in the searchbox. > let browser = document.getElementById("html-view-browser"); > + browser.contentWindow.addEventListener("DOMContentLoaded", () => { This doesn't work (for me). Probably DOMContentLoaded has already happened.
Assignee | ||
Comment 11•4 years ago
|
||
Assignee | ||
Comment 12•4 years ago
|
||
Assignee | ||
Comment 13•4 years ago
|
||
Comment 14•4 years ago
|
||
Comment on attachment 9127568 [details] [diff] [review] bug1589459_addons_input_context.patch Well it works but it's seriously ugly IMO. This is what I'd do, use whichever one makes you happy: ``` if (!/(interactive|complete)/.test(browser.contentDocument.readyState)) { await new Promise(resolve => browser.contentWindow.addEventListener("DOMContentLoaded", resolve, { once: true, }) ); } ```
Assignee | ||
Comment 15•4 years ago
|
||
Yes that's nicer.
Comment 16•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/5df68d3ea93c
allow context menu for Thunderbird's about:addons. r=darktrojan
Description
•