Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

redscull

macrumors 6502a
Jul 1, 2010
849
832
Texas
Your solution is not a good idea for a number of reasons.

The point of a mode like Incognito is to create a sandboxed environment.

It might also be possible to trick such a "flimsy" mechanism.

I don't care how well versed you are in development. If iOS has this issue, but no other platform does - Apple has a problem.

You cannot describe this as a bug. Incognito* mode is documented as functioning in this way. If people don't read what they're using, it's not a bug.
You can get semantic on the word "bug" if you like. It shows your inexperience as a developer (if you even are one). When something works incorrectly vs. intent, it is a bug. Documenting the shortcoming doesn't change that. At the very least, it is a feature design bug, even if you refuse to acknowledge it as an engineering bug.

And your reasons are non-sensical. The bug is how incognito searches are accidentally/unintentionally shown in normal mode. That is easily fixed with no downside whatsoever.

The fact that local storage data can't be truly sandboxed is not the concern. But you're right, there is also no fix for that except to avoid using local storage at all when incognito (you could use session-based local storage, but that wouldn't guarantee the data to disappear by when you'd expect it to). Furthermore, that local storage can't be sandboxed is common across all browsers on all platforms; it is not specific to iOS.

The issue here is how Google specifically is utilizing local storage. They are saving data to local storage while incognito and then reading those same values while not incognito. Pretty straightforward flaw. Pretty trivial fix.
 

adam044

macrumors 65816
Jan 24, 2012
1,095
10
Boston
Well it's always done this. It's not saving web history it's just saving searches and if you tell google to not save searches it doesn't do it.

So there I was the first to discover it MONTHS AGO
 

Daveoc64

macrumors 601
Jan 16, 2008
4,075
95
Bristol, UK
The issue here is how Google specifically is utilizing local storage. They are saving data to local storage while incognito and then reading those same values while not incognito. Pretty straightforward flaw. Pretty trivial fix.

Where "they" here is referring to a website.

You have to remember that this could just as easily apply to any search engine or any site for that matter.
 

tbrinkma

macrumors 68000
Apr 24, 2006
1,651
93
Where "they" here is referring to a website.

You have to remember that this could just as easily apply to any search engine or any site for that matter.

Actually, "they" here is referring to the browser reading/writing data from/to the local storage store. Depending what code the webpage includes, it may or may not communicate this data with the website, but it does not have to for the client-side storage to be useful.

Of course, the 'incognito-' prefix fix isn't *quite* the right way to go about it, since knowledge of that would enable a site to request a piece of data utilizing the publicly known prefix. Instead, you use a prefix generated as a hash of some hardware identifier unique to each phone. (That's a pretty common method used to protect browsers' various *other* config/data stores, so that an attacker can't simply point to one of those files in order to do something malicious.)
 

ValSalva

macrumors 68040
Jun 26, 2009
3,783
259
Burpelson AFB
I definitely don't trust Google as much as I feel I did. Back when Google were really taking off, they were known for a genuinely good search engine. They were much, much smaller back then, compared to how they are now.

And yet their searches these days are dominated with Google adwords, and their featured adverts. All money making machines that they never had way-back-when, a time when arguably they needed more money. It just seems like they've lost their roots a little, and it's disappointing.

But then I try using other search engines on my computer such as Bing, and it just feels wrong. Nothing against Bing, but I just can't bring myself to 'Bing' my question.

Maybe I'm alone in this sentiment … but I'm worried it's only a matter of time until a huge Google privacy scandal is revealed.

I don't find Bing to be all that great. I try to use DuckDuckGo as much as I can. Google is better though :(
 

Tamagotchi

macrumors 6502
Jun 13, 2013
369
412
At least they offer their browser alternative on other platforms. Where is safari elsewhere? O, yes..
 

SuperMatt

Suspended
Mar 28, 2002
1,569
8,281
Clearly it's a conspiracy by Google. It couldn't possibly actually be a "flaw" of iOS.:rolleyes:

If you can't get your private browsing to work right, you should not advertise it as a feature. Blaming the OS maker because you can't figure out a way to implement your feature is not a reasonable excuse.
 

grundoon

macrumors member
Feb 2, 2013
92
46
I wouldn't be so quick to say "Safari is able to do it." Simply due to the fact Apple doesn't have to follow its own submission process, and their apps can have certain privileges that third-parties cannot.

Try this modified version of the above steps:

- Open an Incognito window
- Navigate to bing.com
- Enter a search term and hit enter
- Open a non-Incognito window
- Navigate to bing.com
- Tap the search box on the page and NOT see Incognito searches

