LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2016, 04:19 AM   #1
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 1,734

Rep: Reputation: 212Reputation: 212Reputation: 212
Firefox is displaying Javascript source code instead of ads


I should probably be thankful, right?

First, the background: I'm currently on Firefox 50.0.2 (running on OpenSUSE if that matters). Plugins: Shockwave Flash 11.2.202.491, AdBlock Plus 2.8.2, Flashblock 1.5.20, NoScript 2.9.5.2.

What I'm seeing: some sites that contain Javascript doodads (technical term) wind up not displaying or implementing what the script was intended to be doing. Instead FF is displaying the "raw" Javascript. I can't tell if it's clobbering functionality of those sites or not. I don't see the problem on all sites. I'm guessing that whatever is causing this to happen may be due to some aspect of Javascript (I'm not a Javascript coder, BTW) that doesn't work with FF's interpreter. I do not see major problems with the sites where I'm seeing source code in lieu of whatever the script was supposed to be doing. Menus seem to work, navigation appears to work, etc.

I've tried visiting the sites where I'm seeing the problem using the usual alternative browsers -- like Opera, Konqueror, Chrome, etc. -- and have not noticed the problem when viewing with those browsers. Just with Firefox.

The update to 50.0.2 came about a week ago. I'm fairly sure that the problem began before that, though. Prior to 50.0.2, I'd been running FF 49.0.1 since 10/08. What I have no idea about is whether the web sites have done any revamps to part (or parts) of their sites that could be causing this.

Any ideas?

TIA...

--
Rick
 
Old 12-13-2016, 05:31 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Pick one of the sites that causes the problem. Disable all the plugins you mention and try it again. If the problem disappears, add the plugins one by one, testing each time. I suspect one of the plugins is causing the problem, or the interaction between two or more of them.
 
1 members found this post helpful.
Old 12-13-2016, 03:19 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 1,734

Original Poster
Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
... I suspect one of the plugins is causing the problem, or the interaction between two or more of them.
NoScript seems to trigger the problem. That was totally unexpected though it seems to work if I set everything back to defaults. I did re-enable "temporarily allow top-level sites by default" and haven't encountered any ill effects yet. This was set before, though, so there's likely either another setting that caused the script display or some conflict between NoScript (and one of its settings) and another of the previously loaded plugins. I've currently only re-enabled AdBlock Plus and Noscript. I'll test that combination for a while and see if I can get by with those. Testing all the possible combinations of plugins and their settings is probably not too practical.
 
1 members found this post helpful.
Old 12-15-2016, 05:50 PM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 1,734

Original Poster
Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
I've currently only re-enabled AdBlock Plus and Noscript. I'll test that combination for a while and see if I can get by with those.
Hmm... most sites were still working nicely until I encountered one that refused to follow menu items. After clicking on "Temporarily allow all this page" -- which, annoyingly, caused many tabs to reload -- the problem of displaying Javascript source code returned. Working theory: There's some Javascript library floating around that's gotten used my some web developers that is broken in some odd way. Still debugging this one --- not full-time, though -- but I think I mentioned somewhere up above that I'm not a JS developer. The best I ever expect to get out of any debugging is to narrow down the chunk of JS that is getting pulled in just before the problem returns. We'll see...
 
Old 12-15-2016, 06:47 PM   #5
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: Devuan+lxde
Posts: 656

Rep: Reputation: 190Reputation: 190
I'm not sure what the issue is here. That is the function of NoScript. It is intended to block java from running in websites. When you click on "Temporarily Allow All This Page" and the tabs reload that's because it's changing the setting across open tabs, it's also a setting in NoScript that you can change to only reload the current tab.
 
Old 12-15-2016, 10:06 PM   #6
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 1,734

Original Poster
Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
I'm not sure what the issue is here.
The issue is that enabling Javascript shouldn't cause the Javascript source code from being displayed in lieu of what the heck it was supposed to be doing.

Quote:
When you click on "Temporarily Allow All This Page" and the tabs reload that's because it's changing the setting across open tabs, it's also a setting in NoScript that you can change to only reload the current tab.
So I have to manually enable an option to use the proper definition of "This Page"? As Wolfgang Pauli once said:

``This is not right... This is not even wrong!''

Maybe I should unload NoScript altogether and take my chances. It's been more than once that the entire FF browser has gone down taking multiple windows and tabs with it and the first thing that comes up when FF is restarted is the "Welcome to the new version of NoScript" page.
 
Old 12-15-2016, 10:50 PM   #7
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: Devuan+lxde
Posts: 656

Rep: Reputation: 190Reputation: 190
Ohhhh so you were having the issue of them not displaying properly after you selected to temporarily allow them?


And I don't think I was very clear, it's not allowing temporarily on the other pages as well, but it just refreshes its current information. I'm not exactly sure why it reloads all pages by default, but you can turn that off.

Also, you have a number of plugins that are all trying to do the same thing. Adblock, NoScript, and flashblock

I would consider uninstalling one or two and see what happens. I'm currently using only NoScript on firefox and am not having any issues. But I'm on 45.5.1
 
Old 12-16-2016, 03:50 AM   #8
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 1,734

Original Poster
Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Ohhhh so you were having the issue of them not displaying properly after you selected to temporarily allow them?
Yes. Some pages appear to load/display correctly but then you find that menu items don't work until you allow some more Javascript to load -- sometimes it might take several clicks of that "Temporarily allow..." button until everything works. (Major pet peeve that is.) As I mentioned above, though. It's not universal. Some pages never cause the code display. Some only after I allow a little more Javascript to load.

Quote:
I'm not exactly sure why it reloads all pages by default, but you can turn that off.
NoScript really ought to either change that button "name" or make "this page only" the default. Just my US$0.02. (I normally have a ton of tabs open and it can be a real performance hit when a bunch of tabs start loading more code.)

As part of my initial debugging, I'd gone back to using only AdBlock and NoScript with NoScript set back to factory defaults (though I re-enabled "Allow top-level sites"). The option you're thinking of is not on by default.

Quote:
Also, you have a number of plugins that are all trying to do the same thing. Adblock, NoScript, and flashblock
I've currently got NoScript disabled and enabled Flashblock. So far so good. No annoying code dumps on web pages for the better part of a day. And -- added plus -- FF seems a little peppier. I was tired of monitoring FF in top/htop so I tweaked my KDE FF icon command line to run it in via 'nice'. Now FF CPU use shows up as 'red' in my Gkrellm CPU monitor. Before turning off NOScript there be a sea of red in that monitor and occasional stretches where the CPU was pegged with FF activity. Now? Barely any. I'm still watching things, though.

Also, I was under the impression that AdBlock and NoScript [i]might[\i] have some overlap but were intended to address different browser annoyances.

Later...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to import and backup bookmarks in firefox with javascript or php code? luofeiyu Linux - Software 1 12-25-2015 06:22 PM
need source code for FlashGot plugin for Firefox r00tb33r Linux - Software 2 07-24-2008 01:43 PM
Ubuntu Edgy/Firefox 2/Javascript - Firefox closes accessing websites with Javascript Interdictor Ubuntu 8 11-02-2006 12:58 PM
Javascript Code doesnt work w/ firefox? swatward Programming 1 04-18-2005 07:54 PM
Mozilla & Javascript : Not displaying menu Maxwell Rain Linux - Software 0 10-02-2004 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration