Closed Bug 1496718 Opened 6 years ago Closed 6 years ago

Stop clobbering gURLBar when exiting customize mode

Categories

(Firefox :: Toolbars and Customization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 64
Tracking Status
firefox64 --- fixed

People

(Reporter: dao, Assigned: dao)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
This code assumes that the location bar might have been removed or re-added when exiting customize mode, but the location bar hasn't been removable for some time.
Attachment #9014747 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 9014747 [details] [diff] [review]
patch

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

It still gets wrapped into a toolbarpaletteitem, so I'd expect the binding and so on to get destroyed and recreated, so I would expect us to still need the iconbox bit. Did you test that part? If so, any idea why we no longer need to do that?
Attachment #9014747 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 9014747 [details] [diff] [review]
patch

(In reply to :Gijs (he/him) from comment #1)
> Comment on attachment 9014747 [details] [diff] [review]
> patch
> 
> Review of attachment 9014747 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> It still gets wrapped into a toolbarpaletteitem, so I'd expect the binding
> and so on to get destroyed and recreated, so I would expect us to still need
> the iconbox bit. Did you test that part? If so, any idea why we no longer
> need to do that?

I tested it and it works just fine from what I can tell. These nodes aren't anonymous, so moving them around doesn't invalidate those references.
Attachment #9014747 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 9014747 [details] [diff] [review]
patch

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

::: browser/base/content/browser-customization.js
@@ +47,1 @@
>        if (AppConstants.platform != "macosx")

Nit: please merge these 2 conditions.
Attachment #9014747 - Flags: review?(gijskruitbosch+bugs) → review+
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/821354ee31d9
Stop clobbering gURLBar when exiting customize mode. r=gijs
https://hg.mozilla.org/mozilla-central/rev/821354ee31d9
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: