Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 8c47f56

Browse files
committed
regression bug due to latest changes
1 parent 8f6b369 commit 8c47f56

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

js/presets.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ HTTPSB.PresetManager.prototype.applyToScope = function(targetScopeKey, presetId)
234234
if ( scopeKey !== '*' && httpsb.temporaryScopeExists(scopeKey) === false ) {
235235
httpsb.createTemporaryScopeFromScopeKey(scopeKey);
236236
httpsb.whitelistTemporarily(scopeKey, 'main_frame', '*');
237-
httpsb.whitelistTemporarily(scopeKey, 'stylesheet', '*');
238-
httpsb.whitelistTemporarily(scopeKey, 'image', '*');
239-
httpsb.copyTemporaryBlackRules(scopeKey, '*');
237+
httpsb.copyTemporaryRules(scopeKey, '*');
240238
}
241239
rules = scopeFields[1].split(',');
242240
j = rules.length;

js/tab.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,10 @@ HTTPSB.pageStatsFromTabId = function(tabId) {
495495
};
496496

497497
HTTPSB.pageStatsFromPageUrl = function(pageUrl) {
498-
return this.pageStats[pageUrl];
498+
if ( pageUrl ) {
499+
return this.pageStats[pageUrl];
500+
}
501+
return null;
499502
};
500503

501504
/******************************************************************************/

0 commit comments

Comments
 (0)