3 ms·
> I'm not sure if XUL and XPCOM really makes sense the way that it did when it emerged sometime in the history of Firefox (or Mozilla or Netscape - I'm not sure
by jcranmer 8y ago
> I'm not sure if XUL and XPCOM really makes sense the way that it did when it emerged sometime in the history of Firefox (or Mozilla or Netscape - I'm not sure.)
XUL and XPCOM start with Netscape Navigator 6, the bulk of whose code was made open source and would eventually become Firefox (and Thunderbird). So we're talking about stuff that was designed around 1998 and never really updated to track the latter development.
For its time, XUL was really a major departure from HTML. But several of its ideas were eventually implemented in HTML: the Web Components specification originates from an attempt to standardize some of the custom component work in XUL, and the CSS box model explicitly listed the XUL box model as prior work. But, given the influence of the other browser engines in their development, the resulting specifications aren't XUL, and there's important but subtle differences in how they work. And maintaining two very similar but actually different ways to do the same thing is a recipe for bugs and security holes. At the scale of Mozilla, that unused code can be a very fruitful way to hack users' computers--the NSA actually used a vulnerability related to unused features in JS (specifically, E4X) to track Tor users, since Tor was using an out-of-date version of Firefox that wasn't getting security updates.