Skip to content

Commit

Permalink
Issue 6273 (Filter for fonts in Net panel)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed Feb 18, 2013
1 parent 1e6e37a commit 957613f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions extension/content/firebug/firebugOverlay.xul
Expand Up @@ -339,6 +339,13 @@
tooltiptext="net.filter.tooltip.Media"
class="toolbar-text-button fbInternational"
oncommand="Firebug.NetMonitor.onToggleFilter(Firebug.currentContext, 'media')"/>
<toolbarbutton id="fbNetFilter-fonts"
type="radio"
group="firebugNetFilter"
label="net.filter.label.Fonts"
tooltiptext="net.filter.tooltip.Fonts"
class="toolbar-text-button fbInternational"
oncommand="Firebug.NetMonitor.onToggleFilter(Firebug.currentContext, 'font')"/>
</hbox>
</hbox>

Expand Down
10 changes: 9 additions & 1 deletion extension/content/firebug/net/netUtils.js
Expand Up @@ -82,7 +82,15 @@ const mimeCategoryMap =
"audio/x-midi": "media",
"music/crescendo": "media",
"audio/wav": "media",
"audio/x-wav": "media"
"audio/x-wav": "media",
"application/x-woff": "font",
"application/x-font-woff": "font",
"application/x-ttf": "font",
"application/x-font-ttf": "font",
"font/ttf": "font",
"font/woff": "font",
"application/x-otf": "font",
"application/x-font-otf": "font"
};

const fileCategories =
Expand Down
2 changes: 2 additions & 0 deletions extension/locale/en-US/firebug.properties
Expand Up @@ -582,6 +582,8 @@ net.filter.label.Plugins=Plugins
net.filter.tooltip.Plugins=Filter by Flash and Silverlight files
net.filter.label.Media=Media
net.filter.tooltip.Media=Filter by audios and videos like MP3, OGG, WAV, MIDI, WEBM, MPEG and FLV files
net.filter.label.Fonts=Fonts
net.filter.tooltip.Fonts=Filter by fonts like WOFF, TTF and OTF files

# LOCALIZATION NOTE (Post, Put): Label (verb) used in the Net panel for detailed info about
# a network request (displayed when a Net panel entry is expanded). The content of
Expand Down

0 comments on commit 957613f

Please sign in to comment.