Suppress Firefox/Firebug SHA-1 warning

夙愿已清 提交于 2019-11-28 07:08:42

you can get rid of the message, but you have to modify firebugs code.

Sorry forgot to mention you need to convert the .xpi to .zip and extract the files first. You can leave the folder as is when done or zip it and convert it to an xpi again. You will need to restart Firefox.

  1. locate the pluggin in your firefox profile dirctor and go to this file "\extensions\firebug@software.joehewitt.com\content\firebug\console\errors.js".
  2. search for "logScriptError: function(context, object, isWarning)".
  3. After the code "var error = new ErrorMessageObj(object.errorMessage, object.sourceName, object.lineNumber, object.sourceLine, category, context, null);".

input the following code:

if(error.message.indexOf('SHA-1') != -1 || error.message.indexOf('Security Policy') != -1){
            return false;
        }

should be about line 330.

As stated in the Firebug discussion group, Firebug's Console panel currently (Firebug 2.x) cannot filter single messages out. You can only filter by messages matching a specific text using the search field.

There are enhancement requests like issue #4507 reported to add such a filter, though it is unlikely that this will get implemented in Firebug, especially not in version 2.x, directly.

Firebug 3 will integrate into the built-in DevTools, which allow you to filter those warnings by unchecking Warnings within the Security menu inside the Console panel:

Besides that I created bug 1170476 asking to reduce the messages to a minimum.

Update:

Firebug development is discontinued. Instead, there is a Firebug theme available within the Firefox DevTools starting from Firefox 48. Bug 1170476 is fixed since Firefox 42, so you will only see one message logged with a counter showing how often the message occurred.

Select the Console tab and, keeping pressed Ctrl on the keyboard, click on Errors, Info, Debug Info, Cookies.

Bear in mind that this will disable the output of all the warnings logged in Firebug and not only the ones generated by googleapis.

Remove HTTPS from the URL or keep all resources local.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!