diff --git a/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php b/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php index 6cd96c24d1d261b0d63100b21558b4b0dd2acfd5..0134fa6483788536fe7e906c65997db4584386d7 100644 --- a/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php +++ b/typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php @@ -483,8 +483,8 @@ class ClickMenu */ public function urlRefForCM($url, $retUrl = '', $hideCM = true, $overrideLoc = '') { - $loc = 'top.content.list_frame'; - return ($overrideLoc ? 'var docRef=' . $overrideLoc : 'var docRef=(top.content.list_frame)?top.content.list_frame:' . $loc) + $loc = 'top.list_frame'; + return ($overrideLoc ? 'var docRef=' . $overrideLoc : 'var docRef=(top.list_frame)?top.list_frame:' . $loc) . '; docRef.location.href=' . GeneralUtility::quoteJSvalue($url) . ($retUrl ? '+' . GeneralUtility::quoteJSvalue('&' . $retUrl . '=') . '+top.rawurlencode(' . $this->frameLocation('docRef.document') . '.pathname+' . $this->frameLocation('docRef.document') . '.search)' : '') . ';'; @@ -531,7 +531,7 @@ class ClickMenu */ public function DB_paste($table, $uid, $type, $elInfo) { - $loc = 'top.content.list_frame'; + $loc = 'top.list_frame'; $jsCode = $loc . '.location.href=' . GeneralUtility::quoteJSvalue($this->clipObj->pasteUrl($table, $uid, 0) . '&redirect=') . ' + top.rawurlencode(' . $this->frameLocation($loc . '.document') . '.pathname+' @@ -754,7 +754,7 @@ class ClickMenu // If another module was specified, replace the default Page module with the new one $newPageModule = trim($this->backendUser->getTSConfigVal('options.overridePageModule')); $pageModule = BackendUtility::isModuleSetInTBE_MODULES($newPageModule) ? $newPageModule : 'web_layout'; - $loc = 'top.content.list_frame'; + $loc = 'top.list_frame'; $iconName = 'actions-open'; if ($table === 'pages') { $iconName = 'actions-page-open'; @@ -782,7 +782,7 @@ class ClickMenu */ public function DB_new($table, $uid) { - $frame = 'top.content.list_frame'; + $frame = 'top.list_frame'; $location = $this->frameLocation($frame . '.document'); $module = $this->listFrame ? GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('record_edit', ['edit[' . $table . '][-' . $uid . ']' => 'new']) . '&returnUrl=') . '+top.rawurlencode(' . $location . '.pathname+' . $location . '.search)' @@ -803,7 +803,7 @@ class ClickMenu */ public function DB_delete($table, $uid, $elInfo) { - $loc = 'top.content.list_frame'; + $loc = 'top.list_frame'; $jsCode = $loc . '.location.href=' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('tce_db') . '&redirect=') . '+top.rawurlencode(' . $this->frameLocation($loc . '.document') . '.pathname+' @@ -872,7 +872,7 @@ class ClickMenu return $this->linkItem( $this->label('tempMountPoint'), $this->iconFactory->getIcon('actions-pagetree-mountroot', Icon::SIZE_SMALL)->render(), - 'if (top.content.nav_frame) { + 'if (top.nav_frame) { var node = top.TYPO3.Backend.NavigationContainer.PageTree.getSelected(); if (node === null) { return false; @@ -917,7 +917,7 @@ class ClickMenu public function DB_changeFlag($table, $rec, $flagField, $title) { $uid = $rec['_ORIG_uid'] ?: $rec['uid']; - $loc = 'top.content.list_frame'; + $loc = 'top.list_frame'; $editOnClick = 'if(' . $loc . '){' . $loc . '.location.href=' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('tce_db') . '&redirect=') . '+top.rawurlencode(' . $this->frameLocation($loc . '.document') . '.pathname+' . $this->frameLocation(($loc . '.document')) . '.search)+' . @@ -1086,7 +1086,7 @@ class ClickMenu */ public function FILE_launch($path, $moduleName, $type, $iconName, $noReturnUrl = false) { - $loc = 'top.content.list_frame'; + $loc = 'top.list_frame'; $scriptUrl = BackendUtility::getModuleUrl($moduleName); $editOnClick = 'if(' . $loc . '){' . $loc . '.location.href=' . GeneralUtility::quoteJSvalue($scriptUrl . '&target=' . rawurlencode($path)) . ($noReturnUrl ? '' : '+\'&returnUrl=\'+top.rawurlencode(' . $this->frameLocation($loc . '.document') . '.pathname+' . $this->frameLocation($loc . '.document') . '.search)') . ';}'; @@ -1134,7 +1134,7 @@ class ClickMenu */ public function FILE_delete($path) { - $loc = 'top.content.list_frame'; + $loc = 'top.list_frame'; $jsCode = $loc . '.location.href=' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('tce_file') . '&redirect=') . '+top.rawurlencode(' . $this->frameLocation(($loc . '.document')) @@ -1179,7 +1179,7 @@ class ClickMenu */ public function FILE_paste($path, $target, $elInfo) { - $loc = 'top.content.list_frame'; + $loc = 'top.list_frame'; $jsCode = $loc . '.location.href=' . GeneralUtility::quoteJSvalue($this->clipObj->pasteUrl('_FILE', $path, 0) . '&redirect=') @@ -1288,7 +1288,7 @@ class ClickMenu public function dragDrop_copymovepage($srcUid, $dstUid, $action, $into) { $negativeSign = $into === 'into' ? '' : '-'; - $loc = 'top.content.list_frame'; + $loc = 'top.list_frame'; $editOnClick = 'if(' . $loc . '){' . $loc . '.document.location=' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('tce_db') . '&redirect=') . '+top.rawurlencode(' . $this->frameLocation(($loc . '.document')) . '.pathname+' . $this->frameLocation(($loc . '.document')) . '.search)+' . @@ -1314,7 +1314,7 @@ class ClickMenu */ public function dragDrop_copymovefolder($srcPath, $dstPath, $action) { - $loc = 'top.content.list_frame'; + $loc = 'top.list_frame'; $editOnClick = 'if(' . $loc . '){' . $loc . '.document.location=' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('tce_file') . '&redirect=') . '+top.rawurlencode(' . $this->frameLocation(($loc . '.document')) . '.pathname+' . $this->frameLocation(($loc . '.document')) . '.search)+' . diff --git a/typo3/sysext/backend/Classes/Controller/ClickMenuController.php b/typo3/sysext/backend/Classes/Controller/ClickMenuController.php index 24428afae3de19f4c6a8c60bae72eab15dae78f7..6e2ec02d19befff8011175c27834901cc67cbaa0 100644 --- a/typo3/sysext/backend/Classes/Controller/ClickMenuController.php +++ b/typo3/sysext/backend/Classes/Controller/ClickMenuController.php @@ -64,9 +64,10 @@ class ClickMenuController $clickMenu->extClassArray = $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses']; $content = $clickMenu->init(); - if (is_array($content)) { - $response->getBody()->write(json_encode($content)); + if (!is_array($content)) { + $content = []; } + $response->getBody()->write(json_encode($content)); return $response; } diff --git a/typo3/sysext/backend/Classes/Utility/BackendUtility.php b/typo3/sysext/backend/Classes/Utility/BackendUtility.php index 2babb4869628dbe2c3fa977ccc81fe52254318f7..035955a89d68994c3276fdaf575aad50e905292d 100644 --- a/typo3/sysext/backend/Classes/Utility/BackendUtility.php +++ b/typo3/sysext/backend/Classes/Utility/BackendUtility.php @@ -3477,8 +3477,8 @@ class BackendUtility break; case 'updateFolderTree': $signals[] = ' - if (top && top.TYPO3.Backend && top.TYPO3.Backend.NavigationIframe) { - top.TYPO3.Backend.NavigationIframe.refresh(); + if (top && top.nav_frame && top.nav_frame.location) { + top.nav_frame.location.reload(true); }'; break; case 'updateModuleMenu': diff --git a/typo3/sysext/backend/Resources/Private/Templates/Backend/Main.html b/typo3/sysext/backend/Resources/Private/Templates/Backend/Main.html index a24ff788c18307de4354d976a2b9981fa4f34d6a..d60fde8e7f321ada4888aa281b03f72ee6312d52 100644 --- a/typo3/sysext/backend/Resources/Private/Templates/Backend/Main.html +++ b/typo3/sysext/backend/Resources/Private/Templates/Backend/Main.html @@ -44,11 +44,11 @@ <div class="scaffold-content t3js-scaffold-content"> <div class="scaffold-content-navigation t3js-scaffold-content-navigation"> <div class="scaffold-content-navigation-component" data-component="typo3-navigationIframe"> - <iframe src="about:blank" id="typo3-navigationContainerIframe" class="scaffold-content-navigation-iframe t3js-scaffold-content-navigation-iframe"></iframe> + <iframe name="nav_frame" src="about:blank" id="typo3-navigationContainerIframe" class="scaffold-content-navigation-iframe t3js-scaffold-content-navigation-iframe"></iframe> </div> </div> <div class="scaffold-content-module t3js-scaffold-content-module"> - <iframe name="contentIframe" id="typo3-contentIframe" class="scaffold-content-module-iframe t3js-scaffold-content-module-iframe"></iframe> + <iframe name="list_frame" id="typo3-contentIframe" class="scaffold-content-module-iframe t3js-scaffold-content-module-iframe"></iframe> </div> <div class="scaffold-content-overlay t3js-scaffold-content-overlay"></div> </div> diff --git a/typo3/sysext/backend/Resources/Private/Templates/RecordHistory/Main.html b/typo3/sysext/backend/Resources/Private/Templates/RecordHistory/Main.html index bb77d4e94fc3d20715696529384c3fd8bf960608..dbf24bdf22db465f9d32930baf8f593b5943aa1b 100644 --- a/typo3/sysext/backend/Resources/Private/Templates/RecordHistory/Main.html +++ b/typo3/sysext/backend/Resources/Private/Templates/RecordHistory/Main.html @@ -1,8 +1,8 @@ <f:if condition="{reloadPageFrame}"> <script type="text/javascript"> /*<![CDATA[*/ - if (top.content && top.content.nav_frame && top.content.nav_frame.refresh_nav) { - top.content.nav_frame.refresh_nav(); + if (top.nav_frame && top.nav_frame.refresh_nav) { + top.nav_frame.refresh_nav(); } /*]]>*/ </script> @@ -11,4 +11,4 @@ <f:if condition="{lastSyslogId}"> <f:render partial="RecordHistory/MultipleDiff" arguments="{_all}" /> </f:if> -<f:render partial="RecordHistory/History" arguments="{_all}" /> \ No newline at end of file +<f:render partial="RecordHistory/History" arguments="{_all}" /> diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/ClickMenu.js b/typo3/sysext/backend/Resources/Public/JavaScript/ClickMenu.js index b24ac4b3eb4c8af092a800cc42be5ab52f804d18..176f5f0efbb93e1b92f78dc7ae1ada775408a94e 100644 --- a/typo3/sysext/backend/Resources/Public/JavaScript/ClickMenu.js +++ b/typo3/sysext/backend/Resources/Public/JavaScript/ClickMenu.js @@ -103,7 +103,7 @@ define(['jquery'], function($) { if (typeof response.items === "undefined") { var res = parameters.match(/&reloadListFrame=(0|1|2)(&|$)/); if (parseInt(res[1], 0)) { - top.content.list_frame.location.reload(true); + top.list_frame.location.reload(true); } } else { ClickMenu.populateData(response.items, response.level); diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/backend.js b/typo3/sysext/backend/Resources/Public/JavaScript/backend.js index afbc5ca45520a03bd6241611d64736ddae6cb6e7..333cbb09183da5558884dacb4fd2e57dc98b752d 100644 --- a/typo3/sysext/backend/Resources/Public/JavaScript/backend.js +++ b/typo3/sysext/backend/Resources/Public/JavaScript/backend.js @@ -131,8 +131,8 @@ function loadEditId(id,addGetVars) { // top.fsMod.recentIds.web = id; top.fsMod.navFrameHighlightedID.web = "pages" + id + "_0"; // For highlighting - if (top.content && top.content.nav_frame && top.content.nav_frame.refresh_nav) { - top.content.nav_frame.refresh_nav(); + if (top.nav_frame && top.nav_frame.refresh_nav) { + top.nav_frame.refresh_nav(); } if (TYPO3.configuration.pageModule) { top.goToModule(TYPO3.configuration.pageModule, 0, addGetVars?addGetVars:""); @@ -157,6 +157,26 @@ function getModuleUrl(inUrl) { // +// Backwards-compatible layer for "old" ExtJS-based code +// which was in use (top.content) before TYPO3 8.4. Now, the direct "top.nav_frame" and "top.list_frame" +// calls do work directly. +// @deprecated since TYPO3 v8, will be removed in TYPO3 v9, this functionality will be removed in TYPO3 v9. +TYPO3.jQuery(document).on('ready', function() { + top.content = { + list_frame: top.list_frame, + nav_frame: top.nav_frame + }; + // top.nav.refresh() is currently used by the clickmenu inline JS code, and can be removed afterwards + top.nav = { + refresh: function() { + if (top.nav_frame && top.nav_frame.refresh_nav) { + top.nav_frame.refresh_nav(); + } else if (top.TYPO3.Backend && top.TYPO3.Backend.NavigationContainer.PageTree) { + top.TYPO3.Backend.NavigationContainer.PageTree.refreshTree(); + } + } + }; +}); // Used by Frameset Modules -var currentSubScript = ""; \ No newline at end of file +var currentSubScript = ""; diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/BackendUser/ListUserCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/BackendUser/ListUserCest.php index 6100afde90ce7bdd3abb32e068244046c78c9e03..2794d7dc888b7102c10314027e810aae88f7d66e 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/BackendUser/ListUserCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/BackendUser/ListUserCest.php @@ -29,7 +29,7 @@ class ListUserCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); @@ -37,7 +37,7 @@ class ListUserCest $I->click('Backend users'); // switch to content iframe - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); } /** diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Extensionmanager/InstalledExtensionsCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Extensionmanager/InstalledExtensionsCest.php index e89075aaa4af8d63be20ae91ef7f4c8aad713d06..97fad0955bdb3c73f22ed6f58dc32990f680cd1a 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Extensionmanager/InstalledExtensionsCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Extensionmanager/InstalledExtensionsCest.php @@ -28,12 +28,12 @@ class InstalledExtensionsCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); $I->click('Extensions', '#menu'); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForElementVisible('#typo3-extension-list'); } @@ -80,7 +80,7 @@ class InstalledExtensionsCest $I->canSeeElement('.modulemenu-item-link'); $I->cantSeeElement('#web_RecyclerRecycler'); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->fillField('Tx_Extensionmanager_extensionkey', 'recycler'); $I->waitForElementVisible('//*[@id="typo3-extension-list"]/tbody/tr[@id="recycler"]'); $I->click('a[data-original-title="Activate"]', '//*[@id="typo3-extension-list"]/tbody/tr[@id="recycler"]'); @@ -103,7 +103,7 @@ class InstalledExtensionsCest $I->switchToIFrame(); $I->canSeeElement('#web_RecyclerRecycler'); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->fillField('Tx_Extensionmanager_extensionkey', 'recycler'); $I->waitForElementVisible('//*[@id="typo3-extension-list"]/tbody/tr[@id="recycler"]'); $I->click('a[data-original-title="Deactivate"]', '//*[@id="typo3-extension-list"]/tbody/tr[@id="recycler"]'); diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/CategoryTreeCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/CategoryTreeCest.php index 2c3e716ed82b194e1669f1e232cd56a952e38253..a096409905b389474a64c29d1c16ed7c17103601 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/CategoryTreeCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/CategoryTreeCest.php @@ -28,7 +28,7 @@ class CategoryTreeCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); } @@ -41,7 +41,7 @@ class CategoryTreeCest // A sub-element of web module is show $I->waitForElementVisible('#web .modulemenu-group-container .modulemenu-item'); $I->click('#web_list'); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForElement('#recordlist-sys_category'); $I->seeNumberOfElements('#recordlist-sys_category table > tbody > tr', [5, 100]); } @@ -54,7 +54,7 @@ class CategoryTreeCest // A sub-element of web module is show $I->waitForElementVisible('#web .modulemenu-group-container .modulemenu-item'); $I->click('#web_list'); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); // Select category with id 7 $I->click('#recordlist-sys_category tr[data-uid="7"] a[data-original-title="Edit record"]'); // Change title and level to root diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/ElementsBasicCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/ElementsBasicCest.php index fc5752c1aff92bde207ca6ecfac74a3706843985..a47ccded6bcc78cbe670a2d86084b3bcbc763576 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/ElementsBasicCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/ElementsBasicCest.php @@ -33,13 +33,13 @@ class ElementsBasicCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); $I->click('List'); $pageTree->openPath(['styleguide TCA demo', 'elements basic']); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); } /** diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/General/ModuleMenuCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/General/ModuleMenuCest.php index 63787e066fa3628940add671c61a977546f37e80..e64fc16e89512bdc4761744a46897f83e263d32d 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/General/ModuleMenuCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/General/ModuleMenuCest.php @@ -28,7 +28,7 @@ class ModuleMenuCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); } diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Page/AddPageInPageModuleCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Page/AddPageInPageModuleCest.php index 3f9edf20b137f965584c7cff4029eee8a3b44cad..823d18b1b95e70c0e4b305df8629a3c6160f3f32 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Page/AddPageInPageModuleCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Page/AddPageInPageModuleCest.php @@ -25,7 +25,7 @@ class AddPageInPageModuleCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); } @@ -54,7 +54,7 @@ class AddPageInPageModuleCest $I->click($contextMenuNew); // Switch to content frame - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); // New page select position wizard $I->click('i[title="Insert the new page here"]'); diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Page/PageModuleCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Page/PageModuleCest.php index ddac3826961cfb53bcb57a20286aa3f718cc7105..2773b03840e3388c2b908a90912b30f13ac777db 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Page/PageModuleCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Page/PageModuleCest.php @@ -26,7 +26,7 @@ class PageModuleCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); } @@ -37,7 +37,7 @@ class PageModuleCest public function checkThatPageModuleHasAHeadline(Admin $I) { $I->click('Page'); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->canSee('Web>Page module', 'h4'); } } diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Scheduler/TasksCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Scheduler/TasksCest.php index 42104b6c53c2fd7291a580ef79474304e15c9e15..bfb1434630a7ff915690a0fd238f03bcebf8ffc4 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Scheduler/TasksCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Scheduler/TasksCest.php @@ -29,7 +29,7 @@ class TasksCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); @@ -37,7 +37,7 @@ class TasksCest $I->click('Scheduler', '#system_txschedulerM1'); // switch to content iframe - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); } /** @@ -93,13 +93,13 @@ class TasksCest $I->click('//a[contains(@title, "Delete")]'); $I->wantTo('Cancel the delete dialog'); $modalDialog->clickButtonInDialog('Cancel'); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->wantTo('Still see and can click the Delete button as the deletion has been canceled'); $I->click('//a[contains(@title, "Delete")]'); $modalDialog->clickButtonInDialog('OK'); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->see('The task was successfully deleted.'); $I->see('No tasks defined yet'); } diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/BookmarkCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/BookmarkCest.php index 518596d8be795c66fb55ffaabb9b13c14e58e2dc..57f51a199646def59d6a3f71f5fffc03368e9509 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/BookmarkCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/BookmarkCest.php @@ -45,7 +45,7 @@ class BookmarkCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); } @@ -73,7 +73,7 @@ class BookmarkCest // open the scheduler module as we would like to put it into the bookmark liste $I->click('Scheduler', '.scaffold-modulemenu'); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->click(self::$docHeaderBookmarkButtonSelector); // cancel the action to test the functionality @@ -82,7 +82,7 @@ class BookmarkCest // check if the list is still empty $this->checkThatBookmarkListIsInitiallyEmpty($I); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->click(self::$docHeaderBookmarkButtonSelector); $dialog->clickButtonInDialog('OK'); @@ -107,7 +107,7 @@ class BookmarkCest { $this->clickBookmarkDropdownToggleInTopbar($I); $I->click('Scheduled tasks', self::$topBarModuleSelector); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->canSee('Scheduled tasks', 'h1'); } diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/FlushCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/FlushCest.php index b3419946530727ed17723c9e448b9cdb2a115b43..a14106a7e39fba99bf9c602bc6f0426df149bcb6 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/FlushCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/FlushCest.php @@ -36,7 +36,7 @@ class FlushCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); } diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/HelpCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/HelpCest.php index f7709dd8fc8ecafad77fec924bd5a452844f2af4..1b8609a06d1b01d6fbe360f23ab12392c87c994e 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/HelpCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/HelpCest.php @@ -36,7 +36,7 @@ class HelpCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); } @@ -61,7 +61,7 @@ class HelpCest $I->click(Topbar::$dropdownToggleSelector, self::$topBarModuleSelector); $I->canSee('Styleguide', self::$topBarModuleSelector); $I->click('Styleguide', self::$topBarModuleSelector); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->see('TYPO3 CMS Backend Styleguide', 'h1'); } } diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/LogoCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/LogoCest.php index 7c55bc9d6444eab9a928d69def5879208b6e34e2..a393ee039fd509e597997e4c09e0537d03deb1d5 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/LogoCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/LogoCest.php @@ -28,7 +28,7 @@ class LogoCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); } diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/SearchCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/SearchCest.php index d16cade6421d9a459f7531297c33f9b026a52820..e89afa6cec52d4e156f70814961dc891995be1d5 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/SearchCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/SearchCest.php @@ -36,7 +36,7 @@ class SearchCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); } @@ -53,7 +53,7 @@ class SearchCest $I->canSee('Backend user', self::$topBarModuleSelector); $I->click('admin', self::$topBarModuleSelector); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForElementVisible('#EditDocumentController'); $I->canSee('Edit Backend user "admin" on root level'); } @@ -85,7 +85,7 @@ class SearchCest $I->canSee('fileadmin/ (auto-created)', self::$topBarModuleSelector); $I->click('.t3js-live-search-show-all', self::$topBarModuleSelector); - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForElementVisible('form[name="dblistForm"]'); $I->canSee('fileadmin/ (auto-created)'); } diff --git a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/UsernameOnAvatarCest.php b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/UsernameOnAvatarCest.php index 21d64cf21195bd57b64be6d5f2e3e2a72c72f9f5..7a106f1bd10882d11a62026966c83c7fa93a563b 100644 --- a/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/UsernameOnAvatarCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Backend/Topbar/UsernameOnAvatarCest.php @@ -25,7 +25,7 @@ class UsernameOnAvatarCest { $I->useExistingSession(); // Ensure main content frame is fully loaded, otherwise there are load-race-conditions - $I->switchToIFrame('contentIframe'); + $I->switchToIFrame('list_frame'); $I->waitForText('Web Content Management System'); $I->switchToIFrame(); } diff --git a/typo3/sysext/filelist/Classes/FileList.php b/typo3/sysext/filelist/Classes/FileList.php index e5a49f9dbd56225f4141d1f68fbe07980da349d2..0e6838c92e8705661e520d3be30e79fa337595e1 100644 --- a/typo3/sysext/filelist/Classes/FileList.php +++ b/typo3/sysext/filelist/Classes/FileList.php @@ -932,7 +932,7 @@ class FileList extends AbstractRecordList // Edit file content (if editable) if ($fileOrFolderObject instanceof File && $fileOrFolderObject->checkActionPermission('write') && GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['SYS']['textfile_ext'], $fileOrFolderObject->getExtension())) { $url = BackendUtility::getModuleUrl('file_edit', ['target' => $fullIdentifier]); - $editOnClick = 'top.content.list_frame.location.href=' . GeneralUtility::quoteJSvalue($url) . '+\'&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search);return false;'; + $editOnClick = 'top.list_frame.location.href=' . GeneralUtility::quoteJSvalue($url) . '+\'&returnUrl=\'+top.rawurlencode(top.list_frame.document.location.pathname+top.list_frame.document.location.search);return false;'; $cells['edit'] = '<a href="#" class="btn btn-default" onclick="' . htmlspecialchars($editOnClick) . '" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.editcontent') . '">' . $this->iconFactory->getIcon('actions-page-open', Icon::SIZE_SMALL)->render() . '</a>'; @@ -954,14 +954,14 @@ class FileList extends AbstractRecordList // replace file if ($fileOrFolderObject instanceof File && $fileOrFolderObject->checkActionPermission('replace')) { $url = BackendUtility::getModuleUrl('file_replace', ['target' => $fullIdentifier, 'uid' => $fileOrFolderObject->getUid()]); - $replaceOnClick = 'top.content.list_frame.location.href = ' . GeneralUtility::quoteJSvalue($url) . '+\'&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search);return false;'; + $replaceOnClick = 'top.list_frame.location.href = ' . GeneralUtility::quoteJSvalue($url) . '+\'&returnUrl=\'+top.rawurlencode(top.list_frame.document.location.pathname+top.list_frame.document.location.search);return false;'; $cells['replace'] = '<a href="#" class="btn btn-default" onclick="' . $replaceOnClick . '" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.replace') . '">' . $this->iconFactory->getIcon('actions-edit-replace', Icon::SIZE_SMALL)->render() . '</a>'; } // rename the file if ($fileOrFolderObject->checkActionPermission('rename')) { $url = BackendUtility::getModuleUrl('file_rename', ['target' => $fullIdentifier]); - $renameOnClick = 'top.content.list_frame.location.href = ' . GeneralUtility::quoteJSvalue($url) . '+\'&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search);return false;'; + $renameOnClick = 'top.list_frame.location.href = ' . GeneralUtility::quoteJSvalue($url) . '+\'&returnUrl=\'+top.rawurlencode(top.list_frame.document.location.pathname+top.list_frame.document.location.search);return false;'; $cells['rename'] = '<a href="#" class="btn btn-default" onclick="' . htmlspecialchars($renameOnClick) . '" title="' . $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:cm.rename') . '">' . $this->iconFactory->getIcon('actions-edit-rename', Icon::SIZE_SMALL)->render() . '</a>'; } else { $cells['rename'] = $this->spaceIcon; diff --git a/typo3/sysext/filelist/Resources/Public/JavaScript/FileDelete.js b/typo3/sysext/filelist/Resources/Public/JavaScript/FileDelete.js index 760bac5b35be8c4e88f4b66d8c0230bf488be597..c5139b4d2481837cf75a6b7561fe3ec907b3e659 100644 --- a/typo3/sysext/filelist/Resources/Public/JavaScript/FileDelete.js +++ b/typo3/sysext/filelist/Resources/Public/JavaScript/FileDelete.js @@ -24,7 +24,7 @@ define(['jquery', 'TYPO3/CMS/Backend/Modal', 'TYPO3/CMS/Backend/Severity'], func if (redirectUrl) { redirectUrl = top.rawurlencode(redirectUrl); } else { - redirectUrl = top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search); + redirectUrl = top.rawurlencode(top.list_frame.document.location.pathname+top.list_frame.document.location.search); } var identifier = $anchorElement.data('identifier'); var veriCode = $anchorElement.data('veriCode'); @@ -49,11 +49,11 @@ define(['jquery', 'TYPO3/CMS/Backend/Modal', 'TYPO3/CMS/Backend/Severity'], func Modal.dismiss(); } else if (e.target.name === 'yes') { Modal.dismiss(); - top.content.list_frame.location.href = deleteUrl + '&redirect=' + redirectUrl; + top.list_frame.location.href = deleteUrl + '&redirect=' + redirectUrl; } }); } else { - top.content.list_frame.location.href = deleteUrl + '&redirect=' + redirectUrl; + top.list_frame.location.href = deleteUrl + '&redirect=' + redirectUrl; } }); diff --git a/typo3/sysext/filelist/Resources/Public/JavaScript/FileList.js b/typo3/sysext/filelist/Resources/Public/JavaScript/FileList.js index 9bbc831f621befe6dcba57ba46cafd90586c4011..10eeaf83d319e69e9d7fe6d9d4857d1e5dcc418f 100644 --- a/typo3/sysext/filelist/Resources/Public/JavaScript/FileList.js +++ b/typo3/sysext/filelist/Resources/Public/JavaScript/FileList.js @@ -28,7 +28,7 @@ define(['jquery'], function($) { event.preventDefault(); var url = $(this).attr('data-url'); - top.content.list_frame.location.href=url; + top.list_frame.location.href=url; }); $('a.btn.filelist-file-view').click(function(event) { @@ -42,14 +42,14 @@ define(['jquery'], function($) { event.preventDefault(); var url = $(this).attr('data-url'); - top.content.list_frame.location.href=url; + top.list_frame.location.href=url; }); $('a.btn.filelist-file-rename').click(function(event) { event.preventDefault(); var url = $(this).attr('data-url'); - top.content.list_frame.location.href=url; + top.list_frame.location.href=url; }); $('a.btn.filelist-file-info').click(function(event) { diff --git a/typo3/sysext/frontend/Classes/View/AdminPanelView.php b/typo3/sysext/frontend/Classes/View/AdminPanelView.php index f2383aa5939cded7164ec3f337dea9890afd448e..e4812a33c648fc702e09a8625ceeb3686dde31bf 100644 --- a/typo3/sysext/frontend/Classes/View/AdminPanelView.php +++ b/typo3/sysext/frontend/Classes/View/AdminPanelView.php @@ -492,8 +492,8 @@ class AdminPanelView $out .= $this->extGetItem('', '<a class="btn btn-default" href="#" onclick="' . htmlspecialchars((' if (parent.opener && parent.opener.top && parent.opener.top.TS) { parent.opener.top.fsMod.recentIds["web"]=' . (int)$this->getTypoScriptFrontendController()->page['uid'] . '; - if (parent.opener.top.content && parent.opener.top.content.nav_frame && parent.opener.top.content.nav_frame.refresh_nav) { - parent.opener.top.content.nav_frame.refresh_nav(); + if (parent.opener.top && parent.opener.top.nav_frame && parent.opener.top.nav_frame.refresh_nav) { + parent.opener.top.nav_frame.refresh_nav(); } parent.opener.top.goToModule("' . $pageModule . '"); parent.opener.top.focus(); diff --git a/typo3/sysext/opendocs/Classes/Backend/ToolbarItems/OpendocsToolbarItem.php b/typo3/sysext/opendocs/Classes/Backend/ToolbarItems/OpendocsToolbarItem.php index 4a0e8540eeef2ef8c96974ae03a8a105b65cdacd..738cdb07e03c8035d5d72033056624816d59e27b 100644 --- a/typo3/sysext/opendocs/Classes/Backend/ToolbarItems/OpendocsToolbarItem.php +++ b/typo3/sysext/opendocs/Classes/Backend/ToolbarItems/OpendocsToolbarItem.php @@ -180,7 +180,7 @@ class OpendocsToolbarItem implements ToolbarItemInterface $entry .= $icon; $entry .= '</div>'; $entry .= '<div class="dropdown-table-column dropdown-table-title">'; - $entry .= '<a class="dropdown-table-title-ellipsis" href="#" onclick="' . htmlspecialchars($onClickCode) . '" target="contentIframe">'; + $entry .= '<a class="dropdown-table-title-ellipsis" href="#" onclick="' . htmlspecialchars($onClickCode) . '" target="list_frame">'; $entry .= $label; $entry .= '</a>'; $entry .= '</div>'; @@ -197,7 +197,7 @@ class OpendocsToolbarItem implements ToolbarItemInterface $entry .= $icon; $entry .= '</div>'; $entry .= '<div class="dropdown-table-column dropdown-table-title">'; - $entry .= '<a class="dropdown-table-title-ellipsis" href="#" onclick="' . htmlspecialchars($onClickCode) . '" target="contentIframe">'; + $entry .= '<a class="dropdown-table-title-ellipsis" href="#" onclick="' . htmlspecialchars($onClickCode) . '" target="list_frame">'; $entry .= $label; $entry .= '</a>'; $entry .= '</div>'; diff --git a/typo3/sysext/recordlist/Classes/RecordList.php b/typo3/sysext/recordlist/Classes/RecordList.php index 31d2373d566e4a14bcf8f7f0adbdf6d0046bbd21..bba0d6281a93312df3fada9a5e5d8068618313f5 100644 --- a/typo3/sysext/recordlist/Classes/RecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList.php @@ -426,8 +426,8 @@ class RecordList extends AbstractModule top.fsMod.recentIds["web"]=id; top.fsMod.navFrameHighlightedID["web"]="pages"+id+"_"+top.fsMod.currentBank; // For highlighting - if (top.content && top.content.nav_frame && top.content.nav_frame.refresh_nav) { - top.content.nav_frame.refresh_nav(); + if (top.nav_frame && top.nav_frame.refresh_nav) { + top.nav_frame.refresh_nav(); } } ' . $this->moduleTemplate->redirectUrls($listUrl) . ' diff --git a/typo3/sysext/sys_action/Classes/ActionTask.php b/typo3/sysext/sys_action/Classes/ActionTask.php index fe2cbda457243f5bda368a6a296980608657af56..f6b32189fb0462f6f615e97396e5edeea3dfd356 100644 --- a/typo3/sysext/sys_action/Classes/ActionTask.php +++ b/typo3/sysext/sys_action/Classes/ActionTask.php @@ -952,8 +952,8 @@ class ActionTask implements \TYPO3\CMS\Taskcenter\TaskInterface top.fsMod.recentIds["web"]=id; top.fsMod.navFrameHighlightedID["web"]="pages"+id+"_"+top.fsMod.currentBank; // For highlighting - if (top.content && top.content.nav_frame && top.content.nav_frame.refresh_nav) { - top.content.nav_frame.refresh_nav(); + if (top.nav_frame && top.nav_frame.refresh_nav) { + top.nav_frame.refresh_nav(); } } diff --git a/typo3/sysext/sys_action/Classes/Backend/ToolbarItems/ActionToolbarItem.php b/typo3/sysext/sys_action/Classes/Backend/ToolbarItems/ActionToolbarItem.php index b934fdf2a42229950a1e19967cf17c278704766a..7c9662734a7f694f04af5020753b4f650b56a8ec 100644 --- a/typo3/sysext/sys_action/Classes/Backend/ToolbarItems/ActionToolbarItem.php +++ b/typo3/sysext/sys_action/Classes/Backend/ToolbarItems/ActionToolbarItem.php @@ -81,7 +81,7 @@ class ActionToolbarItem implements ToolbarItemInterface $actionMenu[] = $linkConf[2]; $actionMenu[] = '</div>'; $actionMenu[] = '<div class="dropdown-table-column dropdown-table-title">'; - $actionMenu[] = '<a class="t3js-topbar-link" href="' . htmlspecialchars($linkConf[1]) . '" target="contentIframe">'; + $actionMenu[] = '<a class="t3js-topbar-link" href="' . htmlspecialchars($linkConf[1]) . '" target="list_frame">'; $actionMenu[] = htmlspecialchars($linkConf[0]); $actionMenu[] = '</a>'; $actionMenu[] = '</div>'; diff --git a/typo3/sysext/workspaces/Classes/Backend/ToolbarItems/WorkspaceSelectorToolbarItem.php b/typo3/sysext/workspaces/Classes/Backend/ToolbarItems/WorkspaceSelectorToolbarItem.php index 1e909a5a8fa0d690caed0784bd4f55e6dda5c7ec..d41a5c46a0bf71c61a7ddc8d2175fb6fb552944d 100644 --- a/typo3/sysext/workspaces/Classes/Backend/ToolbarItems/WorkspaceSelectorToolbarItem.php +++ b/typo3/sysext/workspaces/Classes/Backend/ToolbarItems/WorkspaceSelectorToolbarItem.php @@ -127,7 +127,7 @@ class WorkspaceSelectorToolbarItem implements ToolbarItemInterface ' . $stateUncheckedIcon . ' </div> <div class="dropdown-table-column"> - <a href="#" target="contentIframe" data-module="web_WorkspacesWorkspaces" class="t3js-workspaces-modulelink"> + <a href="#" target="list_frame" data-module="web_WorkspacesWorkspaces" class="t3js-workspaces-modulelink"> ' . htmlspecialchars($languageService->getLL('bookmark_workspace')) . ' </a> </div>