 			return;
 		}
 
+        _browserUserAgent = ExternalInterface.call("BrowserHistory.getUserAgent");
+        _browserPlatform = ExternalInterface.call("BrowserHistory.getPlatform");
+        
+        // Unlike browser.js we specifically test for the Firefox browser (vs. other
+        // Gecko or Mozilla derivatives), as the bug fix included in this file that
+        // leverages this flag is very specific to Firefox/Mac.
+        _isFirefoxMac = (_browserUserAgent && _browserPlatform && 
+            _browserUserAgent.indexOf("Firefox") > -1 && _browserPlatform.indexOf("Mac") > -1);
+        
         var pos:int = _url.indexOf('#');
         if (pos == -1 || pos == _url.length - 1)
         {

        
        if (dispatchEvent(new BrowserChangeEvent(BrowserChangeEvent.APPLICATION_URL_CHANGE, false, true, _url, lastURL)))
        {
            ExternalInterface.call("BrowserHistory.setBrowserURL", value, ExternalInterface.objectID);
            dispatchEvent(new BrowserChangeEvent(BrowserChangeEvent.URL_CHANGE, false, false, _url, lastURL));
        }
        else


        _defaultFragment = defaultFragment;
        _url = ExternalInterface.call("BrowserHistory.getURL");
        
		// probably no support in html wrapper
		if (!_url)
		{
