548 points · by jlongster · 11y ago · 324 comments
Apparently this is a two year old bug: http://www.theverge.com/2013/10/3/4797968/chrome-for-ios-inc...
Long story short, Google saves all searches in HTML5 local storage and this is shared between regular and incognito windows. Perhaps DuckDuckGo is a configurable Firefox option. (EDIT: yes, it is. Goodbye, Chrome.)
From the perspective of the underlying web engine, we're two separate browsers.
In my humble understanding Firefox is just a Safari skin, crippled by the lack of JIT.
There is no such thing as a Safari skin. Instead we use a low level component called the WKWebView, which is a bare-bones minimal API to 'show web pages'. On top of that we have built a browser.
This is exactly what Apple has done with Safari.
The only common component between Firefox and Safari is the WKWebView. Everything on top of that, like the UI, bookmark management, history, sync is unique and implement in different ways by each browser.
Regarding JIT .. the WKWebView exposes the same fast JIT as Safari uses. Run a benchmark. We are as fast as Safari or any other app that uses the WKWebView underneath.
All these things might be completely different between Firefox and Safari on iOS. Saying that Firefox on iOS is not "a real browser" is an understatement.
Also there is ZERO data sharing between Firefox and Safari. Both apps run sandboxed and cannot see eachothers data.
Both have their own unique and private bookmark, history, cookie, password management.
I was think about the same recently. You put a lot of faith in incognito mode working as you expect it to on the 'edge' cases (e.g. third party plugins, cache, cookies) but this seems like it does not work even for a pretty straightforward case.
[I use edge there pretty liberally, even those cases are pretty far away from the edge]
Any website using HTML5 local storage could exploit the iOS problem.
Of course, there might be a difference between UIWebView and WKWebView, and I don't know which Firefox is using.
That link also lists a hand full of Radars filed which are preventing the iOS Chrome team from moving to WKWebView.
Looks like I'll be giving Safari another try.
You can actually find in page by typing a keyword in the address bar. There will be an "On this page" section at the bottom of the suggestion list, which you can tap in and jump through all matches. If I remembered correctly, this feature has been available since iOS 5 or so (which were a little bit clearer back then, since search box was separate from the address box).
So you downvote me? Nice. #not
Webkit browsers currently account for a 91.6% share [1] of mobile (phone/tablet) browsing. Ironic as it sounds, the only hope right now for mobile web standards is Microsoft. They're the only vendor that stands in the way of the idea that Webkit should simply become the de-facto standard for the web, in place of specs worked out in collaboration with other browser vendors through the W3C.
[1]: https://www.netmarketshare.com/browser-market-share.aspx?qpr...
Correction: Firefox on Android ships with Gecko, my mistake.
It's an indirect way of getting more people to use Firefox (which promotes standards) over another option, but it's certainly better than telling iOS users "If you want synced stuff, switch to Chrome or Safari."
FF on Android is a true FF build, you can run most addons on it and it uses Gecko as their rendering engine.
The problem with iOS is that we are going back to a single eco-system when it comes to rendering engines this means that everyone needs to get inline with how Apple thinks that the web should work which we had to suffer through before when Microsoft polluted the web with their own interpretations and "proprietary" standards.
Also from a security POV this is pretty damn awful if there is a vulnerability in WebKit/iOS Webview or however Apple wants to call it, there's a good chance that every browser will be vulnerable this means that until Apple can patch it out there is no alternative non-vulnerable browser for the iOS ecosystem.
This pretty much reminds me of the late 90's early 2000's where there were a billion "alternative" browsers like NeoBrowser and the like that were nothing more than a reskin of Internet Explorer, the fact that you can't push out your own low-level components to one of the most popular mobile platforms in the western world is pretty god damn sad.
I for one would have actually loved it if Mozilla and Google would've make a stand against Apple and say if you don't allow us to build our browsers like we want too we're not going to be on your system. But sadly because Apple users are the more "important" (as they have more money to spend) than alternative platforms it doesn't seem likely to happen.
Continuing to take that stand won't suddenly make change happen. It hasn't worked and it won't work.
Mozilla still agrees that it's BS that we can't have Gecko on iOS. But we have to do something different.
Firefox on Android is as "proper" as it gets. It uses Gecko, not Webkit.
edit: Android Browser uses Blink now, but I'm not sure if all 4.0 versions do. Blink could be higher than 30% depending.
Servo and Gecko are both blocked.
This can be seen on the following shot: http://i.imgur.com/faxbdBK.png from the iOS Review Guidelines located at: https://developer.apple.com/app-store/review/guidelines/
This is Apple with its silly policies preventing competition again. I have no idea how a lawsuit against these practices has not happened. In the meanwhile you can vote with your wallet and use some other operating system and/or donate to efforts that fight against such practices such as EFF, Mozilla and others.
We can have a better mobile internet than what Apple offers...
Apple has a policy that prevents things 'becoming' malware later in life.
There is a fairly rigorous review board (at least for initial application submissions) which check the quality of code but also it's intent. It would undermine that whole process if Apple just allowed you to alter the function of an application after it had been installed by the end user.
Personally, I have used iOS and Android, and I find the play store to be riddled with the CNET/Softpedia style applications that look dubious even if they're not. And as much as I hate online ads I'm definitely not willing to allow laxer rules on my phone than it currently has.
I'm not saying that android can't be secure, I'm just pointing out that because "Android does it" in regards to security, is not a valid reason to go ahead.
My phone runs my life, I don't care if it's a walled garden, just that it's a secure walled garden.
The review board process there is not to the satisfaction of some people. For example, if you create an application and another people want your application but the review board for any reason (real or not) doesn't like it, then you can't distribute it. For example, for some time Apple disallowed applications that duplicated functionality from core apps. So you could not ship a new mail client or a new music player. Yes, those restrictions are gone but for a while they were real. For some months they also restricted the app store for applications developed with their own SDK, if the app was not Obj-C/Cocoa then it could not be accepted. This is also gone but for at least three or four months lots of developers were stranded.
Why am I telling you that? Because this is just to prove that sometimes Apple makes mistakes. Sometimes, their rules are not in the interest of the user. Sometimes, they backpedal and make it right, sometimes they don't. Since you don't have a way to distribute content outside their walled store, you're left without any recourse. The phone is not yours, its theirs.
Now, back to the topic. Browser add-ons also pass through a rigorous review process. Currently, Firefox extensions need to be reviewed and signed before they can be installed on Firefox Stable.
Apple could allow new rendering engines and new javascript engines. Microsoft was sued for similar reasons. Some people are so displeased with Apple WebKit that they are claiming it to be the new IE as can be seen in http://arstechnica.com/information-technology/2015/06/op-ed-...
Having more rendering engines and JS engines would not make iOS less secure. Having add-ons in Browsers would not make iOS less secure since all iOS apps run sandboxed anyway. Also both Chrome and Mozilla have add-on review processess. At Mozilla any open web app or add-on that touches sensitive APIs is reviewed very rigorously. This would not lead to a less secure system but it would probably lead towards more usage of mobile web instead of apps and this goes against Apple strategy and shareholder interest.
The fact they do not allow competition is not good. You should be able to choose what you want to install and from whom.
While I do understand your point about rigorous review for a mobile app, I think that browsers should get special treatment in this regard and allow extensions.
Doesn't seem like they are super-consistent. We're talking mobile web browsers here. Doesn't javascript fit this description?
That said, it can be really fuzzy where the line is between code and data (e.g. spreadsheet formulas).
As far as mobile web browsers go, they're required to use WebKit, so they'd get a pass. (E.g., Chrome uses UIWebKit, but has its own network layer, which made it immune to a bug in iOS's networking layer that cached POST requests.)
“According to Apple, formulas in Numbers and functions in PCalc are OK. So is JavaScript, as many apps embed a Web view or communicate with a server component via JSON. But reading XML files and executing Python code are not OK. Landon Fuller points out the absurdity and wonders about executing Python via JavaScriptCore.”
But after reading chkuendig’s comment (which makes sense), I’m wondering if the above interpretation is completely accurate.
――――――
¹ — http://mjtsai.com/blog/2014/06/12/pythonista-in-app-store-pe...
EDIT: Oh, wait, found it:
http://mjtsai.com/blog/2014/06/12/pythonista-in-app-store-pe...
“So what was the problem Apple had with the previous version? Turns out, they didn’t like the Open in… menu integration I had added in 1.4 because that would allow you to import executable code from external sources. My theory is that this policy is in place to prevent apps that circumvent the App Store, e.g. by offering downloadable games that don’t go through Apple’s review (and revenue chain via in-app purchases).
[…]
I’m sad to see this feature go. It wasn’t just a convenient way to import scripts, it also enabled some pretty interesting automation workflows that could process the contents of pretty much any kind of file you could access on your iOS device.
”(Note: That screenshot on the homepage isn’t really what it looks like on newer versions of iOS. It’s still under very active development; see here². …He should really update the screenshot on the main page though).
――――――
So at some point, I stopped relying on that and just installed Pushbullet to bounce stuff around from my desktop to my phone or to my tablet. That has worked flawlessly.
Syncing logins has never really been something I've bothered with. I'm afraid of someone grabbing my tablet and then having access to all of my emails, message boards, payment stores, etc. All of my devices have LastPass installed, which is how I manage that.
So yeah, this would be a bigger deal for me I suppose if I hadn't already found other solutions for Firefox Mobile's old shortcomings.
This movement towards WebExtensions will take some time and new APIs are being developed as they figure out the needs of the developers. WebExtensions are easier to write and make them cross-platform (Firefox OS, Firefox for Android, Chrome...). It might not be ready now but its a good thing to check out.
I normally run BetterPrivacy too (for long-term storage/flash cookies) but it doesn't seemt o have been updated for the lastest Firefox mobile yet.
https://github.com/mozilla/firefox-ios/search?utf8=%E2%9C%93...
There might be extremely elaborate workarounds possible to get it working anyway: https://bugzilla.mozilla.org/show_bug.cgi?id=1200791
Additionally only Apple's JavaScript engine is allowed to use a JIT compiler.
The only benefit is whatever extra features they might offer, like bookmark synchronization.
This is quite shocking. I wonder how a platform with such policies could be universally accepted and praised by the tech community. Microsoft didn't achieve this level of closedness but become universally hated.
Can you elaborate? I was under the impression that as of iOS 8, if a developer implements WKWebView in place of UIWebView they would have access to Nitro.
I'm not intimately familiar with the iOS API, but I believe that this is no longer the case, courtesy of WKWebView[0], which was released in iOS 8.
0: https://developer.apple.com/library/ios/documentation/WebKit...
> Apps that browse the web must use the iOS WebKit framework and WebKit Javascript
It would require a new set of laws to have anti-trust apply to ecosystems rather than only industrial/sector/field monopolies. At the moment Apple is free to do as they please.
Using something else if is a viable option for most people that currently use Apple products, where it wasn't for many in the case of Windows back then.
Until then, Apple is free to control 100% what comes into their platform.
The same way any other vendor is free to do (e.g. games consoles), when not covered by monopoly laws.
When they reach a size that falls into what the law considers a monopoly, then the game changes, as they have increased responsibilities towards the market.
func createWebview() {
if webView == nil {
assert(configuration != nil, "Create webview can only be called once")
configuration!.userContentController = WKUserContentController()
configuration!.preferences = WKPreferences()
configuration!.preferences.javaScriptCanOpenWindowsAutomatically = false
let webView = WKWebView(frame: CGRectZero, configuration: configuration!)
...https://blog.mozilla.org/blog/2010/07/15/get-firefox-home-on...
https://blog.mozilla.org/services/2012/08/31/retiring-firefo...
Firefox for iOS is not just an experimental project. It's part of our core products now.
Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) FxiOS/1.1 Mobile/13B143 Safari/601.1.46
Default search is Yahoo
It's the same reason all browser UAs start with "Mozilla" even though only one is actually made by Mozilla.
(I work on Firefox for Android and iOS, and even _I_ don't really care which rendering engine it uses. I care that I can trust it, that the UX is excellent, and that I have my data.)
Some would say they're part and parcel, but it's clear now that Mozilla doesn't agree.
You can compile Firefox source code of which 100% of it came from released Firefox versions in Mozilla's HG tree and they won't let you call that "Firefox". Part of why IceWeasel exists is Debian wanted to backport security patches from Firefox releases into an older version (eg. apply security patches from Firefox 4 to Firefox 3.5) for Debian-stable and Mozilla wouldn't let them use the name Firefox if they did that.
Therefore your claim that
> Firefox is the UI chrome and corresponding stack
doesn't match the reality of what Mozilla has done. It seems now Firefox is anything that Mozilla calls Firefox.
What Mozilla will call "Firefox": a wrapper around WkWebView that uses WebKit.
"Firefox", "Mozilla Firefox", "Firefox for ios", and finally it came up 2nd for "Firefox web browser"
Also, Safari doesn't [lack search text function](http://cdn.osxdaily.com/wp-content/uploads/2013/10/find-text...).
We're working on an alternative here https://bugzilla.mozilla.org/show_bug.cgi?id=1164067
- private browsing - tabs management - search suggestions
Apparently all what this version can offers is already available in Safari.
I wish they could sell me Firefox better
After 2+ years, I'm still using Atomic Browser on iPhone + iPad, even though it hasn't been updated in years and now triggers some websites' warning, "You appear to be using an old unsupported version of Firefox".
iCab has been around for a really long time on desktops. Seriously, it existed before even Mac OS X², so it’s no surprise that the dev would carry all that experience over to the iOS version.
――――――
If you don't use Firefox on your desktop, it's just a new skin for Safari.
Where can I select the desired folder or create one ? If I import the Chrome exported bookmarks, all 900 of them are in one list.
(Source: I'm one of the engineers.)
No, I've never met an iOS user that knew that Chrome isn't "Chrome".
The difference between these browsers is not the renderer (which should, ideally, be rendering the same content the same way anyways), but the features on top of the webview. The UI, Password, bookmarks, autofill, and history sync.
So, when are we going to see some progress on web features on iOS then? WebRTC- oh, not allowed. WebP? Nope, not allowed...
I try to use my phone as little as possible because I can't block distractor sites. Currently I default to Safari off using parental restrictions, then I turn it on when I need to search for something, and then turn it off.
But those restrictions won't work for firefox, so it would be in full distraction mode, unless I'm missing a workaround.
(This isn't as restrictive as it sounds. It just makes the web use more conscious and intended)
This interested me so I checked the Firefox support site and supposedly it's an option under "settings->display" but I still don't see it. (https://support.mozilla.org/si/kb/scan-qr-codes-firefox-andr...)
Checked the Firefox support site and apparently you need to install a separate app to enable this (https://support.mozilla.org/en-US/kb/scan-qr-codes-firefox-a...)
After installing the app (https://play.google.com/store/apps/details?id=com.google.zxi...) I do indeed have the option and the box.
Apps start getting annoying to download+install at about the 50MB mark… and are people really going to want ~200MB of their device taken up by something as elementary as a web browser? Don’t forget that a large majority of iOS devices in use today are 16GB models.
s/elementary/fundamental/?
A browser isn't like most other apps -- it's a window into all the things. And don't the stats say that people spend tons of time in their mobile browsers?
Anyway normally this is the kind of trade-off that people get to weigh for themselves. There's nothing wrong with your deciding that it's not worth the 200mb or whatever, but surely you (and Apple) can't speak for everyone who owns an iOS device.
The on-disk size of version 46.0.2490.76 on my marshmallow device is 66.55MB + 11.44MB of app data.
[1] http://www.apkmirror.com/apk/google-inc/chrome/chrome-45-0-2...
Now half of 185MB is still a lot, of course.
https://github.com/mozilla/firefox-ios/search?utf8=&q=WKWebV...
Interesting to note. I downloaded it and checked it for SRI, sub-resource integrity, and it isn't supported. I used my tester https://ejj.io/sri .
It's interesting because no mobile browsers support it yet.. Mobile browsers drag far behind their desktop friends when it comes to security features.
Firefox on iOS can't due to Apple limitations.
Your browser SUPPORTS Sub-Resource Integrity
I can't recommend using a Firefox account to store any private information, to include passwords and browsing history.
JavaScript or not, you either trust the browser vendor, or you do not. If you do not then you shouldn't be using them regardless of the technologic stack.
I think the reason OP points this out is because the old Sync system that Firefox had was much more secure (but unusable by the general public). We know this because we could see how it worked!
If you're using the automatic updating functionality (which the majority of people are) then it absolutely applies. Firefox's source code is available, but if you aren't verifying the source upon each update then that fact is largely irrelevant.
The whole point of OSS is to allow YOU to verify the software, and only then to build it when you're comfortable. If you are skipping the verify step and definitely if you're skipping the build step then the fact that it is OSS adds little to nothing security wise (since the vendor can splice in anything they want).
So even with OSS you often either trust the vendor or you do not.
> I think the reason OP points this out is because the old Sync system that Firefox had was much more secure (but unusable by the general public). We know this because we could see how it worked!
I suspect we're having this discussion simply because people don't equate the automatic updater with JavaScript in their own mind. The reality is that if you trust Mozilla to provide software updates then you can trust them to provide Javascript, after all the software brought down by the updater has far greater system access and can do far greater damage than JS.
But to be fair:
> This reasoning just doesn't apply at all to open source software like Firefox.
This is not true. You can't tell what is actually running on the server side, so the protocol must be able to handle the encryption on the client side and server never able to read the plaintext in the first place, and this is actually problematic for many products out there claiming "oh our code is open source so you can trust us."
In theory we could ship a hotfix that steals those, and still could; we wouldn't need to do it via the FxA content JS, which would only get to see them during account creation.
There is no such thing as perfect security.
That's not really true: I can verify that a piece of software works and does not expose my information, and I can rely on it forever. Someone else can verify it, and if I trust him once (to verify), then I can rely on the software, forever. I can't do that with Mozilla's JavaScript, because they can change it — or be forced to change it — at any time, for one individual or for everyone.
It's a fundamentally different problem.
"Of note, your Dropbox, Google, Microsoft, Yahoo accounts are not secure, because JavaScript"
Mozilla's browser is shipped out to everyone; their JavaScript is served to me every time I use it. A compromised browser could be caught; compromised JavaScript sent one time only to a targeted user is highly unlikely to ever be noticed.
I get my browser via a distribution; it's far less likely than Mozilla and Debian would collaborate to expose all of Debian's users' passwords than that Mozilla would target — or be compelled by law, blackmail or violence to target — a single user or handful of users.
So in that case, how would you securely sync your data using Firefox?
What this has got to do with iOS? I guess people will want to use this to cloud sync their desktop Firefox?