TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Browser Extensions Standard

206 pointsby tbassettoalmost 8 years ago

13 comments

avaeralmost 8 years ago
Hm, if web extensions become a standard, are they really even extensions? Isn&#x27;t that just new web APIs with tweaked security parameters?<p>This is great for security and all, but browser extensions were borne out of the idea that you wanted your browser to do things that the browser vendor didn&#x27;t want, or didn&#x27;t even conceive of.<p>Having it be a standard adds security but strictly limits extensions to things the browser vendors explicitly did conceive of, and stamped their approval on -- sometimes literally, if you&#x27;re going through a curated store. Is that a net win? I&#x27;m not sure.
评论 #14900554 未加载
评论 #14899930 未加载
评论 #14899754 未加载
评论 #14902245 未加载
评论 #14901302 未加载
评论 #14901519 未加载
评论 #14900661 未加载
评论 #14901303 未加载
pimterryalmost 8 years ago
Finally! WebExtensions (<a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;Add-ons&#x2F;WebExtensions" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;Add-ons&#x2F;WebExtensions</a>) have slowly been becoming an adhoc standard for a little while now, but with a few tricky small differences here and there between browsers (e.g. <a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;Add-ons&#x2F;WebExtensions&#x2F;Chrome_incompatibilities" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;Add-ons&#x2F;WebExtensions&#x2F;Ch...</a>). So far it&#x27;s just been Firefox and Edge slowly building a close approximation of Chrome&#x27;s existing API, but a proper standard for this would be great, and make it much clearer what extension developers can _depend_ on, and what&#x27;s optional.<p>Right now you basically write your extension once (probably for Chrome), and then port it to the others, often with various small manual changes or workarounds for incompatibilities. It&#x27;s much better than it used to be, but still pretty inconvenient and error prone.<p>I can see at least a couple of differences with current implementations though, like using the `browserext:&#x2F;&#x2F;` protocol instead of `moz-extension:&#x2F;&#x2F;` and `chrome-extension:&#x2F;&#x2F;`. Does anybody more involved with this have a summary of the differences between this spec and Firefox, Edge and Chrome&#x27;s implementations?
评论 #14902800 未加载
评论 #14901237 未加载
piyush_sonialmost 8 years ago
The only problem which Mozilla didn&#x27;t think about or hasn&#x27;t given much value to is the huge number of add-ons that are going to die or just stop working when they completely switch to WebExtensions (as there&#x27;s just no replacement to the previous API in them). One of the Firefox&#x27;s USPs was its addons which could modify the browser behavior and UI in any manner. It&#x27;s all going to go, and Mozilla is moving closer to becoming a Chrome clone (albeit open).<p>For example, a hugely useful feature for me was TabGroups (Panorama) which they removed from the main browser to make it an external add-on, and even that will stop working soon [0]. Similarly, there are add-ons which modify the browser&#x27;s inbuilt &#x27;Find in page&#x27; behavior in Firefox. Looks like even they are not WebExtension compatible.<p>[0] : <a href="https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;tab-groups-panorama&#x2F;" rel="nofollow">https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;tab-groups-pa...</a>
评论 #14899848 未加载
评论 #14904956 未加载
评论 #14903973 未加载
xg15almost 8 years ago
As a developer, I&#x27;d really like if I could publish an extension as a single archive file and have users load it into whatever (compliant) browser they like - however, the standard doesn&#x27;t seem to actually support this. When it comes to packaging, there is nothing more than a vague acknowledgment:<p><i>Browser extensions MAY be distributed and subsequently loaded as individual files or via a container, such as a .zip archive. Regardless of the packaging format, these containers MUST contain the following: [manifest.json, Necessary JavaScript files (&lt;filename&gt;.js)] [...]<p>Browser vendors MAY require that extension packages include a digital signature. The signature MAY indicate the source of the extension, such as a distribution store or the extension&#x27;s publisher. This aspect of packaging varies by browser, and browser implementers MAY enforce different requirements.</i><p>I guess that&#x27;s a concesson to all the politics surrounding app stores, but it&#x27;s disappointing nevertheless.
评论 #14900675 未加载
评论 #14901193 未加载
martinsbalodisalmost 8 years ago
As a chrome extension developer I really like this. Previously I didn&#x27;t develop extensions for other browsers because I would have to learn another ecosystem. Now it could be pretty simple to do.<p>I also like that all of the asynchronous API calls are returning Promises. Chrome API is still using callbacks. This also means that some time will pass while this is even added to chrome. I expect that there will be a polyfill library that translates the new API calls to legacy browser API calls.
erikrothoffalmost 8 years ago
Sorry for not bringing anything of value to the discussion but: Heck. Yes! I love Firefox for going in this direction. The politics of embracing Chrome&#x27;s extension APIs and standardising upon them must have been astounding.<p>I can&#x27;t wait to port my extension to Firefox. Firefox is seeming like a more and more viable option to Chrome.
mekkkkkkalmost 8 years ago
It would be interesting to have a browser where every part except the engine is an extension. I.e. hotkeys, address field, bookmarks and so on being standardized, replaceble extensions, run in a chromeless window. An infinitely hackable experience. Prepackaged bundles could ship as discreet browsers, for the less techy user.
评论 #14900968 未加载
评论 #14900838 未加载
评论 #14901058 未加载
评论 #14900945 未加载
OliverJonesalmost 8 years ago
Does anybody know whether the Google Chrome &#x2F; Chromium team and the Mozilla team are squarely behind this standardization effort? What about the Apple Safari team?<p>There&#x27;s only one rep from Google in the community group. There don&#x27;t seem to be any from Apple.<p>[1990s paranoia mode] this could be another Microsoft effort to embrace and suffocate [&#x2F;1990s paranoia mode]
评论 #14903169 未加载
评论 #14899878 未加载
评论 #14900250 未加载
评论 #14900332 未加载
gwbas1calmost 8 years ago
Part of the reason why we have different browsers is the variety of features they support. A browser extension inherently is closer to the unique part of browsers that make them different.<p>What value does this really provide? The times that I&#x27;ve gotten into browser extensions were really working with features that are unique to the given browser.
评论 #14900854 未加载
评论 #14903246 未加载
Osmiumalmost 8 years ago
It would be really nice if you could blacklist websites from using extensions in Safari, e.g. banking websites.<p>There are lots of useful extensions out there that would be nice to use, but I&#x27;m concerned if they became compromised (which happens regularly[1]) they might hijack my data.<p>Safari has a great feature that stops extensions from being able to read or transmit anything from websites you visit, which is great, but limits the effectiveness of a lot of ad blockers.<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14888010" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=14888010</a> (just 2 days ago!)
fiboalmost 8 years ago
Looks a really good idea
ahmedfromtunisalmost 8 years ago
But will Google allow this to happen, as it would strip them a huge selling point for Chrome?
评论 #14899896 未加载
评论 #14899785 未加载
Nyroxalmost 8 years ago
Cute idea, but I will eat a broom before this actually becomes reality.
评论 #14899735 未加载
评论 #14899443 未加载
评论 #14899769 未加载