Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

How to hide Extensions errors in DevTools?

  • 3 답장
  • 0 이 문제를 만남
  • 1 보기
  • 최종 답변자: TyDraniu

more options

Every time I work on the local environment a lot of my extensions go crazy on localhost, throwing enormous amount of errors. This makes console barely readable. Is there a way to disable messages thrown by extensions in the developer tools of Firefox Developer Edition?

Similar to this in Chrome with "Selected context only": https://superuser.com/a/1346827

Thanks.

Every time I work on the local environment a lot of my extensions go crazy on localhost, throwing enormous amount of errors. This makes console barely readable. Is there a way to disable messages thrown by extensions in the developer tools of Firefox Developer Edition? Similar to this in Chrome with "Selected context only": https://superuser.com/a/1346827 Thanks.

모든 댓글 (3)

more options

That sounds like a really useful option, but I don't see anything along those lines when I look around for it.

The DevTools team has its own forum where you could check on that and/or tell them this is important to you:

https://discourse.mozilla.org/c/devtools/213


As a crude workaround, you could disable all extensions from injecting scripts into https://localhost/ pages by adding localhost to the restricted domains list. Please be careful to not remove Mozilla domains from this list because they are there to protect against add-ons gaining elevated access to internal features or Firefox Account data.

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

More info on about:config: Configuration Editor for Firefox. The moderators would like us to remind you that changes made through this back door aren't fully supported and aren't guaranteed to continue working in the future.

(2) In the search box in the page, type or paste extensions.webextensions.restrictedDomains and pause while the list is filtered

(3) Double-click the preference to display an editing field, click at the end and add a comma, then the host name of the site you want to shield from extension interference (I add financial institutions here, for example).

Down the road, when Firefox supports "Manifest v3" add-ons, you'll be able to opt sites in and out of running individual extensions. Can't come soon enough.

more options

Thank you greatly for your time and such detailed answer!

I sure will leave a feedback on dev tools forum for that. I see that there's a similar question there regarding CSP errors thrown by the extensions (to be frank, that was the main issue I was facing, I just was not diving into details to see what kind of resources extensions request).

Turning off specific add-ons for specific websites would be the best solution though for sure.

more options

You could also create a separate profile for development, without addons.