Closed Bug 1424672 Opened 7 years ago Closed 6 years ago

panel-header is gone when go to Recently Closed Tabs in panelmultiview

Categories

(Firefox :: Toolbars and Customization, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 59
Tracking Status
firefox-esr52 --- unaffected
firefox57 --- unaffected
firefox58 --- unaffected
firefox59 --- verified

People

(Reporter: magicp.jp, Assigned: Gijs)

References

Details

Attachments

(2 files)

Steps to reproduce:
1. Launch Nightly
2. Navigate to Library button > History >  Recently Closed Tabs (or Recently Closed Windows)

Actual Results:
panel-header is gone.

Similar issue of Bookmarks menu has been fixed in bug 1423891. But, this bug is a different STR.

Expected Results:
panel-header should be shown.

Regression range:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=5f90362bbc80cf7f9b09e41477c244f292fc9f1c&tochange=6b5a357d277b83349223792361a0fdcc90c15305
Blocks: 1417042
Has Regression Range: --- → yes
Has STR: --- → yes
See Also: → 1423891
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Comment on attachment 8936466 [details]
Bug 1424672 - stop removing the header in the recently closed places views,

https://reviewboard.mozilla.org/r/207182/#review213062

It still sounds a little bit fragile (in the sense may break easily again in the future if other static content is added), but other ideas look more complex, for example in Places views we insert an invisible element that marks the beginning of the content, and we shouldn't over-engineer for this. I guess for now it's ok, it would be nice to have a more general solution to the problem (custom elements? no idea...).

::: browser/components/places/content/browserPlacesViews.js:243
(Diff revision 1)
>    },
>  
>    clearAllContents(aPopup) {
> -    while (aPopup.firstChild) {
> -      aPopup.firstChild.remove();
> +    let kid = aPopup.firstChild;
> +    while (kid) {
> +      let next = kid.nextSibling;

any reason to not just do:
for (let kid = .firstChild; kid; kid = kid.nextSibling)?
Attachment #8936466 - Flags: review?(mak77) → review+
(In reply to Marco Bonardo [::mak] (Away 16 Dec - 2 Jan) from comment #2)
> any reason to not just do:
> for (let kid = .firstChild; kid; kid = kid.nextSibling)?

oh, right, removing the node, nvm.
Comment on attachment 8936466 [details]
Bug 1424672 - stop removing the header in the recently closed places views,

https://reviewboard.mozilla.org/r/207182/#review213152
Attachment #8936466 - Flags: review?(paolo.mozmail) → review+
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c4087b735507
stop removing the header in the recently closed places views, r=mak,Paolo
https://hg.mozilla.org/mozilla-central/rev/c4087b735507
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
This bug fix has verified in the latest Nightly build (20171214220032). Thanks!
Status: RESOLVED → VERIFIED
OS: Unspecified → All
Hardware: Unspecified → All
(In reply to magicp from comment #7)
> This bug fix has verified in the latest Nightly build (20171214220032).
> Thanks!

Thank you as always for the prompt and detailed reports of regressions on nightly! It's much appreciated.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: