4 ms·
In Mozilla's case, some of the rationale for including devtools by default is that part of their mission is to make the web accessible to everyone, rather than
by kibwen 10y ago
In Mozilla's case, some of the rationale for including devtools by default is that part of their mission is to make the web accessible to everyone, rather than erect a wall between users and developers (though this does potentially cause some problems). Was Firefox the first browser to make "View Source" a default option in the right-click context menu?
- deleted 10y ago[deleted]
- jeffehobbs 10y agoThis was standard in Netscape 4.x on, if I remember correctly.
- interfixus 10y agoYou do. It was standard in Netscape & IE 2. First thing I used, about 30 seconds into viewing my first webpage ever.
- carussell 10y agoNo. View Source far predates Firefox, which is relatively new with respect to the history of the web. The ideal that the Web shouldn't be write-only is not new, either—it's been around around since the birth of the Web; Tim Berners Lee included features to publish pages in the first browser, WorldWideWeb. The idea of built-in devtools in Firefox also isn't new. Firebug's predecessor DOM Inspector was shipping in Mozilla Application Suite and in Firefox up until Firefox 3. For Firefox 3, the team decided that DOM Inspector's utility to the masses didn't justify its costs. Mozilla Corp was a lot smaller then—150 or so employees. It was a common theme at that time to challenge every part of the browser both because of the QA involved and the ideal of shipping a light, focused product was still something that the team was aiming for. The DOM Inspector code was already mostly self-contained, so it was built and released through addons.mozilla.org as an extension. The main reason the built-in devtools got included in Firefox aren't so much rooted in user-focused principles as it was convenience for the devtools team. Someone might appear in this thread to dispute this (I half expect Rob Campbell to show up), but it's truer than the idealism line. Bundling the new devtools into Firefox gave two advantages for the people working on it: 1. You're automatically given a big install base, i.e., you don't have to convince people to download your extension. 2. Maintaining features as an extension introduces some work that you don't have to deal with if you just shove your code into the mozilla-central codebase. In 2010, extension authoring sucked. If Gecko couldn't do what you needed or browser.js didn't have hooks for you, you just roll those things into the same patch that introduces (or fixes) the feature you're working on. Fun fact: The number of years that Firefox has shipped with a built-in inspector actually outnumbers the years that it was without one. Firefox 3 was the first release that didn't include DOM Inspector. That was 2008. A couple years later the devtools project was announced, and it was slotted to ship in Firefox 4—which ended up delayed for 6 months or so. (If I recall correctly, devtools either ended up still missing the boat, or it shipped with parts turned off because they weren't mature/stable enough yet and they were reenabled within the next few releases after Firefox had switched to the rolling release cycle.) EDIT wrt your comment about no distinction between "developers and users": Firefox Developer Edition's existence is a contradiction
- deleted 10y ago[deleted]
- appleflaxen 10y ago> write-only I think you mean read-only, no?
- berdario 10y agoNo https://en.wikipedia.org/wiki/Write-only_language https://en.wikipedia.org/wiki/Write-only_language in this context it's about having the source code accessible itself, instead of only a binary/bytecode available (or some obfuscated/minified code)
- carussell 10y agoGood response, but as easy as it would be to pretend that this is what I intended all along, intellectual honesty dictates otherwise. Read-only is what I was thinking at the time I wrote it, but I flubbed the words during revision what with all the double negation happening in that sentence. In the world of inspectors on the modern Web, though, the concept of something being write-only is also strongly relevant.
- kibwen 10y ago> Firefox Developer Edition's existence is a contradiction It isn't a contradiction. The only devtools that are in FDE but not in Stable are experimental ones that are on the path to stabilization. It's a testbed, not an enclave.
- irrational 10y agoI don't know which browser first added View Source, but I know it has been there since at least 1995.
- hobarrera 10y ago> Was Firefox the first browser to make "View Source" a default option in the right-click context menu? Not even close. Netscape had this in the late nineties, IIRC.