Closed Bug 1719020 Opened 3 years ago Closed 2 years ago

Format Toolbar forgets its hidden status when switching to other view modes

Categories

(SeaMonkey :: Composer, defect)

defect

Tracking

(seamonkey2.53+ fixed)

RESOLVED FIXED
seamonkey 2.96
Tracking Status
seamonkey2.53 + fixed

People

(Reporter: cyuikoru, Assigned: njsg)

Details

(Whiteboard: SM2.53.12)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.8

Steps to reproduce:

-open a new Composer window
-View→Show/Hide→Format Toolbar
-the toolbar is hidden
-View→any of these:Normal Edit Mode,HTML Tags,Preview

Actual results:

the toolbar shows up after switching

Expected results:

the toolbar keeps hidden

-if the video is shown as corrupted in the browser,download it and play in something like VLC or MPC-HC since i used CamStudio codec while recording
-the bug does not show up after giving the page a title name

-the bug does not show up after giving the page a title name
actually during recording session i did that and the bug somehow did not appear so i assumed that was a thing
after recording i repeated the process with page given title name i could not make that happen again so this note is now invalid

I can reproduce with a new composer window and think this should not happen.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: SeaMonkey 2.53 Branch → Trunk

seems like this bug affects all states of Composer windows,not just when it is blank new

Summary: Format Toolbar forgets its hidden status when switching to other view modes in a blank new window → Format Toolbar forgets its hidden status when switching to other view modes

REPRODUCIBLE with installation of unofficial (by wg9s) De SeaMonkey 2.53.9 beta 1 Mozilla/5.0 (NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 Build 20210628210003 (Newly created User Profile, Default Classic Theme) on German WIN7 64bit

I compared with 2.40, there we had a different problem:

  1. Open new composer Window
  2. Hide Format toolbar by removing check mark in Menu ˋView → Show/Hideˊ
    » Format Toolbar vanishes
  3. Menu ˋView → HTML Sourceˊ
    » Expected: Format Toolbar stays hidden
    Actual: Format Toolbar visible 😥
  4. Menu ˋView → Show/Hideˊ
    » Expected: Format Toolbar item with checkmark because it's visible
    Actual: Checkmark missing although Format Toolbar is missing. Checkmark and reality concerning visibility of F. T. do not match 😥

Maybe the changes that eliminated the 2.40 problem caused the current one?

Also see Bug 185829 - View > Show/Hide > Format Toolbar setting doesn't stick when opening new composer window

update:now i found the reason why the bug seemed to "disappear" during my recording
if i go to any of the mentioned view modes,hide the toolbar and then move to HTML Source view,when you go back to any modes the toolbar stay hidden
if you never go to HTML Source view the bug will appears

update:now i found the reason why the bug seemed to "disappear" during my recording
if i go to any of the mentioned view modes,hide the toolbar and then move to HTML Source view,when you go back to any modes the toolbar stay hidden
if you never go to HTML Source view the bug will appears

so to temporarily keep the toolbar hidden you have to hide the toolbar,switch to HTML Source view immediately and move to the view you want

so to temporarily keep the toolbar hidden you have to hide the toolbar,switch to HTML Source view immediately and move to the view you want

that is redundant
also the check is properly marked when switching views this time

In editor.js, gFormatToolbarHidden is used to keep the user-set visibility (the "hidden" attribute) for this toolbar when switching to the Source view, but the stored value is always restored when moving to any other view (even if not coming from the Source view).

If the toolbar was visible when you last entered the Source view, or if you have not used that view yet, the stored value will be "false". This can then be reproduced by hiding the toolbar and switching to any view that is not Source view: the toolbar will be restored.

If you have visited the Source view with this toolbar hidden, the stored value is now "true". If you unhide the toolbar and switch to another view that is not Source view, the toolbar will be set to hidden.

Assignee: nobody → nunojsg
Status: NEW → ASSIGNED
Attachment #9264426 - Flags: review?(frgrahl)
Whiteboard: SM2.53.12

Comment on attachment 9264426 [details] [diff] [review]
1719020-composer-format-toolbar.patch

lgtm

Attachment #9264426 - Flags: review?(frgrahl)
Attachment #9264426 - Flags: review+
Attachment #9264426 - Flags: approval-comm-release+
Attachment #9264426 - Flags: approval-comm-esr60+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/47b9ad2f5098
Restore Composer Format Toolbar only when leaving source mode. r=frg

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

Attachment

General

Creator:
Created:
Updated:
Size: