Bug #89173
closedNotification actions broken after document change
100%
Description
If a notification with actions is triggered within an iframe, the actions are broken after the iframe document changes. This is due to broken scopes when the notification is generated.
Following code is invoked in list_frame which renders a notification:
require(['TYPO3/CMS/Backend/Notification', 'TYPO3/CMS/Backend/ActionButton/DeferredAction'], function(Notification, DeferredAction) { Notification.info('Foo', 'Yadda yadda.', 0, [ { label: 'Revert\u0020update', action: new DeferredAction(function() { return new Promise(resolve => setTimeout(() => { console.log('DONE'); resolve('foobar'); }, 1000)); }) } ]); });
If e.g. another backend module is loaded, the click event in the notification gets lost and the callback cannot be executed anymore.
Updated by Gerrit Code Review about 5 years ago
- Status changed from In Progress to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61706
Updated by Gerrit Code Review about 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61706
Updated by Gerrit Code Review about 5 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61706
Updated by Gerrit Code Review about 5 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61706
Updated by Gerrit Code Review about 5 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61706
Updated by Gerrit Code Review about 5 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61706
Updated by Andreas Fernandez about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 78955a67c7da23c839757b4509f11c637e5e88bb.
Updated by Andreas Kienast about 5 years ago
- Related to Bug #89247: Revert Notification Action Factory added
Updated by Benni Mack almost 5 years ago
- Status changed from Resolved to Closed