Closed Bug 756744 Opened 13 years ago Closed 5 years ago

Sometimes Flash Video Downloader logs the visited site in system.log

Categories

(Core :: Widget: Cocoa, defect)

12 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: gianluca77, Unassigned)

Details

(Keywords: privacy)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0
Build ID: 20120420145725

Steps to reproduce:

I just navigated some sites, closed tabs or changed the url in the current tab.


Actual results:

In the /var/system.log a line like this:
May 19 09:42:34 MACHINENAME [0x0-0x1a01a].org.mozilla.firefox[334]: REMOVE http://www.repubblica.it/
appears. Is not sistematic, it's occasional.


Expected results:

Logs line like these should not appears. I'm not sure if this happens even with anonymous navigation, but this is a form of tracking or browsing history that a user can't remove like the regular browser history.
Component: Untriaged → Widget: Cocoa
Keywords: privacy
Product: Firefox → Core
QA Contact: untriaged → cocoa
Do you have private browsing turned on?  Does this problem happen with a fresh profile (testing with private browsing turned off and turned on)?

I've never seen such messages in the system log, but then I never use private browsing.

It's impossible that this bug is in widget code -- widget doesn't do any networking.  For the same reason it's very unlikely that this bug is Mac-specific.

Josh, can you think of anything in netwerk that might be responsible for this?
If this problem doesn't happen with a fresh profile, it's likely caused by an extension.
I usually don't use private browsing.
I have some active extensions: is there a way i can investigate them for verifying if the message originates there?
I will try to use Firefox with a fresh profile and see what happens.
With a fresh profile, with some testing nothing happened.
But i have used grep to check my extensions. A lot of them use the function 'dump', but only one (Flash Video Downloader - Youtube Downloader 3.6.1) has code like this:
if( typeof this.media_pages[page_url] != "undefined" ){
	dump( "REMOVE " + page_url + "\r\n" );
	delete this.media_pages[page_url];
}
I have tested that is indeed this dump by modifying the REMOVE with some random text: in the logs i see the url (for example a youtube video url).

But why dump is writing on system.log? (and there's a way to prevent it?)
(In reply to Gianluca from comment #4)

I don't think there is a way to prevent that except for just disabling the extension. We should file a report with them.
As you're probably aware, dump() in JavaScript code is the equivalent of printf() in C/C++ code.  It's very useful for debugging.

But dump() normally writes to STDOUT or STDERR (I can't remember which), and not to /var/log/system.log.  Might you have changed your /etc/syslog.conf file (and thereby changed what gets written to system.log)?

Also, there's a "browser.dom.window.dump.enabled" setting (settable in about:config) that defaults to "false".  Might you have changed this to "true"?

Good work, by the way, finding which extension is responsible for the REMOVE messages.  Take a look at the JavaScript code nearby the code that calls dump().  It's conceivable there's other code that explicitly writes to system.log.  The equivalent in C code would be the syslog() command, so the JavaScript command (if there is one) might have a similar name.
I see in fact some other logs by firefox that probably are made by that extension (messages like 'CHECK IS 37462384623', '423423333 > 323423243').
I have browser.dom.window.dump.enabled set to false. I tried to made some dump call from the js console but i see them only in the console that launched firefox, not in syslog (i launched via terminal for testing).
My syslog.conf is untouched, at least directly by me, for the file it looks like this:
*.notice;authpriv,remoteauth,ftp,install,internal.none  /var/log/system.log
I don't know if that includes the channels for the firefox dump.
I suspect your Downloader extension is doing something strange -- either writing to system.log directly or somehow causing dump() to do it.

In that case Josh is right -- you can only stop this by disabling the extension.

You should probably open a bug with whoever's responsible for that extension.
> I suspect your Downloader extension is doing something strange -- either writing
> to system.log directly or somehow causing dump() to do it.

It's conceivable that the extension is replacing FF's dump() with its own dump().
Summary: Sometimes Firefox logs the visited site in system.log → Sometimes Flash Video Downloader logs the visited site in system.log

Cleaning up open/old privacy tagged bugs .... Flash support will be removed in Bug 1455897 (Dec 2020 is the plan), recommend closing this as WONTFIX

pinging ehsan :)

Flags: needinfo?(ehsan)

I can answer here. Yes, let's close this bug.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(ehsan)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.