Closed Bug 1834014 Opened 1 year ago Closed 1 year ago

Add effects to always- and never-translate menuitems

Categories

(Firefox :: Translations, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: nordzilla, Assigned: nordzilla)

References

Details

Attachments

(2 files, 9 obsolete files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Bug 1829691 adds the always-translate and never-translate menuitems to the translations panel, but only hooks up the infrastructure to interact with the preferences and perform the correct actions upon loading a page.

This bug adds effects to the buttons that will trigger behaviors when clicked.

  • always-translate language will immediately translate the page if not already translated.

  • never-translate language will hide the translations button and restore the page if translated.

  • never-translate site will hide the translations button and restore the page if translated.

Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Depends on D177860

Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Depends on D177860

Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Depends on D177860

Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Depends on D177860

Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Depends on D177860

Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Depends on D177860

Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Depends on D177860

Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Depends on D177860

Adds functionality to the following menuitems:

always-translate language will immediately translate
the page if not already translated.

never-translate language will hide the translations
button and restore the page if translated.

never-translate site will hide the translations
button and restore the page if translated.

Depends on D177860

Attachment #9334947 - Attachment is obsolete: true
Attachment #9334948 - Attachment is obsolete: true
Attachment #9334949 - Attachment is obsolete: true
Attachment #9334950 - Attachment is obsolete: true
Attachment #9334951 - Attachment is obsolete: true
Attachment #9334952 - Attachment is obsolete: true
Attachment #9334953 - Attachment is obsolete: true
Attachment #9334954 - Attachment is obsolete: true
Attachment #9334955 - Attachment is obsolete: true
Attachment #9334956 - Attachment description: WIP: Bug 1834014 - Add effects to always- and never-translate menuitems → Bug 1834014 - Add effects to always- and never-translate menuitems r=gregtatum!
Attachment #9334957 - Attachment description: WIP: Bug 1834014 - Update always- and never-translate menuitem tests → Bug 1834014 - Update always- and never-translate menuitem tests r=gregtatum!
Pushed by enordin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e9c17faebbe3
Add effects to always- and never-translate menuitems r=gregtatum
https://hg.mozilla.org/integration/autoland/rev/680e9579fca5
Update always- and never-translate menuitem tests r=gregtatum
Backout by abutkovits@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6aa20cd839a4
Backed out 10 changesets (bug 1834014, bug 1829691) for causing failures at browser_about_translations_debounce.js. CLOSED TREE

That kind of looks like Bug 1834067, I triggered more runs. We should probably just disable that test for now and follow-up.

This is an old intermittent issue from Bug 1821461 that we believed was fixed in this revision:
https://phabricator.services.mozilla.com/D178448#change-X4JCCMBxHUGV

The code that it tests is not part of the Translations MVP, and the code that landed in this bug does not touch this test at all.

I have re-disabled the test and I am re-landing.
https://phabricator.services.mozilla.com/D178723

Flags: needinfo?(enordin)
Pushed by enordin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/96dc91b50ecf
Add effects to always- and never-translate menuitems r=gregtatum
https://hg.mozilla.org/integration/autoland/rev/bd3077e43541
Update always- and never-translate menuitem tests r=gregtatum

Ah, how frustrating.

This is due to a misunderstanding of the value of the aDefaultValue parameter in defineLazyPreferenceGetter().

I've fixed the issue in this code, and also submitted a patch to clarify the defineLazyPreferenceGetter() code:
https://bugzilla.mozilla.org/show_bug.cgi?id=1834595

Here is a clean try run:

https://treeherder.mozilla.org/jobs?repo=try&revision=ae2ea7d713b62658e7710b0b0726ba423630b613&selectedTaskRun=EDGOF8GQQsicRk6QL3fZpQ.0

Flags: needinfo?(enordin)
Pushed by enordin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7420159aa934
Add effects to always- and never-translate menuitems r=gregtatum
https://hg.mozilla.org/integration/autoland/rev/56ff28106079
Update always- and never-translate menuitem tests r=gregtatum
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: