Closed Bug 1572416 Opened 6 years ago Closed 6 years ago

[Protections Panel] If the info message is open when navigating to a sub-panel, the header inflates abnormally after navigating back and closing the message

Categories

(Firefox :: Site Identity, task, P1)

task

Tracking

()

RESOLVED FIXED
Firefox 70
Tracking Status
firefox70 --- fixed

People

(Reporter: nhnt11, Assigned: nhnt11)

References

Details

(Whiteboard: [privacy-panel][skyline])

Attachments

(1 file)

STR:

  1. Open the Protections Popup and ensure the info message is shown by clicking the "i" icon if necessary
  2. Navigate into a sub-panel (for example, click the "Site not working?" link)
  3. Navigate back to the main view
  4. Close the info message by clicking the "i" icon.

Expected: The popup shrinks to compensate for the now-hidden info message space
Actual: The panel header expands to fill the space and the popup height remains constanst

The reason for this is that when navigating to a sub-panel, PanelMultiView sets a min-height matching the current popup height on the .panel-viewcontainer box to ensure the panel doesn't shrink upon navigation. After navigating back to the main view, this style is never cleared, resulting in the popup trying to maintain that min-height when its contents change.

The solution could be for PanelMultiView to clear this min-height when navigating back to the main view. This would also be a good opportunity to fire an event or set an attribute indicating we are in the main view, which would help solve bug 1563093.

Gijs and Mike, could you help me figure out the best way to do this? I think PanelMultiView should give consumers a way to know that the panel is currently on the main view, for styling etc.

Flags: needinfo?(mdeboer)
Flags: needinfo?(gijskruitbosch+bugs)

Clearing needinfo, I think I figured out a solution that doesn't need more information.

Assignee: nobody → nhnt11
Status: NEW → ASSIGNED
Flags: needinfo?(mdeboer)
Flags: needinfo?(gijskruitbosch+bugs)
Priority: -- → P1
Pushed by nhnt11@gmail.com: https://hg.mozilla.org/integration/autoland/rev/e135f0379062 PanelMultiView: remove the min-height on the view container when navigating to the main view. r=johannh
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 70
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: