Raymond Hill 6 years ago
parent 0f7c82a2d9
commit 9a6b1c2c9c

@ -556,7 +556,7 @@ var pageSelectorChanged = function() {
); );
} }
document.getElementById('reloadTab').classList.toggle('disabled', tabId <= 0); document.getElementById('reloadTab').classList.toggle('disabled', tabId <= 0);
document.getElementById('popupPanelButton').classList.toggle('disabled', tabId === 0); document.getElementById('popupPanelButton').classList.toggle('disabled', tabId <= 0);
popupPanel.update(); popupPanel.update();
}; };
@ -672,7 +672,7 @@ var popupPanel = (function() {
let start = function() { let start = function() {
let newTabId = tabIdFromPageSelector(); let newTabId = tabIdFromPageSelector();
if ( newTabId === 0 ) { if ( newTabId <= 0 ) {
return stop(); return stop();
} }
if ( newTabId === tabId ) { return; } if ( newTabId === tabId ) { return; }

@ -369,12 +369,7 @@ var matrixSnapshotFromTabId = function(details, callback) {
callback('ENOTFOUND'); callback('ENOTFOUND');
return; return;
} }
matrixSnapshotIf(tab.id, details);
// Allow examination of behind-the-scene requests
var tabId = tab.url.lastIndexOf(vAPI.getURL('dashboard.html'), 0) !== 0 ?
tab.id :
vAPI.noTabId;
matrixSnapshotIf(tabId, details);
}; };
vAPI.tabs.get(null, onTabReady); vAPI.tabs.get(null, onTabReady);

@ -208,6 +208,8 @@ PageStore.prototype = {
}, },
recordRequest: function(type, url, block) { recordRequest: function(type, url, block) {
if ( this.tabId <= 0 ) { return; }
if ( block ) { if ( block ) {
this.perLoadBlockedRequestCount++; this.perLoadBlockedRequestCount++;
} else { } else {

Loading…
Cancel
Save