1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00
Raymond Hill 2019-04-14 16:57:09 -04:00
parent c229003d31
commit b73480b4c5
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 0 additions and 23 deletions

View File

@ -80,15 +80,6 @@ loadDashboardPanel();
window.addEventListener('resize', resizeFrame);
uDom('.tabButton').on('click', onTabClickHandler);
// https://github.com/uBlockOrigin/uBlock-issues/issues/468
// See https://github.com/WICG/page-lifecycle
document.addEventListener('freeze', ( ) => {
uDom('.tabButton').off('click', onTabClickHandler);
});
document.addEventListener('resume', ( ) => {
uDom('.tabButton').on('click', onTabClickHandler);
});
/******************************************************************************/
})();

View File

@ -672,20 +672,6 @@ DOMList.prototype.trigger = function(etype) {
/******************************************************************************/
// Cleanup
const onBeforeUnload = function() {
var entry;
while ( (entry = listenerEntries.pop()) ) {
entry.dispose();
}
window.removeEventListener('beforeunload', onBeforeUnload);
};
window.addEventListener('beforeunload', onBeforeUnload);
/******************************************************************************/
return DOMListFactory;
})();