potch | 7 years ago | on: The Power of Web Components
potch's comments
potch | 8 years ago | on: Deep-copying in JavaScript
let obj = {a: 1}
function foo(arg) {
return obj === arg;
}
foo(obj) // true
The === operator operates on object not by comparing their value, but by comparing their memory reference [1]. A function argument variable can be reassigned using = in the function body, but that changes which location in memory the reference points to and isn't somehow "proof" of pass-by-value.[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
potch | 8 years ago | on: Firefox 58
Since we're a small team, it's pretty uncommon for a specifically devrel role to open up, but the sibling reply from my teammate callahad is spot-on for how to get involved with Mozilla and Firefox!
potch | 8 years ago | on: Firefox 58
potch | 8 years ago | on: How the Scripto App Became a Fixture of Late-Night Comedy News
potch | 8 years ago | on: Evolution of <img>: Gif without the GIF
potch | 8 years ago | on: Blocking Top-Level Navigations to Data URLs for Firefox 58
I built a test to demonstrate: https://data-uri-test.glitch.me/
potch | 8 years ago | on: Blocking Top-Level Navigations to Data URLs for Firefox 58
potch | 8 years ago | on: Firefox Send: Private, Encrypted File Sharing
Firefox is Mozilla's flagship, and the largest by far way in which we achieve our mission, but our goal is a healthy and open internet.
Additionally, this is a great way to determine whether something like this would work well as an in-browser feature, and we've built it in such a way that it works in more browsers than just Firefox on day one.
potch | 8 years ago | on: Zilla Slab: A common language through a shared font
potch | 8 years ago | on: Firefox tracks users with Google Analytics in the add-on settings
The "Get Add-ons" view in Firefox is an iframe to a page hosted by addons.mozilla.org. AMO, as all Mozilla sites, use GA to collect aggregate visitor statistics. We negotiated a special contract with Google [1] to only collect a subset of data and that that data is only used for statistical purposes.
Google Analytics is only loaded when this view is loaded, and is not otherwise "inside" Firefox. I filed an issue [2] to make sure that our privacy policy is linked from the Get Add-ons view so users can be better informed.
Mozilla tries to walk a very thin wire to ensure that we have the data we need to make sure our products are working properly without being intrusive, and to let concerned users opt-out of even that baseline data collection.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=697436#c14 [2] https://github.com/mozilla/addons-frontend/issues/2789
potch | 8 years ago | on: Firefox tracks users with Google Analytics in the add-on settings
potch | 8 years ago | on: Powerful New Additions to the CSS Grid Inspector in Firefox Nightly
potch | 8 years ago | on: Powerful New Additions to the CSS Grid Inspector in Firefox Nightly
Press Ctrl/Cmd+F to search.
It's not presently possible to search across all files at once, but the Style Editor is one of the tools is due for an update to match the current Debugger tool which has a better interface!
potch | 8 years ago | on: Powerful New Additions to the CSS Grid Inspector in Firefox Nightly
If you've ever tried to use flexbox to align content across multiple rows (like laying out a form with labels), you'd know that it's not a true two-dimensional layout tool. CSS Grid is, and will likely supplant flexbox as a flexbox is merely a one row/column grid.
The inspector is a pretty handy way to see what's going on under the hood, and being able to see the line numbers and named areas is great for visual debugging.
potch | 9 years ago | on: Containers Come to Firefox Test Pilot
potch | 9 years ago | on: How to build the next Trello and sell it for $425M or more
potch | 9 years ago | on: Firefox Gets Better Video Gaming and Warns of Non-Secure Websites
potch | 9 years ago | on: Regressive Web Apps
potch | 10 years ago | on: TiltBrush by Google