Closed Bug 476814 Opened 16 years ago Closed 16 years ago

Unfork/Unify customizeToolbar.* and customizeToolbarSheet.*

Categories

(Toolkit :: Toolbars and Toolbar Customization, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1b4

People

(Reporter: philip.chee, Assigned: philip.chee)

References

Details

(Keywords: fixed1.9.1, Whiteboard: [ToDo: FF/... part])

Attachments

(2 files)

Currently the toolkit implementation of Customize Toolbars does not support OSX. Firefox has a forked implementation where they fake a sheet with a panel. Thunderbird (and probably every other toolkit app) has similarly copied the Firefox fork for OSX. In investigating the current differences between the browser/customizeToolbarSheet.* files vs the toolkit files, I noticed that (modulo whitespace and wrapping changes) currently the differences are rather minimal and I thought it would be doable to create a merged implementation that would work in both popup window mode and in panel mode. In the Suite Bug 406780 I now have a working implementation that can be used either way. See attachment 360307 [details] [diff] [review] for how the application tells the customize code the toolbox to use when in panel mode. This patch ports my work in SeaMonkey back to toolkit. This should reduce the amount of forking and also the inevertible bit-rot that this causes.
Attachment #360463 - Flags: review?(gavin.sharp)
Attachment #360463 - Flags: review?(gavin.sharp) → review+
Comment on attachment 360463 [details] [diff] [review] Patch v1.0 Unfork OSX [Checkin: Comment 5] r=mano. If you don't have time to do the fx-part, let me know and I will.
> If you don't have time to do the fx-part, let me know and I will. I hope someone can do the Firefox part. I don't actually have OSX so for the Suite I had to rely on someone else to test my patch for me which slowed things down a bit. It would be faster for someone who has OSX to do the Firefox side of things.
Keywords: checkin-needed
Whiteboard: checkin comment #1
I don't understand what "checkin comment #1" means.
Assignee: nobody → philip.chee
> I don't understand what "checkin comment #1" means. Sorry, it means that the patch for checkin is referenced in comment 1. I don't have the necessary permissions to checkin this patch so some kind soul will have to do it for me.
Blocks: 359656
Attachment #360463 - Attachment description: Patch v1.0 Unfork OSX → Patch v1.0 Unfork OSX [Checkin: Comment 5]
Keywords: checkin-needed
Whiteboard: checkin comment #1 → [ToDo: FF/TB/... part]
Target Milestone: --- → mozilla1.9.2a1
Attachment #360463 - Flags: approval1.9.1?
OK Resolving as FIXED. Separate bugs need to be filed in Firefox and Thunderbird for the front end UI.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment on attachment 360463 [details] [diff] [review] Patch v1.0 Unfork OSX [Checkin: Comment 5] Approval Criteria: 1. Tests: No new functionality introduced. Existing unit tests should be sufficient to catch any regressions (none found to date) 2. Has landed on trunk and baked for more than a month. The forked version in SeaMonkey 2.0a3 (Gecko 1.9.1) has been out in the wild for more than a month with no reported regressions. 3. Performance impact: No impact on startup. Any possible impact would be when the customize dialog/panel is called and if any would be below noise levels. 4. Risk assessment: I don't see any increased or new risks. This patch refactors code without introducing any new functionality. 5. Reasons for taking patch: Allows Firefox and Thunderbird to unfork their OSX implementations of customizeToolbar.*. Allows SeaMonkey to remove their forked version of this patch. A (very small) reduction of code size would be possible by removing /browser/customizeToolbarSheet* and mail/customizeToolbarSheet.*
Attachment #360463 - Flags: approval1.9.1? → approval1.9.1+
Comment on attachment 360463 [details] [diff] [review] Patch v1.0 Unfork OSX [Checkin: Comment 5] a191=beltzner
Keywords: checkin-needed
Whiteboard: [ToDo: FF/TB/... part] → [needs 1.9.1 landing] [ToDo: FF/TB/... part]
Comment on attachment 360463 [details] [diff] [review] Patch v1.0 Unfork OSX [Checkin: Comment 5] Does not apply cleanly to 1.9.1: { patching file toolkit/content/customizeToolbar.js Hunk #2 FAILED at 70 1 out of 2 hunks FAILED patching file toolkit/content/customizeToolbar.xu Hunk #2 FAILED at 90 1 out of 2 hunks FAILED }
> (From update of attachment 360463 [details] [diff] [review]) > Does not apply cleanly to 1.9.1: Patch generated against 1.9.1.
Keywords: checkin-needed
Whiteboard: [needs 1.9.1 landing] [ToDo: FF/TB/... part] → [ToDo: FF/TB/... part]
Blocks: 489047
Blocks: 489544
Blocks: 489545
Whiteboard: [ToDo: FF/TB/... part] → [ToDo: FF/... part]
Target Milestone: mozilla1.9.2a1 → mozilla1.9.1b4
Blocks: 489580
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: