mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Fine tune troubleshooting information
This commit is contained in:
parent
0a4a200b00
commit
ec4480e122
2 changed files with 6 additions and 2 deletions
|
@ -617,7 +617,7 @@ const onMessage = function(request, sender, callback) {
|
|||
case 'launchReporter': {
|
||||
const pageStore = µb.pageStoreFromTabId(request.tabId);
|
||||
if ( pageStore === null ) { break; }
|
||||
if ( vAPI.net.hasUnprocessedRequest(request.tabId) ) {
|
||||
if ( pageStore.hasUnprocessedRequest ) {
|
||||
request.popupPanel.hasUnprocessedRequest = true;
|
||||
}
|
||||
vAPI.tabs.executeScript(request.tabId, {
|
||||
|
@ -1436,7 +1436,7 @@ const getSupportData = async function() {
|
|||
}
|
||||
if ( Object.keys(addedListset).length === 0 ) {
|
||||
addedListset = undefined;
|
||||
} else if ( Object.keys(addedListset).length > 20 ) {
|
||||
} else if ( Object.keys(addedListset).length > 15 ) {
|
||||
const added = Object.keys(addedListset);
|
||||
const truncated = added.slice(20);
|
||||
for ( const key of truncated ) {
|
||||
|
|
|
@ -409,6 +409,10 @@ const PageStore = class {
|
|||
// Evaluated on-demand
|
||||
this._noCosmeticFiltering = undefined;
|
||||
|
||||
// Remember if the webpage was potentially improperly filtered, for
|
||||
// reporting purpose.
|
||||
this.hasUnprocessedRequest = vAPI.net.hasUnprocessedRequest(tabId);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue