Fine tune troubleshooting information

This commit is contained in:
Raymond Hill 2023-04-23 10:22:46 -04:00
parent 0a4a200b00
commit ec4480e122
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 6 additions and 2 deletions

View File

@ -617,7 +617,7 @@ const onMessage = function(request, sender, callback) {
case 'launchReporter': { case 'launchReporter': {
const pageStore = µb.pageStoreFromTabId(request.tabId); const pageStore = µb.pageStoreFromTabId(request.tabId);
if ( pageStore === null ) { break; } if ( pageStore === null ) { break; }
if ( vAPI.net.hasUnprocessedRequest(request.tabId) ) { if ( pageStore.hasUnprocessedRequest ) {
request.popupPanel.hasUnprocessedRequest = true; request.popupPanel.hasUnprocessedRequest = true;
} }
vAPI.tabs.executeScript(request.tabId, { vAPI.tabs.executeScript(request.tabId, {
@ -1436,7 +1436,7 @@ const getSupportData = async function() {
} }
if ( Object.keys(addedListset).length === 0 ) { if ( Object.keys(addedListset).length === 0 ) {
addedListset = undefined; addedListset = undefined;
} else if ( Object.keys(addedListset).length > 20 ) { } else if ( Object.keys(addedListset).length > 15 ) {
const added = Object.keys(addedListset); const added = Object.keys(addedListset);
const truncated = added.slice(20); const truncated = added.slice(20);
for ( const key of truncated ) { for ( const key of truncated ) {

View File

@ -409,6 +409,10 @@ const PageStore = class {
// Evaluated on-demand // Evaluated on-demand
this._noCosmeticFiltering = undefined; this._noCosmeticFiltering = undefined;
// Remember if the webpage was potentially improperly filtered, for
// reporting purpose.
this.hasUnprocessedRequest = vAPI.net.hasUnprocessedRequest(tabId);
return this; return this;
} }