(If needed, go ahead perform additional steps to convince yourself that bing.com will indeed cache and display the search term between two non-Incognito windows.)

See the difference? We're still using Chrome. It's Google and Google alone, as easily demonstrated.
 

samcraig

macrumors P6
Jun 22, 2009
16,779
41,982
USA
If you can't get your private browsing to work right, you should not advertise it as a feature. Blaming the OS maker because you can't figure out a way to implement your feature is not a reasonable excuse.

LOL. Ok. Apple, Samsung, Google, etc - they never release software that they themselves never acknowledge has flaws.

Yes - they should have had better QA. But not knowing personally how they developed or tested the App before it's release or if this "flaw" is more complicated than it appears to be - I'm not going to scream how Google is trying to screw everyone over and did it either on purpose or is making Apple the fall guy.

p.s. You know blame is a funny word here. One person can see a company blaming the other. Another person can see a company responding to a query as to why something glitched and providing an accurate answer.
 

FlunkedFlank

macrumors member
Sep 21, 2012
69
23
Seems a little unfair to say that this isn't a problem in Safari because Safari doesn't support simultaneous regular and private tabs like Chrome does. I suppose this might be one reason why. Safari probably blows away all HTML 5 storage when switching, or swaps in a separate storage cache temporarily. Even if Chrome could do that it wouldn't help since it would need to have two separate but simultaneous pools. (Barring a way to share the pool with hidden keys somehow.)
 

Daveoc64

macrumors 601
Jan 16, 2008
4,075
95
Bristol, UK
See the difference? We're still using Chrome. It's Google and Google alone, as easily demonstrated.

You don't understand the problem.

HTML 5 Local Storage allows websites to store information in your browser.

Google Search (i.e. the page you go to on Google.com) stores your previous searches using the Local Storage feature.

Bing clearly does not, but that doesn't mean that other sites are not affected. Any other website that uses Local Storage (including MacRumors) will have the same problem - it just might not be as visible to the user. I have no idea what MacRumors is using Local Storage for, but it's there.

Yes - they should have had better QA.

I don't understand why people are saying this.

Google posted a support article outlining the problem in June 2012 when Chrome for iOS launched. If it was a QA problem, they wouldn't have needed to do that.
 
Last edited:

Parasprite

macrumors 68000
Mar 5, 2013
1,698
144
Didn't we already know this? I mean the asterisk wasn't there just for decoration...
 

grundoon

macrumors member
Feb 2, 2013
92
46
You don't understand the problem.

I understand the technical side of the situation quite well, thank you.

The actual problem at hand is that the end-user has an expectation that Private ("Incognito") means Private. No cookies, no history, no trace whatsoever. An average user who explicitly uses an Incognito tab, then explicitly closes that tab when done, has reasonable expectation that the next person who touches that device cannot still see activity from the previous session.

Sure, a support note that "retracts" elements of the implied privacy covers them legally. But it was from day one a conscious design decision to push to local storage, even if from an Incognito tab - hence Google and Google alone. It is neither necessary to provide search functionality, nor by any stretch a requirement of the running platform.
 

Sappharad

macrumors regular
Mar 21, 2009
107
108
Try this modified version of the above steps:

- Open an Incognito window
- Navigate to bing.com
- Enter a search term and hit enter
- Open a non-Incognito window
- Navigate to bing.com
- Tap the search box on the page and NOT see Incognito searches

I was able to reproduce these steps in Chrome for iOS. (Original steps did not work for me for some reason.)
Then I decided to try the same steps using iCab Mobile's private browsing mode and turning it off. iCab did not have the problem, the senrch results were not retained. So how is another third party browser able to do it correctly if Chrome can't?

I guess my point is that if it's working in another third party browser then google can't blame the problem on Apple's sandbox policy. There is obviously a way to handle it correctly.
 

JAT

macrumors 603
Dec 31, 2001
6,473
124
Mpls, MN
I blame everyone involved.

Why?

Cuz it's a lot more fun, that's why.

Damn you, everyone connected with this. All out to make my life fractionally more difficult. I hate you all.
But you haven't fixed it either. So it's your fault. :p

I don't use Chrome on iOS, because I put it on a home page I don't like to go to. So, I'm safe.
 

Taz Mangus

macrumors 604
Mar 10, 2011
7,815
3,504
Clearly it's a conspiracy by Google. It couldn't possibly actually be a "flaw" of iOS.:rolleyes:

And of course we should believe Google because they say so :rolleyes:

I couldn't care less if Chrome dried up and blew away. See what I did there.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.