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': {
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 ) {

View file

@ -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;
}