# Thursday, 05 February 2009

I was testing a site on various other browsers today, and I needed the browser to present itself as FRESH to the web application, so with IE8 I used InPrivate blocking, and on Chrome I used Incognito mode. Both essentially works the same way, all cookies and browsing history information are discarded after the session, and no previous cookies are carried into the session.

Then I realized that all my ASP.Net Linkbuttons, and other places that required the Javascript method __doPostBack weren't working in Chrome's Incognito mode. Looking at the page's source that got sent to the browser I saw that the whole script definition chunk for the function was missing from the page. It was as if ASP.Net decided NOT to push the script chunk down to Chrome. But it was working fine in normal Chrome browsing.

There was no way this was a problem with Chrome or ASP.Net, but rather with Incognito mode itself. So I loaded up Fiddler and looked at the Requests coming out from Chrome Incognito mode. Then I realized that when in Incognito mode Chrome wasn't sending the UserAgent header that identified what browser was hitting the server.

Because of this ASP.Net could not determine if the client could properly process the script blocks, and thus decided to totally discard the delivery of the script chunk to the client. Of course, without said script chunk a lot of other things were affected.

After doing some poking around I found out that version of Google Chrome seems to be the one afflicted with this issue. As this bug also stopped people from getting into Facebook and some Google sites, they quickly released an updated build which fixes the problem. So update Chrome by going into Help->About->Update Now if you are having problems browsing some sites in incognito mode.

Though the automatic update system (which runs in the background even when Chome isn't running) SHOULD have updated the browser by now. But.. if you're having problems just update the browser and see what happens.

Note that you can Post As GUEST as well.
blog comments powered by Disqus