We’re having a problem with Firefox 4 and javascript that references the SCROLLPOSITION asp.net hidden fields. The are really two problems. First, the following fields don’t seem to be present when rendering the page in Firefox 4 (but they are there in IE9, and were presumably there in Firefox 3 since we had no problems then):
<div class="aspNetHidden">
<input type="hidden" name="__SCROLLPOSITIONX" id="__SCROLLPOSITIONX" value="0" />
<input type="hidden" name="__SCROLLPOSITIONY" id="__SCROLLPOSITIONY" value="0" />
</div>
Second, Firefox 4 allows the javascript error that results from referencing the non-existent scroll position elements to kill all other javascript for the entire page. So, Telerik controls stop working, etc.
Anyway, it looks like the solution is to get the hidden fields to properly show up in Firefox 4 (note: other aspNetHidden fields, such as EVENTTARGET and VIEWSTATE, are showing up properly). Is this a BrowserCaps thing? I thought BrowserCaps was done for (we are using .NET 4). We have no .browser files in the folder structure of the web site.
What could be causing the scroll position fields to not show up in Firefox 4? Thanks.
This did turn out to be a browser caps issue. I’m pretty sure that C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\Browsers\firefox.browser needed to be modified to affect 4.x in addition to 3.x. It’s a stupid problem that will keep biting us every time a new browser comes out, so we are trying to come up with a better solution that doesn’t involve playing whack-a-mole with browser files.