1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-24 11:22:44 +01:00

Remove (broken) benchmark pane

This commit is contained in:
Raymond Hill 2018-12-21 12:01:24 -05:00
parent 2849dbb805
commit 610ca2684b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
5 changed files with 1 additions and 18 deletions

View File

@ -76,9 +76,6 @@ iframe {
body:not(.canUpdateShortcuts) .tabButton[href="#shortcuts.html"] {
display: none;
}
body:not(.canBenchmark) .tabButton[href="#benchmarks.html"] {
display: none;
}
@media (max-width: 640px) {
#dashboard-nav {

View File

@ -19,8 +19,7 @@
--><a class="tabButton" href="#dyna-rules.html" data-i18n="rulesPageName"></a><!--
--><a class="tabButton" href="#whitelist.html" data-i18n="whitelistPageName"></a><!--
--><a class="tabButton" href="#shortcuts.html" data-i18n="shortcutsPageName"></a><!--
--><a class="tabButton" href="#about.html" data-i18n="aboutPageName"></a><!--
--><a class="tabButton" href="#benchmarks.html">Benchmarks</a>
--><a class="tabButton" href="#about.html" data-i18n="aboutPageName"></a>
</div>
</div>

View File

@ -42,7 +42,6 @@ const µBlock = (function() { // jshint ignore:line
assetFetchTimeout: 30,
autoUpdateAssetFetchPeriod: 120,
autoUpdatePeriod: 7,
benchmarkingPane: false,
cacheStorageCompression: true,
cacheControlForFirefox1376932: 'no-cache, no-store, must-revalidate',
debugScriptlets: false,

View File

@ -74,10 +74,6 @@ vAPI.messaging.send('dashboard', { what: 'canUpdateShortcuts' }, response => {
document.body.classList.toggle('canUpdateShortcuts', response === true);
});
vAPI.messaging.send('dashboard', { what: 'benchmarkingPane' }, response => {
document.body.classList.toggle('canBenchmark', response === true);
});
resizeFrame();
window.addEventListener('resize', resizeFrame);
uDom('.tabButton').on('click', onTabClickHandler);

View File

@ -1041,14 +1041,6 @@ var onMessage = function(request, sender, callback) {
var response;
switch ( request.what ) {
case 'benchmark':
response = µb.staticNetFilteringEngine.benchmark(request.contexts);
break;
case 'benchmarkingPane':
response = µb.hiddenSettings.benchmarkingPane;
break;
case 'canUpdateShortcuts':
response = µb.canUpdateShortcuts;
break;