mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
very slightly more reliable page title lookup
This commit is contained in:
parent
2c3d810840
commit
812d34bfe8
@ -619,9 +619,14 @@ vAPI.tabs.registerListeners();
|
||||
if ( !tab.title && tryAgain(tabId) ) {
|
||||
return;
|
||||
}
|
||||
tryNoMore(tabId);
|
||||
// https://github.com/gorhill/uMatrix/issues/225
|
||||
// Sometimes title changes while page is loading.
|
||||
var settled = tab.title && tab.title === pageStore.title;
|
||||
pageStore.title = tab.title || tab.url || '';
|
||||
this.pageStoresToken = Date.now();
|
||||
if ( settled || !tryAgain(tabId) ) {
|
||||
tryNoMore(tabId);
|
||||
}
|
||||
};
|
||||
|
||||
var updateTitle = function(tabId) {
|
||||
|
Loading…
Reference in New Issue
Block a user