Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

Where can I find source code for browsercomps.dll?

  • 4 ответа
  • 2 имеют эту проблему
  • 3 просмотра
  • Последний ответ от Brian23Fink

more options

I'm looking for a way to disable the command line -private option. Kind of need to peek at the source code for browsercomps.dll to see which component parses the command line. Does anyone know where the source code is located? I'm running Firefox 21 on Windows 7.

I'm looking for a way to disable the command line -private option. Kind of need to peek at the source code for browsercomps.dll to see which component parses the command line. Does anyone know where the source code is located? I'm running Firefox 21 on Windows 7.

Все ответы (4)

more options

You can inspect the source code via the MXR site.

more options

I'm beginning to think the build process differs for each OS, because I searched that site for browsercomps.dll but didn't find it. Instead, I found a lot of separate components. Please help me find the component that does the "private" action so I can override it.

more options

Try to search for private-window.
You will likely want to check the mozilla-release branch.

  • resource:///components/nsBrowserContentHandler.js
more options

Interesting: I commented out the if statement that checks the command line for "private-window", and nothing changed.

C:\Program Files\Mozilla Firefox\firefox.exe -private-window

loaded with a private window anyway. I'm suspecting that the return value of the handleFlag function is a false negative, and that the program has been patched somewhere else to work around the bug, but I'm not certain. As a matter of fact, no statements that I put inside that if statement ever execute. I could probably completely remove the if statement with everything in it, and the private window would still open. This is supremely odd, well near spooky!