Slashdot Mirror


Mozilla Is Working On a Chrome-Like 'Site Isolation' Feature For Firefox (bleepingcomputer.com)

An anonymous reader writes: "The Mozilla Foundation, the organization behind the Firefox browser, is working on adding a new feature to its browser that is similar to the Site Isolation feature that Google rolled out to Chrome users this year," reports Bleeping Computer. "[Chrome's] Site Isolation works by opening a new browser process for any domain/site the user loads in a tab." The feature has been recently rolled out to 99% of the Chrome userbase. "But Chrome won't be the only browser with Site Isolation," adds Bleeping Computer. "Work on a similar feature also began at Mozilla headquarters back in April, in a plan dubbed Project Fission." Mozilla engineers say that before rolling out Project Fission (Site Isolation), they need to optimize Firefox's memory usage first. Work has now started on shaving off 7MB of RAM from each Firefox content process in order to bring down per-process RAM usage to around 10MB, a limit Mozilla deems sustainable for rolling out Site Isolation.

57 comments

  1. Fission indeed! by Anonymous Coward · · Score: 0

    I'd sometimes like a feature where I can send a fission bomb to the site. No questions asked.

    1. Re:Fission indeed! by jfdavis668 · · Score: 3, Funny

      Going for the nuclear option I see.

    2. Re: Fission indeed! by Z00L00K · · Score: 4, Interesting

      But is it a full site isolation that also separates third party cookies per main site?

      --
      If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    3. Re: Fission indeed! by Anonymous Coward · · Score: 1

      Do you work at the EU or why don't you understand that you can block third party cookies in your browser settings?

    4. Re: Fission indeed! by Anonymous Coward · · Score: 0

      You don't understand. Blocking all third-party cookies is the same. What the GP is talking about is isolating third -party cookies per-origin, as is required by the same-origin policy, but only implemented by the Tor browser, but not at the process level. I made a fork of surf that implements the same-origin policy per-process using webkit1. The API hooks to do it in webkit2 were removed.

      https://github.com/legitparty/surf-isolated

    5. Re: Fission indeed! by markdavis · · Score: 2

      >"But is it a full site isolation that also separates third party cookies per main site?"

      You can already do this in Firefox now...

      https://support.mozilla.org/en...

    6. Re: Fission indeed! by Anonymous Coward · · Score: 0

      Dropping third party cookies is not the same as isolating third party cookies.

      https://bugzilla.mozilla.org/show_bug.cgi?id=1260931

    7. Re: Fission indeed! by Anonymous Coward · · Score: 0

      Firefox already does that, so I don't see why this new feature wouldn't also.

    8. Re: Fission indeed! by Z00L00K · · Score: 1

      Sometimes blocking third party cookies aren't an option since it causes some quirky side effects that only can be rectified by at least simulating that the cookie was set - set cookie, check that it was set and if not set mess up the display with some quite annoying content.

      --
      If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
  2. optimize firefox memory usage?!?!?!? by Anonymous Coward · · Score: 0

    If they optimize firefox and reduce ram usage by ~40% does that mean instead of using 6GB of system ram total firefox will only use ~4GB? That is a win win situation. /rolleyes

    1. Re:optimize firefox memory usage?!?!?!? by Anonymous Coward · · Score: 0

      I'm glad that whatever stopped them from optimizing Firefox's memory usage before is no longer stopping them.

      It must have been quite a tenacious obstacle if they weren't able to get around it until now.

    2. Re: optimize firefox memory usage?!?!?!? by Anonymous Coward · · Score: 1

      For years now, Firefox users have been pointing out that Firefox is a memory hog. Instead of admitting this to be true, we typically saw moz://a fanatics claim that Firefox didn't leak or waste memory, and that the users were describing a problem that didn't exist. Yet despite these memory usage issues supposedly 'not existing', we sure see a lot of release notes entries and other bragging from Firefox's developers about how they've supposedly reduced Firefox's memory usage!

    3. Re: optimize firefox memory usage?!?!?!? by Anonymous Coward · · Score: 0

      What's it like in 2004?

  3. Another way to save memory by dicobalt · · Score: 4, Interesting

    Let users whitelist domains they trust and run those without this feature. Also run advertising domains for the same advertising companies in the same processes. Also kill advertising processes when they cause the browser to exceed a certain amount of performance. There are a lot of web sites out there that are slow because there are dozens upon dozens of advertising relating domains on them.

    1. Re:Another way to save memory by Anonymous Coward · · Score: 0

      Or just plain block advertisement sites if you know who they are?

    2. Re:Another way to save memory by markdavis · · Score: 2

      >"Let users whitelist domains they trust and run those without this feature. "

      And/or, allow users to turn off "Site Isolation" when it isn't wanted, so that it doesn't gobble up all your resources (RAM and CPU) doing it...

      I am all for features, but not all users and computers are the same. I know of several environments where "site isolation" is counter productive.

    3. Re:Another way to save memory by Anonymous Coward · · Score: 0

      That's a configuration setting of when to apply this, and most users aren't capable of trusting or not trusting per-site. At least NoScript et al have user-visible features but Site Isolation is mostly for Spectre-related hacks so how would you decide that per-domain? That's not a sensible approach to user security in the base product, but sure maybe an extension could let that kind of config occur.

    4. Re:Another way to save memory by Anonymous Coward · · Score: 0

      For the first part of your request, try the uMatrix extension. If you revise its initial policy to default-deny, you get a pretty good UI for white-listing individual 1st-3rd party relationships even limiting for specific media types, e.g. separate toggles for CSS, image, other media, scripts, XHR, and iframes. When NoScript went through growing pains with the changes in Firefox, I discovered that uMatrix could replace my previous combination of NoScript and RequestPolicy in a single, coherent extension.

      The one scenario where uMatrix is a pain is when you use some site that does an oauth-like redirect flow and your policy blocks it. The 1st-party relationship for the uMatrix UI changes with each page load, so you get this transient page load that might break because it depends on 3rd party resources you blocked, but in breaking it immediately bounces you back to the original referring page which has its own completely different 1st party policies. You never get to use the convenient matrix UX to edit those transient page policies. Instead, you have to learn how to edit the policy file format that uMatrix also exposes through an advanced policy editor dialog.

    5. Re: Another way to save memory by houghi · · Score: 1

      Use Ip Hole or similar where possible. It will be great on your (guest-)network. You can also installl it on your local linux portable.
      Or if you bind already, add the domains and point them to 0.0.0.0. Plenty of lists out there. I use http://winhelp2002.mvps.org/ho...

      --
      Don't fight for your country, if your country does not fight for you.
    6. Re:Another way to save memory by Agripa · · Score: 1

      And/or, allow users to turn off "Site Isolation" when it isn't wanted, so that it doesn't gobble up all your resources (RAM and CPU) doing it...

      If the browsers and JIT compilers were not such resource hogs due to poor implementation, then this would not be a problem.

  4. started back in April by Anonymous Coward · · Score: 0

    requested by users for over 15 years...

    captcha: stagnant

  5. Open to abuse? by Anonymous Coward · · Score: 1

    Reading on this and the Chrome one, it seems this could be open to easy stealth-abuse by embedding several hundred iframes and slowing down everything.
    Correct me if I am wrong.
    I won't post a link to do it since I don't want to be responsible for some idiot potentially crashing their computer at work, but just duplicate <iframe src="google.tld"></iframe> and replace TLD with all of Googles ones. There's a few dozen of those.
    I'm 99% sure it wouldn't work if you just copy-pasted Google.com since it likely isolates domains globally.

    ADMITTEDLY this is minor since if you have a malicious site, you could do damage by embedding massive resolution images, screamers, window-open bombs, several hundred large GIF / canvas / SVG / DOM animations, etc.

    1. Re:Open to abuse? by Anonymous Coward · · Score: 0

      Lazy forking, hard and soft forking limits and a fork in the pudding might all help.

  6. SW Freedom makes Firefox better than Chrome by jbn-o · · Score: 4, Interesting

    Mozilla Is Working On a Chrome-Like 'Site Isolation' Feature For Firefox

    If Firefox's implementation will be free software (or something that can easily become free software), Firefox will continue to allow anyone to inspect, modify, and share the software even commercially. This leads those who do such work to personally trust the code because they know what's in that code and if they find something they don't like (no matter how that is defined) they can improve the code (or get someone they trust to do this for them) and then they can distribute the improved code to help the community (including non-programmers, the majority of computer users). This also helps explain why other browsers including the Tor Browser derive from free software browsers such as Firefox.

    Chrome, on the other hand, is nonfree software (proprietary, user-subjugating software); software which does not respect a user's software freedom. Therefore we can't determine all of what Chrome does, and if we find out it does something we don't like we have no permission to improve Chrome and distribute an improved version. Proprietary software developers are in a position of power over their users, which is an injustice to the users. So long as Chrome remains unvettable by its users Chrome remains untrustworthy by default. As the Free Software Foundation rightly points out, proprietary software is often malware: "the initial injustice of proprietary software often leads to further injustices: malicious functionalities". Any further assessment of Chrome means looking at proxies for its trustworthiness instead of going to the natural and logical place to make this determination—a program's source code. Then we get to the reputation of its developer—Google—a known participant in international mass surveillance (per Edward Snowden's leaks). It makes no sense to talk about the security and privacy benefits that come from a feature such as site isolation while relying on an inherently untrustworthy program to look out for your interests. You'll note that popularity of a program or its developer doesn't enter into any serious discussion of how much trust to place in these programs, or whether to recommend their use by others.

    1. Re:SW Freedom makes Firefox better than Chrome by Anonymous Coward · · Score: 5, Informative

      While Chrome isn't open source, Chromium is and is nearly identical. Firefox is definitely a more user-friendly project, but they're both open-source projects.

    2. Re:SW Freedom makes Firefox better than Chrome by Anonymous Coward · · Score: 0

      Chrome is based on chromium, so if you want a chrome-like experience you can use chromium.. it mostly is the same but doesn't include some of the features like PDF reader.

    3. Re:SW Freedom makes Firefox better than Chrome by Anonymous Coward · · Score: 0

      Chromium still phones home to Google. Chromium based SRWare Iron strips that out. Used it happily for years before moving back to Firefox myself.

    4. Re:SW Freedom makes Firefox better than Chrome by Kjella · · Score: 0

      SW Freedom makes [mediocre OSS] better than [market leading proprietary product]

      Thanks RMS, we've heard that a few times. Unfortunately in the real world users also care about features, performance, stability, usability and a host of other metrics. I liked your promotion video though.

      --
      Live today, because you never know what tomorrow brings
    5. Re:SW Freedom makes Firefox better than Chrome by Anonymous Coward · · Score: 0

      Please give us some concrete examples where you think OSS is lacking in features, performance, stability and usability and a host of other metrics.

    6. Re:SW Freedom makes Firefox better than Chrome by Anonymous Coward · · Score: 0

      Chrome has always been just as free to me as Firefox. Stop with the silly fanboyism just because Chrome again has a feature that Firefox wants.

    7. Re:SW Freedom makes Firefox better than Chrome by Kjella · · Score: 1

      Please give us some concrete examples where you think OSS is lacking in features, performance, stability and usability and a host of other metrics.

      You do realize that this entire story is about a feature Chrome already got active by default and Firefox barely is on the drawing board right? And it'll probably go like this project from 2010:

      Electrolysis is the working name of a Mozilla project which goal is to re-arch good old single-process Firefox into a multi-process one. The idea's been around for some time now, all the more so since competitors like Google and Microsoft have released multi-process versions of their browsers!

      They finally caught up to Chrome.... in 2017. I'm not saying it's a fair fight, but sometimes OSS is waaaaay behind the times. I was going to use GIMP as another example, but it looks like in 2.10 they finally got 10+ bit support done. That only took 18 years from conception. But don't worry, I'm sure they'll catch up to Photoshop any day now...

      --
      Live today, because you never know what tomorrow brings
    8. Re:SW Freedom makes Firefox better than Chrome by Anonymous Coward · · Score: 0

      Or just wait until Firefox finishes copying all of Chrome's features and UI.

    9. Re:SW Freedom makes Firefox better than Chrome by Anonymous Coward · · Score: 0

      I'll go back to Firefox when they give back the option to white list / disable java script (no, no-script doesn't cut it) and cookies in an easy, comprehensive and coherent way. They, however, seem to be particularly against users actually being in control of their browser and having the experience they want, rather than the one the know-it-all people at Mozilla wants, so I'm not holding my breath.

    10. Re:SW Freedom makes Firefox better than Chrome by Anonymous Coward · · Score: 0

      Chromium's "freedom" is just a calf's freedom. Have a nice trip to the slaughterhouse.

      I just can't get that highly intelligent nerds are so stupid as to not recognize that anti-pattern, over and over again: one entity monopolizing the server side and the client side of things.

    11. Re:SW Freedom makes Firefox better than Chrome by Anonymous Coward · · Score: 0

      Go play in your "real world" with your "real world" mates & don't disturb. We're busy writing free software for those who care.

    12. Re:SW Freedom makes Firefox better than Chrome by AmiMoJo · · Score: 2

      Chromium is open source. It's a pretty good browser, basically Chrome without any Google services.

      Googleâ"a known participant in international mass surveillance (per Edward Snowden's leaks)

      That's now how you spell "victim".

      Seriously, this nonsense about Google being part of some NSA programme needs to stop. There is no evidence, in fact the evidence we have from Snowden shows that the NSA had actually intercepted data from Google from outside their network. And in the wake of that Google has done more than anyone to encrypt communications by default.

      When the Snowden leaks happened we had hardly any crypto between mail servers, for example. HTTPS for reserved for secure sites. Now both are common, because Google pushed them hard.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    13. Re:SW Freedom makes Firefox better than Chrome by Anonymous Coward · · Score: 0

      Just as free as your private data is to Google when you use Chrome.

  7. One more time with feeling: OS level sandbox by goombah99 · · Score: 2

    App makers need to stop assuming they can solve the security problem. They always need to break the veil of their own internal firewalls to gain speed. THey need to assume they will make a mistake. Meanwhile yawning right in front of them is the OS level Sandbox tools (e.g. on macs a DTRACE derivative) that allows the entite process and every child process to live insode a resource restricted firewall and possible even a chroot jail. Limit what ports or what filesystems or what other OS level resource the app can have and the damage it can do if it goes rogue is sharply limited.

    these are really easy to do! they are built into OSX and Linux (maybe windows too? don't know) and they don't seem to affect performance. So why don't apps use these??

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re: One more time with feeling: OS level sandbox by Anonymous Coward · · Score: 0

      I bet they are just SLIGHTLY different on each platform.... so WAY TOO HARD probably

  8. you mean... by Anonymous Coward · · Score: 0

    chrome's new feature is "firefox-like". mozilla's been working on this for quite awhile now.. complete site isolation is the next evolutionary step from 'containers', which debuted in firefox 50 nightly and in amo as a mozilla-developed addon since fx 51.

  9. Re:Users hate Firefox. by Anonymous Coward · · Score: 1

    firefox usage numbers have been decreasing ever since chrome's release. not because of the dumb things mozilla developers and leadership have done, but because they don't trick people into installing it (chrome as 'bundleware' on 'freeware' downloads), con people into thinking they "have to" (gmail, youtube, google banners, etc), don't regularly advertise on national television or in national publications (google and microsoft both do this).

    despite its shortcomings, firefox is still the browser you should be using and the only browser you should be recommending to others. period.

  10. Re:One more time with feeling: OS level sandbox by roca · · Score: 4, Insightful

    Browser ARE using OS-level sandboxing internally.

    Putting the entire browser into a single sandbox is possible but "the damage it can do if it goes rogue is sharply limited" isn't true. A compromised whole-brower-in-a-sandbox can listen to your microphone, watch your webcam, manipulate your online banking, access all your Web passwords, manipulate your Webmail, etc. It (maybe) can't mess with your other desktop applications but for many users that's of very little value.

    Browsers are using those OS-level sandboxing tools to sandbox individual "content" subprocesses. A malicious site might exploit a bug to take over a content process, but those processes have very low rights compared to the main browser process. They typically can't access the filesystem at all, they can't directly access microphones and webcams (only indirectly, triggering browser UI to notify the user), etc.

    Currently in Firefox code from different Web sites can share the same content process, which means a site compromising a content process can usually access content from other Web sites like online banking. This article is about improving Firefox so that is no longer the case.

  11. Only in the "IE for life" USA, mate. by Anonymous Coward · · Score: 0

    This bullshit again. Firefox numbers are not dropping anywhere but in retarded cuntries full of retards where previously IE6 was dominant way longer than it was funny, and now its successor in spirit, Chrome, replaces its role.
    Over here, nobody gives a fuck about Chrome.

    1. Re:Only in the "IE for life" USA, mate. by G00F · · Score: 1

      Statcounter lets you look by country.
      http://gs.statcounter.com/brow...
      http://gs.statcounter.com/brow...
      http://gs.statcounter.com/brow...
      http://gs.statcounter.com/brow...

      Chrome is the dominate browser, with often chrome /webkit based ones coming in 2nd(or the Chinese one...).

      So where is "over here" where no one uses chrome?

      --
      The spirit of resistance to government is so valuable on certain occasions that I wish it to be always kept alive
  12. Is it just me... by corezz · · Score: 1

    ..or does Mozilla seem to wait for Google to do something in Chrome before the react accordingly for Firefox?

  13. Pocket by Anonymous Coward · · Score: 0

    Can Firefox even be considered open source software since the default inclusion of Pocket?

  14. Fix the damn popup blocker by Anonymous Coward · · Score: 0

    IMHO the biggest issue is the same issue as always.... the popup blocker does not block popups!

    Otherwise I'm perfectly happy with FF.

  15. Going to need by AHuxley · · Score: 1

    32 Gb of RAM.

    --
    Domestic spying is now "Benign Information Gathering"
    1. Re:Going to need by Anonymous Coward · · Score: 0

      Well, that will at least offer users migrating from Chrome a familiar experience.

  16. I thought slashdot was a news site by Anonymous Coward · · Score: 0

    How is "Mozilla copies chrome" news?

  17. Re: One more time with feeling: OS level sandbox by Anonymous Coward · · Score: 0

    Is that true even for containers?

  18. Re:One more time with feeling: OS level sandbox by Anonymous Coward · · Score: 0

    Browser ARE using OS-level sandboxing internally.

    That makes zero sense. The whole point of the OS-level sandbox is to contain the app. If part of the app is outside the sandbox it's a threat. Perhaps you mean they are launching child processes with OS-level sandboxing? I do not beleive this is correct. Last I looked they were simply emulating this. If they are then this is good news. But to the extent they can callback to the main app for resources then it's piercing the veil.

    Putting the entire browser into a single sandbox is possible but "the damage it can do if it goes rogue is sharply limited" isn't true. A compromised whole-brower-in-a-sandbox can listen to your microphone, watch your webcam, manipulate your online banking, access all your Web passwords, manipulate your Webmail, etc.

    No it can't access those. that's the point. You can give it permission to do those things if you want but the OS level sandbox can take away any resource it wants too since any /dev device can be restricted from access.

    Browsers are using those OS-level sandboxing tools to sandbox individual "content" subprocesses. A malicious site might exploit a bug to take over a content process, but those processes have very low rights compared to the main browser process. They typically can't access the filesystem at all, they can't directly access microphones and webcams (only indirectly, triggering browser UI to notify the user), etc.

    You say that but obviously they do access the microphones and access files, so they must be able to call processes outside the sandbox. Which isn't a sandbox.

    Moreover your next paragraph also shows how they are not actually isolated from each other and share resources between sites.

    Currently in Firefox code from different Web sites can share the same content process, which means a site compromising a content process can usually access content from other Web sites like online banking. This article is about improving Firefox so that is no longer the case.

    good!

  19. Re: One more time with feeling: OS level sandbox by Anonymous Coward · · Score: 0

    Containers in Firefox are just an add-on to Firefox, which generally means that it's written in Javascript. (And in this case it is) This inherently means that they do not have access to interact with the OS-level sandbox and therefore it does not impact roca's explanation.

  20. Suraj Jain's JavaScript Switcher by tepples · · Score: 1

    I'll go back to Firefox when they give back the option to white list / disable java script (no, no-script doesn't cut it) and cookies in an easy, comprehensive and coherent way.

    Please define "easy, comprehensive and coherent". If you want easy, install the "JavaScript Switcher" extension by Suraj Jain to give each domain an off switch.