Closed Bug 1679255 Opened 4 years ago Closed 3 years ago

remove <deck> from migration.xhtml

Categories

(Thunderbird :: General, task)

Tracking

(thunderbird_esr78 wontfix, thunderbird84 wontfix)

RESOLVED FIXED
85 Branch
Tracking Status
thunderbird_esr78 --- wontfix
thunderbird84 --- wontfix

People

(Reporter: mkmelin, Assigned: khushil324)

References

Details

Attachments

(1 file, 3 obsolete files)

Attachment #9189713 - Flags: review?(mkmelin+mozilla)
Status: NEW → ASSIGNED
Comment on attachment 9189713 [details] [diff] [review]
Bug-1679255_de-deck-migration-xhtml-0.patch

Review of attachment 9189713 [details] [diff] [review]:
-----------------------------------------------------------------

::: mail/components/migration/content/migration.js
@@ +156,4 @@
>  
>      if (firstNonDisabled) {
>        this._wiz.canAdvance = true;
> +      document.getElementById("importSourceNotFound").hidden = true;

Doesn't it need to unhide the other one?

Both are shown by default and we will hide one of them according to the window arguments.

Attachment #9189713 - Flags: review?(mkmelin+mozilla) → review?(alessandro)
Comment on attachment 9189713 [details] [diff] [review]
Bug-1679255_de-deck-migration-xhtml-0.patch

Review of attachment 9189713 [details] [diff] [review]:
-----------------------------------------------------------------

I think would be better to approach this from the other side, meaning we should start with both items hidden and only reveal what we need.

Since all the labels use textContent and not value, starting with all the elements hidden won't affect sizing or text wrapping.
The dialog is also sized by itself, so having both items visible by default is not very useful, and we might stumble upon a "flashing" UI if for whatever reason the JS code is delayed.

::: mail/components/migration/content/migration.xhtml
@@ +39,2 @@
>  #ifdef XP_WIN
> +          <radio id="outlook"   label="&importFromOutlook.label;"   accesskey="&importFromOutlook.accesskey;"/>

nit: remove the extra empty characters before the label and accesskey attributes and indent them to respect the max character limit.
Attachment #9189713 - Flags: review?(alessandro) → feedback+
Attachment #9189713 - Attachment is obsolete: true
Attachment #9189926 - Flags: review?(mkmelin+mozilla)
Attachment #9189926 - Flags: review?(mkmelin+mozilla) → review?(alessandro)
Attachment #9189926 - Attachment is obsolete: true
Attachment #9189926 - Flags: review?(alessandro)
Attachment #9189938 - Flags: review?(alessandro)
Comment on attachment 9189938 [details] [diff] [review]
Bug-1679255_de-deck-migration-xhtml-2.patch

Review of attachment 9189938 [details] [diff] [review]:
-----------------------------------------------------------------

Good stuff, thanks for taking care of this.
Please, update the commit message with "Bug 1679255 - Remove the <deck> XUL element from the migration.xhtml dialog. r=aleca"

::: mail/components/migration/content/migration.js
@@ +160,1 @@
>      } else {

nit: here you can use a return; and avoid the else callback since no other code needs to run after the condition.
Attachment #9189938 - Flags: review?(alessandro) → review+
Attachment #9189938 - Attachment is obsolete: true
Attachment #9190085 - Flags: review+

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/857e14a1cfe2
Remove the <deck> XUL element from the migration.xhtml dialog. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: