<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Nothingness of Scott &#187; Mozilla</title>
	<atom:link href="http://www.jwir3.com/blog/category/software/mozilla/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jwir3.com/blog</link>
	<description>jwir3&#039;s blog on software development, mythology, and pretty much anything that comes to mind</description>
	<lastBuildDate>Thu, 09 May 2013 22:34:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>(Hopefully) Easier Firefox Building with JMozTools</title>
		<link>http://www.jwir3.com/blog/2012/09/14/hopefully-easier-firefox-building-with-jmoztools/</link>
		<comments>http://www.jwir3.com/blog/2012/09/14/hopefully-easier-firefox-building-with-jmoztools/#comments</comments>
		<pubDate>Sat, 15 Sep 2012 01:04:27 +0000</pubDate>
		<dc:creator>jwir3</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Build Systems]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[build system]]></category>
		<category><![CDATA[community]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gecko]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[patches]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://jwir3.wordpress.com/?p=350</guid>
		<description><![CDATA[One of the things I learned when I first started at Mozilla a little over a year ago is that there&#8217;s this kind-of unwritten &#8216;rite of passage&#8217;, so to speak. If you want to be a developer, one of the first things you have to do is learn to build Mozilla. I, like many others [...]]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft" title="JMozTools" src="http://www.glasstowerstudios.com/trac-htdocs/site/BugTrackingJMozTools.png" alt="Introducing JMozTools" width="186" height="56" />One of the things I learned when I first started at Mozilla a little over a year ago is that there&#8217;s this kind-of unwritten &#8216;rite of passage&#8217;, so to speak. If you want to be a developer, one of the first things you have to do is learn to build Mozilla. I, like many others at Mozilla, have contributed to open source projects in the past, and so we expect the effort it takes to get the product built. Not everyone is so lucky, and it&#8217;s definitely possible to lack patience when trying to join an organization to which you&#8217;re donating your time. Building Mozilla can be intricate, tricky, and downright frustrating. Even if you get it the first time, there are a lot of long commands (at least on linux) you have to remember and keep track of in order to rebuild the software.</p>
<p>If you don&#8217;t believe me, or you want to give it a try (please do &#8211; it&#8217;s always great to have people who can think about our processes and make them better!), take a look at our <em>simple</em> build documentation:</p>
<p><a title="Firefox Simple Build" href="https://developer.mozilla.org/en-US/docs/Simple_Firefox_build">https://developer.mozilla.org/en-US/docs/Simple_Firefox_build</a></p>
<p>You might now be asking, &#8216;How does anyone do this every day?&#8217; Well, that&#8217;s where the unwritten rite of passage comes into play &#8211; most developers, in their early days with the organization, spend a great deal of time developing a set of automated scripts, designed to ease the burden of all of these commands, and to customize the build system to their workflow. If you do it correctly, you can spend anywhere from few days to a few weeks creating these scripts, and then only spend a few minutes every so often, polishing them and updating them.</p>
<p>This works great for the ambitious and eager script-writer. But, keep in mind that these scripts are written, and this trial by fire is passed, <em>before a contributor can even begin working on a real problem</em>. Not only that, but because our organization is made up of so many different kinds of people &#8211; non-platform developers, UX experts, artists/creative folks, add-on developers, test engineers, build engineers, automation engineers&#8230; (the list goes on) &#8211; not everyone has the skill or patience to understand arcane build output.</p>
<p>I&#8217;ve found that new contributors are excited to get working on a problem with Firefox. Unfortunately, if it takes them an entire week or more (I&#8217;m not talking build time here&#8230; I mean actually fiddling with .mozconfig files, Makefiles, directory structures, etc&#8230;), they end up getting burned out before they even begin their project! I&#8217;d really like to avoid having contributors quit before they even get to the heart of the problem they originally signed up to take on.</p>
<p>So, to that end, I decided to take the scripts <em>I</em> originally used to make building Mozilla a bit easier and more customized for <em>me</em> and open them up to the general public. I call the set of tools &#8216;JMozTools&#8217;, and they are available at <a title="JMozTools" href="http://www.glasstowerstudios.com/trac/JMozTools/">http://www.glasstowerstudios.com/trac/JMozTools/</a> These tools are not designed to replace the set of build tools already existing in Mozilla; they are designed to provide a set of &#8216;shortcuts&#8217; for common build and run commands that would otherwise sometimes get unwieldy.</p>
<p>As time goes on, I intend to add some other tools to the suite, as well, such as Eclipse plugins that assist in merging those irritating .rej files that sometimes persist after running hg update and hg qpush&#8217;ing a bitrotted patch. For now, all of the scripts that I use on a regular basis (everyday &#8211; literally) are in this suite. Installation and use documentation is on the trac site, as are current bug reports and roadmaps for the future of the toolset. I encourage you to contact me if you have any questions about how to use the scripts, or especially if you&#8217;d like to contribute to this mini-project.</p>
<p>Happy (Mozilla) Hacking!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jwir3.com/blog/2012/09/14/hopefully-easier-firefox-building-with-jmoztools/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Prototyping Refloz (Reflow-On-Zoom)</title>
		<link>http://www.jwir3.com/blog/2012/09/04/prototyping-refloz-reflow-on-zoom/</link>
		<comments>http://www.jwir3.com/blog/2012/09/04/prototyping-refloz-reflow-on-zoom/#comments</comments>
		<pubDate>Tue, 04 Sep 2012 16:22:59 +0000</pubDate>
		<dc:creator>jwir3</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Fennec]]></category>
		<category><![CDATA[Gecko]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Readability]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[fennec]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gecko]]></category>
		<category><![CDATA[light box]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[pan]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[readability]]></category>
		<category><![CDATA[readability 2.0]]></category>
		<category><![CDATA[reader mode]]></category>
		<category><![CDATA[reflow]]></category>
		<category><![CDATA[reflow on zoom]]></category>
		<category><![CDATA[zoom]]></category>

		<guid isPermaLink="false">http://jwir3.wordpress.com/?p=323</guid>
		<description><![CDATA[As part of the Readability 2.0 project, we&#8217;re trying a few different approaches to making text beautiful and easily readable on a mobile device in Firefox for Android. When text isn&#8217;t readable, most people think that increasing the size of the text is the answer to making it readable, and this is one approach, which [...]]]></description>
				<content:encoded><![CDATA[<p>As part of the Readability 2.0 project, we&#8217;re trying a few different approaches to making text beautiful and easily readable on a mobile device in Firefox for Android. When text isn&#8217;t readable, most people think that increasing the size of the text is the answer to making it readable, and this is one approach, which we call &#8220;font inflation&#8221;. This technique is described (in probably excruciating detail) in a previous blog post <sup><a href="#fontInflationPost">1</a></sup>. There are a couple of other approaches, though, that we&#8217;ve been toying with.</p>
<p><span id="more-323"></span></p>
<p>One solution is to offer users a &#8220;mini reader mode&#8221; &#8211; a pop-over or &#8220;light box&#8221; that contains the text, in a more readable format, which floats over the main page. Kats <sup><a href="#katsReadabilityPost">2</a></sup> is working on a prototype to show how this might work. The original idea for this was to have a floating box overlay the text in a given area, so that user could see both the box with the more readable text, but also the context in which that text fits into the underlying page by showing the page behind the box. The idea is novel and unique to Firefox, although it&#8217;s not clear whether this prototype is going to ship in a release yet or not. In any case, Kats&#8217; prototype is really beginning to demonstrate the possibilities of this approach to improving readability.</p>
<p>Another approach is the &#8220;reflow on zoom&#8221; approach. Basically, the idea here is to reflow the page as the user zooms in, potentially narrowing the text frames in order to force text wrapping. This is a solution to the horizontal scrolling problem described in <em>Font Inflation, Fennec, and You</em> <sup><a href="#fontInflationPost">1</a></sup>. The technical details of this aren&#8217;t incredibly exciting &#8211; I added an API for specifying the max line box width, which, when changed, generates a reflow event <sup><a href="#bug780258">3</a></sup>. This API is accessible from <em>chrome </em>javascript, meaning that webpages don&#8217;t have access to this API, only javascript used as part of the rendering of the browser itself (what we call the &#8220;browser chrome&#8221;, meaning the window decorations, the address bar, etc&#8230;). Inside of the browser itself, on mobile, I then specify the max line box width to be no greater than the width of the viewport (minus some padding so that text doesn&#8217;t go right to the edge of the screen). Currently, this is still a pretty rough prototype. There are a number of things that still need to be polished before it can be ready for actual use. You can see an example of what the prototype looks like in the following image, though:</p>
<table style="margin:auto;" cellpadding="20">
<tbody>
<tr>
<td>
<p><div id="attachment_325" class="wp-caption aligncenter" style="width: 190px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2012/09/scap1.png"><img class=" wp-image-325 " title="scap1" src="http://www.jwir3.com/blog/wp-content/uploads/2012/09/scap1.png?w=180" alt="Screen Capture 1, Without Reflow-On-Zoom" width="180" height="317" /></a><p class="wp-caption-text">Article without any reflow-on-zoom enhancements</p></div></td>
<td>
<p><div id="attachment_326" class="wp-caption aligncenter" style="width: 190px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2012/09/scap2.png"><img class="size-medium wp-image-326" title="scap2" src="http://www.jwir3.com/blog/wp-content/uploads/2012/09/scap2.png?w=180" alt="Screen Capture 2 - With Reflow-On-Zoom" width="180" height="300" /></a><p class="wp-caption-text">Article text with reflow-on-zoom (line box width constrained to viewport width).</p></div></td>
</tr>
</tbody>
</table>
<p>The problem I&#8217;m currently working on is a positioning problem. There are two methods commonly used to trigger zoom on mobile &#8211; a double tap gesture, and a pinch gesture. If the user double taps the screen, it will find the element associated with a particular point where the double tap occurred and then zoom in to this element. Unfortunately, this is somewhat less than ideal, since the whole point of the reflow on zoom concept is for the user to specify what the ideal zoom level is for her, then have the text wrap according to this width. Many elements are already almost as wide as the viewport, so enhancing them just a bit isn&#8217;t really a useful technique &#8211; we&#8217;re not actually increasing readability.</p>
<p>The other gesture, pinching to indicate the level of zoom, is more promising, but comes with its own set of difficulties. The biggest difficulty is that when the user zooms in to a particular rectangle, we want to maintain the position of the text she zoomed in to in relation to the viewport. When the reflow event happens after changing the line box width, the text moves a bit to the left, since the width of the element changes, causing it to no longer be centered within the viewport. This can be rectified easily using similar code in the double-tap gesture approach, but only if we can identify the element into which the user wanted to zoom. This is further complicated by the fact that pinching doesn&#8217;t have a single point to zoom in on like double-tapping does. Instead, it has a beginning point, several points as the user widens their fingers, and then a final point. These points appear to track the center of the line between the user&#8217;s two fingers. So, do we take the average of these points? The first point where the user&#8217;s fingers are close together? The last point, where the user&#8217;s fingers are furthest apart? As an additional problem, we might not be able to identify a specific element correctly &#8211; a DOM element might be too large of an area for us to use &#8211; perhaps we want something more like a piece of text to target.</p>
<p>All of these problems are solvable, but the prototype is still in the early stages. It&#8217;ll probably be many more iterations of this prototype before it&#8217;s finally ready for the prime time.</p>
<h2>References</h2>
<p><a name="fontInflationPost"></a><br />
[1] Johnson, Scott. Font Inflation, Fennec, and You (2012). <em>The Nothingness of Scott</em><em>. </em>Retrieved 31 August, 2012 from <a title="http://jwir3.wordpress.com/2012/07/30/font-inflation-fennec-and-you/" href="http://jwir3.wordpress.com/2012/07/30/font-inflation-fennec-and-you/">http://jwir3.wordpress.com/2012/07/30/font-inflation-fennec-and-you/</a>.</p>
<p><a name="katsReadabilityPost"></a><br />
[2] Gupta, Kartikaya. <em>Readability 2.0 Prototyping</em> (2012). Retrieved 31 August 2012 from <a title="https://staktrace.com/spout/entry.php?id=759" href="https://staktrace.com/spout/entry.php?id=759">https://staktrace.com/spout/entry.php?id=759.</a></p>
<p><a name="bug780258"></a><br />
[3] <a title="Bug 780258" href="https://bugzilla.mozilla.org/show_bug.cgi?id=780258">Bug 780258: Add support for max line box width API</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jwir3.com/blog/2012/09/04/prototyping-refloz-reflow-on-zoom/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Font Inflation, Fennec, and You</title>
		<link>http://www.jwir3.com/blog/2012/07/30/font-inflation-fennec-and-you/</link>
		<comments>http://www.jwir3.com/blog/2012/07/30/font-inflation-fennec-and-you/#comments</comments>
		<pubDate>Tue, 31 Jul 2012 03:09:06 +0000</pubDate>
		<dc:creator>jwir3</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Fennec]]></category>
		<category><![CDATA[Gecko]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[fennec]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[font-inflation]]></category>
		<category><![CDATA[mobile browsing]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[readability]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://jwir3.wordpress.com/?p=216</guid>
		<description><![CDATA[All right small fonts - we're going to <em>PUMP - YOU - UP</em>! It's time that small fonts on mobile devices became readable with little or no effort from the user. But how does this get accomplished? How does the browser engine know which bits of text should be enlarged, and which ones should be left alone? How can the browser possibly know enlargement of specific areas of the page won't cause crazy layout problems? This article gives an overview of what font inflation is in Fennec (mobile Firefox), how it works, and what you should do to help it work more efficiently.]]></description>
				<content:encoded><![CDATA[<h2>The Need for Readability</h2>
<p>Many people in the world now use mobile devices to browse the web. It&#8217;s fast, convenient, and absolutely indispensable when you <em>absolutely have to prove that you are correct in an argument</em>. However, early on in the mobile browsing craze, my father asked me (and he wasn&#8217;t the only one), &#8220;Why would anyone choose to use the internet on such a tiny screen?&#8221; Probably the most obvious reason is the convenience of being able to look up restaurants, stores, reviews, or virtually anything, while you&#8217;re trying to find a place and you&#8217;re disconnected from a traditional desktop/monitor setup. Or, for some people, being able to play <em>Angry Birds</em> or watch a TV show while outside sitting in a hammock is enough reason to want the web on your mobile device.</p>
<p>However, small text is difficult to read. If you are unable to read text, surfing the web really isn&#8217;t that much fun. It&#8217;s a lot of frustration and irritation &#8211; a commonly enjoyable task now becomes a disliked chore. How can we get around this? Well, zooming is a common way to alleviate something that is too small &#8211; effectively including a magnifying glass in the software you write. So, if something is too small on the screen &#8211; fonts, images, smileys, shortcuts, etc&#8230; &#8211; you simply increase the number of pixels these objects take up, effectively making them larger. This works reasonably well, assuming, or course, you have enough data. But, zooming has its own issues. If we zoom in on a piece of text, we&#8217;re making that text larger, along with all the surrounding text. This is what we want, but what if by zooming in on the text to make it readable, we now have a smaller <em>amount</em> of text on the screen? That is, we have to scroll after having read only a small amount of information. If you have to scroll after having read only two words, it gets tiresome very quickly. Another issue is having to scroll in multiple directions. We&#8217;re fairly content with scrolling vertically (or horizontally, if that&#8217;s the only direction), but having to scroll horizontally AND vertically is a pain (if you don&#8217;t believe me, try reading a PDF paper on your mobile device with the default reader &#8211; after the first half page, I get annoyed at having to scroll horizontally AND vertically).</p>
<h2>Enter Font Inflation, Stage Left</h2>
<p><em>Font Inflation</em><sup><a href="#note1">1</a></sup> is the term for the Gecko implementation of an adjustment made to text during Reflow<sup><a href="#reflowNote">2</a></sup>. The basic idea is that we divide up our set of frames into some which are text containers, and then increase the size of the fonts used for text within these containers. Font Inflation, as a concept, is not actually unique to Gecko. A form of this concept, called <em>text size adjustment,</em> is also implemented in WebKit, specifically for iOS devices<sup><a href="#iOSTextSizeAdjustRef">3</a></sup>. The tricky parts are determining what constitutes a container for font size inflation, and enlarging text without drastically changing the page layout.</p>
<h3>Basic Algorithm</h3>
<address>Non-technical readers (or technically saavy readers that aren&#8217;t interested in the explicit details) might want to skip this part, as it goes over how font inflation works within Gecko.</address>
<p>David Baron developed the basic font inflation algorithm and processing in Gecko<sup><a href="#originalFIBug">4</a></sup>. There are really two basic stages in which font inflation plays a role: Frame Construction and Reflow. During the phase of Frame Construction, we mark some frames as <em>font inflation containers</em>, and a subset of these as <em>font inflation flow roots</em>. A font inflation container is a frame that is an ancestor of frames containing text, with the added condition that font inflation containers are <em>never</em> line participants (e.g. inline frames such as &lt;font&gt; and &lt;b&gt;, and line breaks), because we want font inflation to be consistent within a line (i.e. <span style="font-size:medium;">we don&#8217;t want</span> <span style="font-size:large;">font inflation</span> <span style="font-size:medium;">to adjust</span> <span style="font-size:xx-large;">a line</span> <span style="font-size:large;">like this</span>). You can think of font inflation containers as block frames containing some amount of text to be inflated. If there is more than one frame that represents a particular node in the content tree, only the outermost frame is a font inflation container. Font inflation containers happen to be the smallest unit of text for which we can disable font inflation entirely.</p>
<p>A font inflation flow root, on the other hand, is a slightly different beast. It&#8217;s a frame that is a font inflation container, where we want to start aggregation of font inflation data. In other words, it&#8217;s a bit of an artificial construct designed to fine-tune the heuristics we use to factor out things like copyright notices at the bottom of pages, and other areas of text where font inflation isn&#8217;t desired. In order to be a font inflation flow root, a frame must satisfy the following conditions:</p>
<ol>
<li>It must be a font inflation container.</li>
<li>It must establish a new <em>block formatting context</em><sup><a href="#bfcNote">5</a></sup></li>
<li>It must be either<sup><a href="#otherConditionsNote">6</a></sup>:
<ol>
<li>Absolutely positioned</li>
<li>or, floating</li>
<li>or, a table cell</li>
<li>or, it&#8217;s the root frame</li>
</ol>
</li>
</ol>
<p>If these conditions are met, then <em>during frame construction</em>, the frame is set as a font inflation flow root. This essentially means that this is the beginning of an area of &#8220;text flow&#8221; that we want to inflate. (Ideally,the content within the frames underneath a given flow root should be &#8220;connected&#8221; in the user&#8217;s mind. An example might be different paragraphs of a single section of a single article. Unfortunately, we can&#8217;t determine semantic connections, at least not without assistance from a more robust language than HTML 4.01). In other words, this is a subtree of the frame tree for which we want a separate font inflation statistical-aggregate data structure. It isn&#8217;t uncommon for the root frame to be the only font inflation flow root in a document.</p>
<p>Since I&#8217;m a visual person, I thought I&#8217;d give a visual example of what we&#8217;re talking about here. You can take a look at the example at <a title="Font Inflation Example" href="http://people.mozilla.org/~sjohnson/font-inflation-documentation/example1.html" target="_blank">http://people.mozilla.org/~sjohnson/font-inflation-documentation/example1.html</a>. If you&#8217;re currently on Firefox for Android, then you should see the font inflated page. If you&#8217;re on desktop Firefox, open a new tab, type <em>about:config</em>, search for <em>inflation</em>, and set <em>font.size.inflation.emPerLine</em> to <em>15</em> and <em>font.size.inflation.lineThreshold</em>  to <em>200</em>. You&#8217;ll then need to reload the example page. (A quick warning: this will inflate any pages you visit, so you&#8217;ll want to turn it off again after you&#8217;ve reloaded the example).</p>
<p>If you&#8217;re not interested in testing the font inflation for yourself on this example, here&#8217;s an idea of what it looks like after these inflation configuration settings have been enabled:</p>
<div id="attachment_248" class="wp-caption aligncenter" style="width: 165px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2012/07/inflated-example.png"><img class="size-medium wp-image-248" title="inflated-example" src="http://www.jwir3.com/blog/wp-content/uploads/2012/07/inflated-example.png?w=155" alt="Example with Font Inflation" width="155" height="300" /></a><p class="wp-caption-text">Example page with font inflation enabled</p></div>
<p>So why weren&#8217;t the sidebar and footer inflated? Shouldn&#8217;t they have been inflated as much as possible, just like the main article text? The answer to these questions lies in the work that was done to specify regions of layout that collect separate font inflation data (the flow roots mentioned above). This example is similar in structure to the layout of the New York Times website, which we had issues with regarding font inflation abnormally inflating the footer of the page (see &#8220;Footer Text&#8221;, in the <em>Exceptions</em> section, below, for context as to why this works the way it does). In order to better understand how this process, it&#8217;s useful to look at the example alongside a representation of the frame tree that is built within Gecko at the time of page layout. A non-inflated version of this page looks something like this:</p>
<div id="attachment_242" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2012/07/frame-visual-layout.png"><img class="size-medium wp-image-242" title="frame-visual-layout" src="http://www.jwir3.com/blog/wp-content/uploads/2012/07/frame-visual-layout.png?w=300" alt="Example of Font Inflation Page Layout Internals " width="300" height="199" /></a><p class="wp-caption-text">Example page rendered without font inflation. The background colors indicate which frame the particular element corresponds to in the frame tree image (below).</p></div>
<p>I&#8217;ve color-coded the different frames so that it&#8217;s easier to coordinate them with the frame tree, which looks something like the following:</p>
<div id="attachment_244" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2012/07/frame-tree.png"><img class="size-medium wp-image-244" title="frame-tree" src="http://www.jwir3.com/blog/wp-content/uploads/2012/07/frame-tree.png?w=300" alt="Frame Tree Example" width="300" height="147" /></a><p class="wp-caption-text">The frame tree for the example web page, condensed for brevity and clarity.</p></div>
<p>As you can see from the frame tree diagram, the root frame and the two block frames with id &#8220;main&#8221; and &#8220;sidebar&#8221; are our font inflation flow roots. This means that font inflation data is aggregated, starting at each of these frames, and not including the other font inflation flow root frames, or their respective subtrees. The font inflation containers are the block frames &#8220;body&#8221;, &#8220;page&#8221;, and &#8220;footer&#8221;. Since the descendants of the &#8220;footer&#8221; frame are the only content within the &#8220;root frame&#8221; font inflation flow root, and the text isn&#8217;t sufficient (the meaning of this might not be clear until the lineThreshold setting is discussed below), it isn&#8217;t inflated. For the same reason, the text underneath the &#8220;sidebar&#8221; flow root isn&#8217;t inflated. The text underneath the &#8220;main&#8221; frame, however, is sufficient, and thus is inflated as expected.</p>
<p>In other words, you can think of the font inflation <em>flow roots</em> as areas of the page that collect statistical data regarding the size (i.e. text amount) of their children, <em>in total</em>. This data is then used to determine whether or not the font inflation functionality should take effect for the child frames beneath these roots. They are also used to determine the maximum width (and thus the minimum text size), if font inflation is enabled for a given frame beneath the flow root. <em>Font inflation containers</em> are used to disable font inflation entirely for a smaller chunk of text than the flow roots.</p>
<p>Once we&#8217;ve initialized our frames to have the appropriate state bits and such, we perform a font size inflation calculation during reflow. First, given a particular target frame for which we want to inflate fonts, we find its font size inflation flow root, and compute the width. In order to compute the width that descendent frames will use from a given flow root, we find the nearest common ancestor of the first and last pieces of inflatable text within a given flow root. We then use the width of this ancestor frame, which might not be the flow root itself.  Then, given the two preferences for font size inflation (discussed below), we compute the minimum font size that will satisfy these parameters and will fit within the given container width. Using this minimum font size, we map all font sizes in the target frame within the range (0-150%] of the minimum font size to the range [100-150%] of the minimum font size<sup><a href="#minFontSizNote">7</a></sup>.</p>
<div id="attachment_253" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2012/07/min-font-size-diagram2.png"><img class="size-medium wp-image-253  " title="min-font-size-diagram" src="http://www.jwir3.com/blog/wp-content/uploads/2012/07/min-font-size-diagram2.png?w=300" alt="Minimum Font Size Diagram" width="300" height="200" /></a><p class="wp-caption-text">With a minimum font size of 20.0 px, 12.0 px gets mapped to 23.33 px.</p></div>
<p>Why not simply map everything under the minimum font size to the minimum font size itself? Because we want to be able to preserve differentiation between fonts at a size less than the minimum. So, for example, if we have text that is 12pt, with headers that are 16pt and 14pt, we want to make sure that all of these fonts, once adjusted, can be distinguished from one another.</p>
<p>One thing I glossed over here is that we only perform a font size inflation calculation during reflow <em>if font inflation is enabled for the frame in question</em>. This actually ends up being an important point, because there are certain situations where we want to disable font inflation for certain frames. The exceptional cases where we want to detect a certain (somewhat general) category of web page layout, and <em>disable font</em> <em>inflation</em>, either for individual frames or entire pages, is detailed in the next section.</p>
<h3>Exceptions</h3>
<p>The basic algorithm works really well, but there are still some situations where we want to limit or disable font inflation logic. Together, these situations comprise the bulk of the heuristics Gecko abides by when determining font inflation settings for a given set of frames. Development of the font inflation feature is essentially the refinement of these heuristics. Putting them together, and verifying which ones work well without too drastically impacting the performance of the rendering engine, as well as testing for correctness and general usability has been the goal of the font inflation project for the past 6+ months. Unfortunately, these don&#8217;t all fit very easily into a single area of the code, so it&#8217;s difficult to tell someone to look at the logic in X class on line Y if he/she wants to learn about how the font inflation heuristics work.</p>
<p>In the following sections, a brief summary of the most pressing issues confronting font inflation over the last few months are described. I try to explain these situations as clearly and concisely as possible. In addition, I try to give code references and documentation links that you can look to for more information if you&#8217;d like to see how something was implemented, or perhaps would like to try to fix something that you think is broken with the font inflation algorithm as a whole. That said, keep in mind that only <em>as a whole</em> do these heuristics work to bring you the font inflation feature that is new in Firefox 14.0 and the all-new Firefox for Android (Fennec), so any individual piece may be only one part of the process, or even nonsensical, when taken by itself.</p>
<h4>Small Text Bits</h4>
<p>The most notable (perhaps notorious is a better descriptor) bug we encountered when fine-tuning the heuristics is in what we&#8217;ve come to refer to as &#8220;the New York Times footer case&#8221; (<a title="Bug 706193" href="https://bugzilla.mozilla.org/show_bug.cgi?id=706193">Bug 706193</a>). In this case, the New York Times site was inflated in certain areas (conforming as expected to the basic algorithm), but there was a problem where the algorithm was over-inflating the footer text, and causing the text to wrap &#8211; the text at the bottom of the page with links to different sections of the New York Times.</p>
<div id="attachment_256" class="wp-caption aligncenter" style="width: 254px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2012/07/nytimes.png"><img class="size-medium wp-image-256" title="nytimes" src="http://www.jwir3.com/blog/wp-content/uploads/2012/07/nytimes.png?w=244" alt="NY Times &quot;Footer&quot; bug in action" width="244" height="300" /></a><p class="wp-caption-text">The difference in footer text size versus the article text size was incredibly noticeable, and quite distracting for users.</p></div>
<p>This applies to situations where small bits of text are in the document, and where the layout of the page is dependent on these small bits of text. Usually, site authors may not have explicitly defined a height on these bits, because there wasn&#8217;t previously a possibility that the text could wrap. Once we inflate the size of the text, however, this assumption is no longer valid.</p>
<p>To fix this, we utilize a technique where a threshold value is specified. This threshold is an amount of text for which font inflation is disabled if the threshold is not met. However, we couldn&#8217;t just use a specific amount of text within a block directly. If this were the case, then adjacent blocks within a document that had differing amounts of text would have differing font inflation settings, resulting in possibly strange rendering of text sizes. To better adjust for this, a line threshold was added as part of the fix for this bug. The line threshold works like this &#8211; for each block formatting context, we construct a set of data by scanning the items contained within that block formatting context (BFC). As we scan, we accumulate the text in each of the frames contained in the BFC &#8211; if we find sufficient text that has the same font size for inflation, then we set a bit in the font inflation data structure that enables font inflation for that size font.</p>
<p>An astute reader will realize this sounds a lot like what was described in the &#8220;Basic Algorithm&#8221; section above. In fact, this is the case. Since it&#8217;s such an important aspect of how David rewrote the font inflation code, I consider it part of the &#8220;Basic Algorithm,&#8221; and describe it twice. One thing that I didn&#8217;t explain in detail above, though, was what makes the text amount &#8220;sufficient.&#8221; The preference that was added for controlling this is somewhat unintuitive. The name of the preference is <em>font.size.inflation.lineThreshold</em>, and it controls &#8220;the percentage of a number of lines of text we&#8217;d need to trigger inflation&#8221;<sup><a href="#mxrNote1">8</a></sup>. What that means is that if each of our characters&#8217; widths are equivalent to 1em (most characters aren&#8217;t &#8211; they are usually smaller than this), then a value of 100 for this preference means we&#8217;d need 1 line of 1em-width text to trigger font inflation. Since we know the width and the size of the font for the text, we can determine how much text will fit on a line, based on the em-size of the text. By default, (at the time of this writing), the value for this threshold is 400, which means we need <em>approximately</em> 4 lines of text (under the assumption that all characters are square, which means that we&#8217;ll actually only need slightly under 2 lines of normal text) to trigger font inflation.</p>
<h4>Constrained-Height Blocks</h4>
<p>One of the first caveats to the font inflation algorithm that was recognized by David Baron was that block-level elements that have a constrained height cannot perform font inflation in the same way as blocks with unconstrained heights. The point of font inflation in the first place is to increase readability while discouraging the use of horizontal scrolling. This second part is important in this case, because if we want to avoid horizontal scrolling, then at some point, we&#8217;re always going to have constrained width. This means that as text gets larger, there will be more lines of text, since wrapping will happen more frequently. This is, in large part, due to the fact that the ultimate upper bound on the width, the screen size, remains constant. Thus, since we have more lines of text, we&#8217;re going to grow in the block direction &#8211; i.e. the height of our blocks will grow as font inflation deviates more and more from the original font size.</p>
<p>This issue was addressed in the <a title="Allow minimum font size based on size of frame" href="https://bugzilla.mozilla.org/show_bug.cgi?id=627842">original font inflation bug</a> with a new frame state bit, NS_FRAME_IN_CONSTRAINED_HEIGHT. If the font inflation algorithm detects that a frame has this bit set, it does not enable font inflation for that frame. Interestingly, we&#8217;d also need to handle this case if we were to implement <em>reflow-on-zoom </em>(see the bottom part of note <a href="#note1">1</a> for more details about reflow-on-zoom), so this is a problem that plagues both of the major readability enhancement solutions.</p>
<p>A related, but slightly different bug, had to do with <a title="Bug 708175" href="https://bugzilla.mozilla.org/show_bug.cgi?id=708175">constrained sizes with form controls</a>. This was actually the symptom of a more general case, wherein if a frame was to be inflated, but between that frame and it&#8217;s nearest ancestor font inflation container on the frame tree there was a frame representing a non-inline element with constrained height or width (because these can&#8217;t wrap), then font inflation should not happen on that frame. This sounds complex, but, in reality, it&#8217;s a pretty simple case of determining whether we can actually inflate, based on size restrictions.</p>
<h4>Mobile Sites</h4>
<p>Sites that are already optimized for mobile (e.g. m.twitter.com) likely don&#8217;t need additional inflation, since the web developer already has adjusted the font size to fit on a phone-sized screen. These sites can often be detected by looking for the mobile-specific tag &lt;meta name=&#8221;viewport&#8221;&gt; in the header of the document. However, this was a bit tricky for us, because the code that detects the &lt;meta name=&#8221;viewport&#8221;&gt; tag was in the front-end code of Firefox, rather than in the platform, Gecko. As part of <a title="font inflation not working well on mobile sites" href="https://bugzilla.mozilla.org/show_bug.cgi?id=706198">Bug 706198</a>, we pulled the processing of the &lt;meta name=&#8221;viewport&#8221;&gt; element into Gecko and added two conditions that disable font inflation in what we consider to be &#8220;mobile&#8221; cases.</p>
<p>The first case depends on the default zoom attribute, which corresponds to the <em>initial-scale</em> attribute of the viewport metadata element. What this indicates is how &#8220;zoomed in&#8221; the viewport is initially upon page load. Typically, this value is inferred from other settings (such as when width or height are set) in the viewport metadata, so it&#8217;s not usually specified directly, unless a developer wants to use a specific zoom setting<sup><a href="#operaNote">9</a></sup>. If this default zoom attribute is greater than or equal to 1.0, then we assume that this was set explicitly, or inferred from the width/height being set, which are typically done on mobile-optimized websites. Thus, in this case, we disable font inflation. Similarly, we disable font inflation on sites where the width or height attributes of the viewport meta tag are set to <em>device-width</em>.</p>
<p>There&#8217;s also something somewhat subtle about the logic for this condition &#8211; if the doctype string contains the text &#8220;WML&#8221;, &#8220;WAP&#8221;, or &#8220;Mobile&#8221;, or if the meta tag &lt;meta name=&#8221;handheldFriendly&#8221;&gt; has its content equal to &#8220;true&#8221;, we return early from our viewport metadata processing. Since the defaultZoom in this case is initially set to 1.0, font inflation will be disabled under these conditions as well. The former of these indicates that the page is using either the XHTML Mobile Profile or the Wireless Markup Language<sup><a href="#xhtmlNote">10</a></sup>, and the latter indicates that the site is optimized for mobile using the old AvantGo standard for Palm devices (being phased out now, I believe).</p>
<h4>Lists</h4>
<p><a title="Ordered list numerals are cut off" href="https://bugzilla.mozilla.org/show_bug.cgi?id=758079">Bug 758079</a> shows another, more difficult bug to deal with. Bullets and ordered list numerals are rendered in the space given to either the left (for left to right text) or right (for right to left text) of the list item. Specifically, this ends up being placed in the margins of the block element in which the list is embedded. Unfortunately, this isn&#8217;t associated in the code directly with the list item itself. That means that if the list item is inflated, the space to the left or right (where the bullet/list numeral is rendered) is not inflated. By default, the area we have to render a list numeral or bullet icon is 40px. This normally works fine, but once we start playing with the font size in the rendering engine, we end up with numerals that might be larger than the amount of space we have in which to render the text. In this case, the text gets clipped somewhere before the start of the block element&#8217;s boundary.</p>
<p>Ideally, we&#8217;d solve this problem by linking the thing that constructs the indentation of the list item with the list item itself within the platform. This could be a quite massive change, though, and would require that we significantly reconstruct how we deal with bullets and lists. Instead, we opted for a bit more pragmatic approach: increase the amount of margin space in the event of font inflation. We increase the margin by multiplying the default margin size by the same ratio as the text in the bullet is inflated.</p>
<h4>Incorrect Flow Roots</h4>
<p>As a final exception to the basic algorithm, I&#8217;m going to discuss a problem that we don&#8217;t yet have a solution for: incorrect flow root assignment. Sometimes, we actually don&#8217;t want a table cell or float to be a flow root. It can cause issues like what happens at ycombinator.com when reading comments (<a title="Bug 707195" href="https://bugzilla.mozilla.org/show_bug.cgi?id=707195">Bug 707195</a>):</p>
<div id="attachment_307" class="wp-caption aligncenter" style="width: 190px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2012/07/sjohnson.png"><img class="size-medium wp-image-307" title="ycombinator" src="http://www.jwir3.com/blog/wp-content/uploads/2012/07/sjohnson.png?w=180" alt="Incorrect Flow Roots for Tables" width="180" height="300" /></a><p class="wp-caption-text">Sometimes we don&#8217;t want to make individual table cells flow roots</p></div>
<p>Because some sites utilize tables for layout (indentation in the case of ycombinator.com) rather than for actually displaying tabular data, there exists a problem where the same type of syntactic node is used for two vastly different things. When indentation is controlled by tables by using nested tables, the width of each individual cell gets smaller with each nesting. This causes comments that come later in the thread (and thus are indented more) to be inflated less, and comments that come earlier in the thread to be inflated more, simply due to width restrictions. Because each table cell is an individual font inflation flow root, we can&#8217;t accumulate data across table cells to consistently apply font inflation to the entire set of table cells.</p>
<p>Somehow, we need to add heuristics to determine when a table cell is used for layout, and thus should not be a font inflation flow root, and when it should be a flow root. This isn&#8217;t unique to tables, either. Reddit.com also experiences a similar problem:</p>
<div id="attachment_308" class="wp-caption aligncenter" style="width: 178px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2012/07/sjohnson1.png"><img class="size-medium wp-image-308" title="reddit" src="http://www.jwir3.com/blog/wp-content/uploads/2012/07/sjohnson1.png?w=168" alt="Example image of font inflation on reddit.com" width="168" height="300" /></a><p class="wp-caption-text">Reddit.com has a similar issue with nested div elements</p></div>
<h2>Conclusion</h2>
<p>The all-new Firefox for Android, nicknamed &#8220;Fennec&#8221; or, sometimes, &#8220;Fennec Native&#8221; has shipped. The new readability enhancements described above are included in this version of the software. This is fantastic, and it makes readability for the web on the Android platform better than ever. But, the work isn&#8217;t done yet. Font inflation is a great feature, but it&#8217;s not the only aspect of readability that we want to include in future versions of Firefox. Crisper, clearer fonts are also on the docket, along with an investigation of how reflow on zoom might be incorporated into our product. Another area of current development is <em>Reader Mode</em><sup><a href="#readerMode">11</a></sup>. Reader Mode takes the text content of an article, strips away aspects of the page that might not be relevant to a user while trying to read the article, and places the resulting text onto a more readable background, with an easier-to-read font.</p>
<p>Let&#8217;s face it &#8211; much of what we do on the web is reading. We read news articles to learn about current events. We read recipes in order to prepare that fantastic salmon dinner your boyfriend/girlfriend wants. We read through instructions on how to fix that misfiring cylinder in our car. Almost every web page you visit has some text on it &#8211; it&#8217;s integral to the way we communicate and live. We want to make that experience not just better, but better than any other browser on the market. We literally (no pun intended) want everyone &#8212; from your 102-year-old grandmother to your 4-year-old nephew who just learned to read &#8212; to be able to interpret clear text in Firefox as easily as if they were reading a piece of paper. Our goal is to develop the features that will make you want to use Firefox as your daily browser because of how it renders text.</p>
<h2>Notes and References</h2>
<p><em>A special thanks to Daniel Holbert and David Baron for proofreading this post and pointing out issues they saw. Guys, I really appreciate your help and guidance!</em></p>
<p><a name="note1"></a></p>
<p>[1] This is sometimes called &#8220;text size adjustment,&#8221; or just &#8220;text size adjust.&#8221; <em>Font inflation</em> is the name given to the Gecko implementation of this feature. Note that this is actually different than <a title="Font-size-adjust CSS Property" href="http://www.w3.org/TR/css3-fonts/#propdef-font-size-adjust">font-size-adjust</a>, a CSS property that is used to preserve the <em>aspect value</em> (relative height of lowercase letters as compared to uppercase equivalents). It&#8217;s quite confusing, since both the <a title="Text-size-adjust property definition" href="https://developer.mozilla.org/en/CSS/text-size-adjust">text-size-adjust</a> and font-size-adjust properties exist, and are different. It can also be confused with <em>Reflow on zoom</em>, another technique for increasing readability, which triggers the reflow process when a user double-taps to zoom. The key to this approach is that the user has effectively given us more information about what he/she is interested in, and thus we are able to make that text larger at the expense of the rest of the page (which is outside the viewport). Unfortunately, this approach doesn&#8217;t play nicely with panning after zooming, nor does it work quite right with pinch-to-zoom interfaces. Opera and the Android stock browser use the latter technique for readability, whereas the former is used by Google Chrome, Firefox, and Safari.<a name="reflowNote"></a></p>
<p>[2] <em>Reflow </em>is the process by which frames representing rectangular areas containing the content of a webpage, are laid out (i.e. given a width and height, and x and y locations on the screen) by the rendering engine of a web browser in preparation for display on the screen. Rendering a webpage happens essentially in a set of phases: 1) construction of a data structure representing content (element) tree, 2) parsing and construction of the style data structure, 3) combination of the style data structure and content tree to construct frame (or render) tree, 4) reflow, which includes placing and sizing frames, and 5) Painting/Compositing, which is the process of utilizing the frame tree, content tree, and style structures to produce individually-colored pixels, which are then drawn on the screen. Much of what we call &#8220;layout&#8221; code in Gecko is specifically targeted toward algorithms that create the frame tree and place content within frames during the reflow process. You can see an example of how reflow works (visually) by watching the following video: <a title="Gecko Reflow Visualization" href="http://www.youtube.com/watch?v=ZTnIxIA5KGw">Gecko Reflow Visualization</a>.<a name="iOSTextSizeAdjustRef"></a></p>
<p>[3] Adjusting the Text Size (2011). <em>Safari Web Content Guide</em>, iOS Developer Library. Retrieved 28 June 2012, from <a href="http://developer.apple.com/library/ios/#DOCUMENTATION/AppleApplications/Reference/SafariWebContent/AdjustingtheTextSize/AdjustingtheTextSize.html">http://developer.apple.com/library/ios/#DOCUMENTATION/AppleApplications/Reference/SafariWebContent/AdjustingtheTextSize/AdjustingtheTextSize.html</a><a name="originalFIBug"></a></p>
<p>[4] Font inflation as a feature in Gecko was originally developed under <a title="Allow minimum font size based on size of frame" href="https://bugzilla.mozilla.org/show_bug.cgi?id=627842">Bug 627842</a><a name="originalFIBug"></a>: Allow minimum font size based on size of frame, which landed on mozilla-central on 23 November, 2011. It wasn&#8217;t included in a release until the new Firefox for Android, which happens to be Firefox 14.0.<a name="bfcNote"></a></p>
<p>[5] A container that establishes a new <em>Block Formatting Context</em> is a container inside which individual block frames are laid out vertically (i.e. in the &#8220;block&#8221; direction). A new block formatting context is created with an absolutely positioned frame, a float, a block container that&#8217;s not a block box, and a block box with an overflow setting other than &#8216;visible&#8217;. All of the items in condition 3 establish a new block formatting context, so this condition is somewhat redundant, and serves only so that this can be described in more detail. The visual formatting section of the CSS v2 specification has more information on block formatting contexts at <a href="http://www.w3.org/TR/CSS2/visuren.html#block-formatting">http://www.w3.org/TR/CSS2/visuren.html#block-formatting</a>.<a name="otherConditionsNote"></a></p>
<p>[6] There are a couple of other situations where a font inflation flow root is established. Namely, nsOuterSVGFrame (frames that bound the outermost &lt;svg&gt; element in an SVG document), nsSVGForeignObjectFrame (frames within an SVG document containing <a title="SVG Foreign Object Specification" href="http://www.w3.org/TR/SVG/extend.html">SVG Foreign Objects</a>), nsBoxFrame (frames containing <a title="XUL Box Documentation" href="https://developer.mozilla.org/en/XUL/box">XUL boxes</a>), and nsLeafBoxFrame (a generic class containing logic that is shared by the frames displaying <a title="XUL Tree" href="https://developer.mozilla.org/en/XUL/tree">XUL trees</a>, <a title="XUL Images" href="https://developer.mozilla.org/en/XUL_Tutorial/Adding_Labels_and_Images#Images">XUL images</a>, and <a title="XUL Textbox" href="https://developer.mozilla.org/en/XUL/textbox">XUL text boxes</a>), but these are glossed over since they are reasonably special cases, and aren&#8217;t probably of interest to the reader.<a name="minFontSizeNote"></a></p>
<p>[7] This algorithm might change in the future. Currently, the algorithm has a somewhat flat curve in terms of font differentiation, and we&#8217;d like it to be a bit steeper, so that different font sizes are more readily distinguishable after inflation. See <a title="Bug 777089" href="https://bugzilla.mozilla.org/show_bug.cgi?id=777089">Bug 777089</a> for more information.<a name="mxrNote1"></a></p>
<p>[8]  <a title="Mozilla HG Reference Source Code Link" href="http://hg.mozilla.org/mozilla-central/file/30dce13b71d0/modules/libpref/src/init/all.js#l1654">http://hg.mozilla.org/mozilla-central/file/30dce13b71d0/modules/libpref/src/init/all.js#l1654</a><a name="operaNote"></a></p>
<p>[9] Bovens, Andreas (2011). An Introduction to meta viewport and @viewport. Retrieved June 28, 2012, from <a title="An Introduction to meta viewport and @viewport" href="http://dev.opera.com/articles/view/an-introduction-to-meta-viewport-and-viewport/">http://dev.opera.com/articles/view/an-introduction-to-meta-viewport-and-viewport/</a>.<a name="xhtmlNote"></a></p>
<p>[10] XHTML Mobile Profile. <em>Wikipedia: The Free Encyclopedia</em>. Retrieved June 28, 2012, from <a title="XHTML Mobile Profile" href="http://en.wikipedia.org/wiki/XHTML_Mobile_Profile">http://en.wikipedia.org/wiki/XHTML_Mobile_Profile.</a><a name="readerMode"></a></p>
<p>[11] Rocha, Lucas (2012). <em>Reader Mode in Firefox Mobile</em>. Retrieved June 29, 2012, from <a title="Reader Mode in Firefox Mobile" href="http://lucasr.org/2012/06/21/reader-mode-in-firefox-mobile/">http://lucasr.org/2012/06/21/reader-mode-in-firefox-mobile/.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jwir3.com/blog/2012/07/30/font-inflation-fennec-and-you/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Foxes, Monsters, and Dinosaurs, Oh My!</title>
		<link>http://www.jwir3.com/blog/2011/08/31/foxes-monsters-and-dinosaurs-oh-my/</link>
		<comments>http://www.jwir3.com/blog/2011/08/31/foxes-monsters-and-dinosaurs-oh-my/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 16:58:55 +0000</pubDate>
		<dc:creator>jwir3</dc:creator>
				<category><![CDATA[California]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[browsing]]></category>
		<category><![CDATA[california]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[dinosaurs]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[mountain view]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[travel]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://jwir3.wordpress.com/?p=72</guid>
		<description><![CDATA[During June and July, I was out in Mountain View, CA, at the Mozilla Corporation (and Foundation) headquarters, learning all I could about the process of creating Mozilla products. In June of this year, I chose to leave General Dynamics Advanced Information Systems to take a position as a Platform Engineer at Mozilla. I&#8217;ve been [...]]]></description>
				<content:encoded><![CDATA[<p>During June and July, I was out in Mountain View, CA, at the Mozilla Corporation (and Foundation) headquarters, learning all I could about the process of creating Mozilla products. In June of this year, I chose to leave General Dynamics Advanced Information Systems to take a position as a Platform Engineer at Mozilla. I&#8217;ve been looking for a different position for a while now, as I&#8217;ve felt that defense contracting just doesn&#8217;t suit me. With my love of free and open source software, Mozilla seemed like it could be a dream come true. So far, it seems to be exceeding even my wildest dreams.</p>
<p>Imagine a place where the smartest people get together to discuss and work on issues about which they are passionate, coaxing thoughtful insight and comment from one another to create new things that previously could never have been imagined. Academia, you say? Perhaps. But now imagine that place where the things you build are used by 500 million people worldwide, and where the politics are minimalistic compared to Academia. Mozilla fits this bill. There are quirks, for sure, no company or organization is completely without politics and difficulties. But, everyone in the company is so <em>driven</em> to make the user front and center that it&#8217;s difficult to imagine a product coming out of this environment that wasn&#8217;t absolutely awesome.</p>
<div id="attachment_78" class="wp-caption alignleft" style="width: 310px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2011/07/mozilla-godzilla.jpg"><img class="size-medium wp-image-78" title="Mozilla-Godzilla" src="http://www.jwir3.com/blog/wp-content/uploads/2011/07/mozilla-godzilla.jpg?w=300" alt="Mozilla Office Dinosaur Statue" width="300" height="262" /></a><p class="wp-caption-text">The Dinosaur Statue In the Main Lobby</p></div>
<p>Probably the burning question on your mind is&#8230; &#8216;What&#8217;s it like working for Mozilla?&#8217; It&#8217;s fantastic, that&#8217;s for sure. Other than that, it&#8217;s difficult to describe, so I thought I&#8217;d show some pictures. The first thing I noticed (when I originally came for the interview) was the cool dinosaur statue in the main lobby of the office (pictured to the left). Now, if you&#8217;re wondering why the dinosaur statue is there at all, you should probably be advised that the dinosaur logo has been used by Mozilla long before it was an open source company (hint: Firefox actually used to be called by the name &#8216;Netscape Navigator&#8217;). The dinosaur logo came about after the Netscape team chose the name &#8216;Mozilla&#8217;, a concatenation of &#8216;Mosaic&#8217; (the leading browser at the time) and &#8216;Killer&#8217;, as a codename for the Netscape Navigator browser[<a href="#firstReference">1</a>]. The dinosaur was used as part of a logo because of the similarity of the name &#8216;Mozilla&#8217; and &#8216;Godzilla&#8217;. Unfortunately, this has led to some less-than-informed commentary on Mozilla being &#8216;The Godzilla of Search Engines&#8217; &#8211; see <a title="Jono's blog post" href="http://www.evilbrainjono.net/blog?tag=tv_makes_you_stupid&amp;showcomments=false">Jono&#8217;s Blog post</a> about this if you&#8217;d like a laugh.</p>
<p>I have to say, the office in Mountain View is pretty cool. Mozilla runs part of the 2nd floor, all of the 3rd floor, and half of the 4th floor. All of the conference rooms on the 3rd floor are named alphabetically after internet memes, such as &#8216;Get to Da Choppa&#8217;, &#8216;Rickroll&#8217;, &#8216;ICANHAZCHEEZBURGER&#8217; or &#8216;Keyboard Cat&#8217;.</p>
<div id="attachment_82" class="wp-caption alignright" style="width: 310px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2011/08/camera-photos-056.jpg"><img class="size-medium wp-image-82" title="ICANHAZCHEEZBURGER Room" src="http://www.jwir3.com/blog/wp-content/uploads/2011/08/camera-photos-056.jpg?w=300" alt="The 'ICANHAZCHEEZBURGER' Conference Room" width="300" height="225" /></a><p class="wp-caption-text">The &#039;ICANHAZCHEEZBURGER&#039; Conference Room</p></div>
<p>The major conference rooms are named after rooms in the Starship Enterprise: Warp Core, Sickbay, and The Bridge being some of these. This may seem pretty geeky to you, but how many people can say they are going to have a meeting in the Warp Core, or The Bridge?</p>
<p>Then there&#8217;s my all-time favorite, probably the favorite of many others as well, the lounge. Sticking with the Star Trek theme, the large room toward the front of the office space is aptly named &#8216;Ten Forward&#8217;. The coolest part about this particular room is not that it&#8217;s named after a Star Trek lounge (see<a title="Memory Alpha" href="http://memory-alpha.org/wiki/Ten_Forward"> Memory Alpha</a> for an explanation of Ten Forward, if you don&#8217;t know what it is), but that it actually <em>looks a lot like </em>Ten Forward from Star Trek: The Next Generation. I know it&#8217;s difficult to tell, given that I took an image from the left side facing toward the bar, whereas the image on the right is from the right side facing the bar, but I definitely got the feeling while I was there that this layout was entirely meant to remind one of the Starship Enterprise.</p>
<table align="center">
<tbody>
<tr>
<td>
<p><div id="attachment_84" class="wp-caption alignnone" style="width: 310px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2011/08/ten-forward-left-side.jpg"><img class="size-medium wp-image-84 " title="Mozilla-Ten-Forward" src="http://www.jwir3.com/blog/wp-content/uploads/2011/08/ten-forward-left-side.jpg?w=300" alt="Mozilla's Version of Ten Forward" width="300" height="225" /></a><p class="wp-caption-text">Mozilla&#039;s Version of Ten Forward</p></div></td>
<td>
<p><div id="attachment_86" class="wp-caption alignright" style="width: 310px"><a href="http://www.jwir3.com/blog/wp-content/uploads/2011/08/ten-forward1.jpg"><img class="size-medium wp-image-86" title="ten-forward" src="http://www.jwir3.com/blog/wp-content/uploads/2011/08/ten-forward1.jpg?w=300" alt="Ten Forward on the NCC-1701D" width="300" height="229" /></a><p class="wp-caption-text">Ten Forward on the NCC-1701D</p></div></td>
</tr>
</tbody>
</table>
<p>There&#8217;s definitely an atmosphere of fun. I&#8217;ve never before seen so many Firefox logos. There&#8217;s even one made from Legos!</p>
<p>All throughout the office space, there&#8217;s the feeling that you&#8217;re in a place where cool things happen. There&#8217;s a lot of pride taken in the end product, and in the fact that the users are front and center when designing the product. I can honestly say I&#8217;ve never seen so many people (outside of Google or Walmart, but those are different stories) who are genuinely excited to be in the office working. I really got the impression that the folks at Mozilla are dedicated to furthering the web, whether it be through the development of a stable, user-friendly, feature-rich, free (as in freedom) browser or email client, or simply through furthering the knowledge that one has gained in technical endeavors and relaying that to others. I am excited to be a part of this world, and hopefully someday I&#8217;ll be able to describe to younger generations of software developers just what it was like to have the freedom to develop in such an environment.</p>
<p><a name="firstReference"></a><br />
[1] http://www.nczonline.net/blog/2010/01/12/history-of-the-user-agent-string/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jwir3.com/blog/2011/08/31/foxes-monsters-and-dinosaurs-oh-my/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
