Fixed bug #7646: Firefox 3.0 mixes up frames (versions before TYPO3 4.2)
authorIngo Renner <ingo.renner@typo3.org>
Wed, 11 Jun 2008 07:26:50 +0000 (07:26 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Wed, 11 Jun 2008 07:26:50 +0000 (07:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-0@3800 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.alt_menu_functions.inc

index 9863c86..0c08121 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-11  Ingo Renner  <ingo@typo3.org>
+
+       * Fixed bug #7646: Firefox 3.0 mixes up frames (versions before TYPO3 4.2)
+
 2008-06-11  Michael Stucki  <michael@typo3.org>
 
        * (security) Fixed a low-severity Cross Site Scripting issue in fe_adminLib.inc. For details, see http://typo3.org/teams/security/security-bulletins/typo3-20080611-1/ - thanks to Christian Seifert, Jeroen van Iddekinge and Arnd Messer for discovering and reporting this issue.
index af1dd8a..f7ba1e8 100755 (executable)
@@ -198,7 +198,7 @@ class alt_menu_functions {
                                $mIcons[] = '<a href="#" onclick="top.goToModule(\''.$moduleName.'\');'.$onBlur.'return false;" class="c-mainitem" id="'.$moduleCSSId.'">'.$descr3_imageCode.'</a>';
 
                                $JScmd = '
-                                               top.content.location=top.getModuleUrl(top.TS.PATH_typo3+"'.$this->wrapLinkWithAB($link).'"+additionalGetVariables);
+                                               top.document.getElementsByName(\'content\')[0].src=top.getModuleUrl(top.TS.PATH_typo3+"'.$this->wrapLinkWithAB($link).'"+additionalGetVariables);
                                                top.highlightModuleMenuItem("'.$moduleCSSId.'",1);';
                                $mJScmds[] = "case '".$moduleName."': \n ".$JScmd." \n break;";
                        }
@@ -286,7 +286,7 @@ class alt_menu_functions {
 
                                                        // Command for the selector box:
                                                $JScmd = '
-                                                               top.content.location=top.getModuleUrl(top.TS.PATH_typo3+"'.$this->wrapLinkWithAB($link).'"'.$addJS.'+additionalGetVariables);
+                                                               top.document.getElementsByName(\'content\')[0].src=top.getModuleUrl(top.TS.PATH_typo3+"'.$this->wrapLinkWithAB($link).'"'.$addJS.'+additionalGetVariables);
                                                                top.fsMod.currentMainLoaded="'.$moduleName.'";
                                                                ';
 
@@ -314,7 +314,7 @@ class alt_menu_functions {
                                                                                top.content.nav_frame.location=top.getModuleUrl(top.TS.PATH_typo3+"'.$subNavFrameScript.'");
                                                                        }
                                                                } else {
-                                                                       top.content.location=top.TS.PATH_typo3+(
+                                                                       top.document.getElementsByName(\'content\')[0].src=top.TS.PATH_typo3+(
                                                                                top.nextLoadModuleUrl?
                                                                                "'.($prefix?$this->wrapLinkWithAB($link).'&exScript=':'').'listframe_loader.php":
                                                                                "'.$this->wrapLinkWithAB($link).'"'.$addJS.'+additionalGetVariables