Closed Bug 1584795 Opened 5 years ago Closed 5 years ago

about:config (config editor) search box missing context menu in TB 68 and trunk

Categories

(Toolkit :: Preferences, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
thunderbird_esr68 --- fixed
firefox-esr60 --- unaffected
firefox-esr68 --- wontfix
firefox67 --- wontfix
firefox68 --- wontfix
firefox69 --- wontfix
firefox70 --- wontfix
firefox71 --- fixed

People

(Reporter: jorgk-bmo, Assigned: jorgk-bmo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Another one for you, Magnus?

Flags: needinfo?(mkmelin+mozilla)
Summary: about:config (config editor) missing context menu in TB 68 and trunk → about:config (config editor) search box missing context menu in TB 68 and trunk

I tried to take a look at this.
The config.xul file comes from m-c, so we can't edit it directly to add the JS scripts we need to enable the context menu.
The context menu works on Firefox because this file is opened in a Tab and not a Dialog like we're doing. At least, I think this might be the reason.

I tried to load the missing scripts with Services.scriptloader.loadSubScript() on dialog opening, which made the context menu appear, but it's unfortunately broken as none of the menu items work.

Probably it's an easy solution and I'm just not that smart.

Firefox uses the HTML version of about:config in browser/components/aboutconfig/content. A change in the old files doesn't affect FX.

I tried to load the missing scripts with Services.scriptloader.loadSubScript() on dialog opening,
which made the context menu appear, but it's unfortunately broken as none of the menu items work.

Thanks for taking a look. That's a start. Please get into the habit of posting WIP patches, to others might get inspired, or at least to document what works and what doesn't.

Attached patch 1584795-config-editor-WIP (obsolete) — Splinter Review

This is the WIP patch.
As you can see I tried to load the script from the subdialogs.js file, in order to prevent further issues of missing context menus in other submenu.

I really doubt this is the correct approach to fix this.

You should just make a patch to fix it in m-c. I.e. add the scripts to toolkit/components/viewconfig/content/config.xul

Flags: needinfo?(mkmelin+mozilla)

I'll do it.

Assignee: nobody → jorgk
Status: NEW → ASSIGNED
Product: Thunderbird → Firefox
Version: unspecified → Trunk
Attachment #9097739 - Attachment is obsolete: true

These are needed for TB where about:config is loaded into a subdialogue. They don't seem to be needed for FF.

Is this a regression? When did things break / regress?

Flags: needinfo?(jorgk)
Product: Firefox → Toolkit

Sorry if this isn't clear. For all I know, the context menu for the search box in about:config is working in FF. It is not working in TB, and yes, this is a regression.

If you're interested when it broke in TB, we need to ask Alice to find it for us.

Flags: needinfo?(jorgk) → needinfo?(alice0775)
Regressed by: 1521280
Regressed by: 1534913
Attached patch 1584795.patchSplinter Review

Carrying over Brian's (bgrins) r+ from Phab.

Attachment #9098595 - Flags: review+

Dear sheriff, can you please land the attached patch which is the same as in Phab. I can't land it myself due to bug 1576146.

Please import the patch with
hg qimport bz:1584795
or
hg qimport https://bugzilla.mozilla.org/attachment.cgi?id=9098595 -n 1584795.patch
to avoid changing the author.

Keywords: checkin-needed

Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8ae524d3514d
Add editMenuOverlay.js and globalOverlay.js to config.xul to fix context menu for Thunderbird. r=bgrins

Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: