Gantt.aspx finally crawl-able in August 2012 CU!

Previous to the August 2012 Cumulative Update, gantt.aspx would generate a browser compatibility error when it was crawled by the search crawler. This has been resolved in the August 2012 CU by removing the browser compatibility restrictions. The issue was that the search crawler identifies itself as Internet Explorer 4 when performing the crawl, which did not meet the previous requirement of IE7 or above for the Gantt control.

Pre-August 2012:

protected override void OnLoad(EventArgs e)
{
	if (!this.IsBrowserSupported())
	{
		throw new SPException(SPResource.GetString("GanttBrowserNotSupported", new object[0]));
	}
	base.OnLoad(e);
	this.RegisterV4Flag();
}

private bool IsBrowserSupported()
{
	HttpBrowserCapabilities browser = this.Context.Request.Browser;
	switch (browser.Browser)
	{
		case "IE":
		return (browser.MajorVersion >= 7);
		case "Firefox":
		return (browser.MajorVersion >= 3);
		case "AppleMAC-Safari":
		return (browser.MajorVersion >= 5);
	}
return false;
}

Post-August 2012:

protected override void OnLoad(EventArgs e)
{
	base.OnLoad(e);
	this.RegisterV4Flag();
}

Trevor Seward is a Microsoft Office Apps and Services MVP who specializes in SharePoint Server administration, hybrid scenarios, and SharePoint Online. He has been working with SharePoint for 16 years from SharePoint 2003 on up, managing environments with terabytes of content for 150,000+ user organizations. Trevor is an author of Deploying SharePoint 2016 and Deploying SharePoint 2019. You can find him on Twitter and in /r/sharepoint.