mirror of https://github.com/gorhill/uBlock.git
Fine tune troubleshooting information
This commit is contained in:
parent
0a4a200b00
commit
ec4480e122
|
@ -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 New Issue