Closed Bug 1108557 Opened 5 years ago Closed 5 years ago

Debug log tab needs a findbar

Categories

(Instantbird :: Other, enhancement)

enhancement
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nhnt11, Assigned: nhnt11)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Patch (obsolete) — Splinter Review
No description provided.
Attachment #8533158 - Flags: review?(aleth)
Comment on attachment 8533158 [details] [diff] [review]
Patch

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

::: im/content/instantbird.xul
@@ +66,5 @@
>      <command id="cmd_textZoomEnlarge" oncommand="if (getBrowser()) FullZoom.enlarge();"/>
>      <command id="cmd_textZoomReset" oncommand="if (getBrowser()) FullZoom.reset();"/>
>      <command id="cmd_find"
> +             oncommand="var panel = getTabBrowser().selectedPanel;
> +                        if (!panel) return;

why isn't this just |if (panel && panel.findbar)| rather than 2 separate tests?
Because the ampersands need to be escaped, and I figured using two tests is more readable than |if panel &amp;&amp; panel.findbar)|.
Comment on attachment 8533158 [details] [diff] [review]
Patch

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

r+ with added comment in the panel documentation.

Thanks for fixing this!
Attachment #8533158 - Flags: review?(aleth) → review+
Attached patch Patch v2Splinter Review
Added the comment.
Attachment #8533158 - Attachment is obsolete: true
Attachment #8533167 - Flags: review+
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/7d547c917da3
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 1.6
You need to log in before you can comment on or make changes to this bug.