Closed
Bug 537275
Opened 16 years ago
Closed 16 years ago
Add some element IDs to navigator to assist porting of Firefox extensions.
Categories
(SeaMonkey :: UI Design, enhancement)
SeaMonkey
UI Design
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.1a1
People
(Reporter: philip.chee, Assigned: philip.chee)
References
Details
(Whiteboard: compat-fx)
Attachments
(1 file, 1 obsolete file)
11.64 KB,
patch
|
philip.chee
:
review+
philip.chee
:
superreview+
|
Details | Diff | Splinter Review |
Sync some element IDs from browser.xul to make it easier for Firefox extensions to overlay SeaMonkey.
![]() |
Assignee | |
Comment 1•16 years ago
|
||
+ <menuitem id="historyMenuUp"
Firefox doesn't have this menu item, but for consistency I'm adding one to all the menu items in this area.
- <menuitem label="&historyCmd.label;" accesskey="&historyCmd.accesskey;" oncommand="toHistory()" key="key_gotoHistory"/>
- <menuseparator hidden="true"/>
+ <menuitem id="menu_showAllHistory"
+ label="&historyCmd.label;"
+ accesskey="&historyCmd.accesskey;"
+ oncommand="toHistory()"
+ key="key_gotoHistory"/>
+ <menuseparator id="startHistorySeparator" hidden="true"/>
+ <menuseparator id="endHistorySeparator" hidden="true"/>
Several Firefox extensions use insertbefore/insertafter these menuseparators in their overlays.
- aParent.lastChild.hidden = (count == 0);
If an extension appends a menu item to the Go menu, this logic hides the wrong menu item.
+ var startHistory = document.getElementById("startHistorySeparator");
+ var endHistory = document.getElementById("endHistorySeparator");
+ startHistory.hidden = (count == 0);
+ endHistory.hidden = (endHistory == aParent.lastChild);
Attachment #419575 -
Flags: superreview?(neil)
Attachment #419575 -
Flags: review?(neil)
![]() |
Assignee | |
Comment 2•16 years ago
|
||
-function createMenuItem( aParent, aIndex, aLabel)
+function createMenuItem(aParent, aIndex, aLabel)
-function createRadioMenuItem( aParent, aIndex, aLabel, aChecked)
+function createRadioMenuItem( aParent, aAnchor, aIndex, aLabel, aChecked)
Aargh. I'll fix these whitespace nits in the next patch after reviews.
Comment 4•16 years ago
|
||
Comment on attachment 419575 [details] [diff] [review]
Patch v1.0
>+ createRadioMenuItem(aParent, endHistory, j, entry.title, j==index);
Speaking of spacing nits, might as well fix the spacing around the ==
> if (aChecked==true)
And if you're fixing all the spacing anyway, then this can be improved!
Comment 5•16 years ago
|
||
Comment on attachment 419575 [details] [diff] [review]
Patch v1.0
Bah, after all that, I forgot to tick the boxes...
Attachment #419575 -
Flags: superreview?(neil)
Attachment #419575 -
Flags: superreview+
Attachment #419575 -
Flags: review?(neil)
Attachment #419575 -
Flags: review+
![]() |
Assignee | |
Comment 6•16 years ago
|
||
> (From update of attachment 419575 [details] [diff] [review])
>>+ createRadioMenuItem(aParent, endHistory, j, entry.title, j==index);
> Speaking of spacing nits, might as well fix the spacing around the ==
Fixed.
>> if (aChecked==true)
> And if you're fixing all the spacing anyway, then this can be improved!
Fixed. Plus a few more whitespace nits around this line.
Attachment #419575 -
Attachment is obsolete: true
Attachment #419830 -
Flags: superreview+
Attachment #419830 -
Flags: review+
![]() |
Assignee | |
Comment 7•16 years ago
|
||
Interdiff:
<https://bugzilla.mozilla.org/attachment.cgi?oldid=419575&action=interdiff&newid=419830&headers=1>
Keywords: checkin-needed
Comment 8•16 years ago
|
||
Comment on attachment 419830 [details] [diff] [review]
Patch v1.1 Fix whitespace nits. r=neil sr=neil
[Checkin: Comment 8]
http://hg.mozilla.org/comm-central/rev/78e022d07edc
Attachment #419830 -
Attachment description: [for checkin] Patch v1.1 Fix whitespace nits. r=neil sr=neil → Patch v1.1 Fix whitespace nits
[Checkin: Comment 8]
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.1a1
![]() |
Assignee | |
Updated•16 years ago
|
Attachment #419830 -
Attachment description: Patch v1.1 Fix whitespace nits
[Checkin: Comment 8] → Patch v1.1 Fix whitespace nits. r=neil sr=neil
[Checkin: Comment 8]
You need to log in
before you can comment on or make changes to this bug.
Description
•