roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.88k stars 1.64k forks source link

Firefox infinate loading display on mail screen #8128

Closed johndoh closed 3 years ago

johndoh commented 3 years ago

Revently I have noticed strange behavior when using Roundcube on my dev server. On the mail screen Firefox reports the page is loading forever (the X stop icon never changes to the Reload icon and the "Read [url]" message in the bottom left persists). The browser console reports all resouces are loaded correctly. No JS errors, warnings:

Request to access cookie or storage on “[url]/program/resources/dummy.pdf” was blocked because we are blocking all third-party storage access requests and content blocking is enabled.

This issue does not effect the usability of the Roundcube interface.

The causes appears to be line 10134: https://github.com/roundcube/roundcubemail/blob/2f643141b4e16dd70f0d1dda283c2106e63a3009/program/js/app.js#L10126-L10137

It seems like Firefox is getting confused by an element being added and removed from the DOM so quickly as adding a short delay before attempting to remove the dummy PDF object solves the issue, Firefox shows loading complete.

Tested with against 2 different webservers via HTTP and HTTPS connections.

Roundcube: git-master Plugins: none Skins: Elastic, Larry, Classic Firefox 89.0.2 Windows 10

alecpl commented 3 years ago

Fixed.