"NoScript aborted redirection to" error

Bug reports and enhancement requests
Post Reply
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

"NoScript aborted redirection to" error

Post by al_9x »

Saw this in the console:

Code: Select all

Error: 'NoScript aborted redirection to http://a.collective-media.net/ad/ns.neowin.net/homepage;ppos=btf;kw=;tile=2;sz=300x250,336x280,300x600;ord=123456789' when calling method: [nsIChannelEventSink::onChannelRedirect] = NS_ERROR_XPC_JS_THREW_STRING
wanted to know what this was, here's what I found:

It's coming from http://www.neowin.net/

Fx3.6.3, NS 1.9.9.87, new profile, allow neowin.net, forbid "web bugs"
  1. Neowin has an ad iframe

    Code: Select all

    <iframe src="http://www.neowin.net/ads/leaderboard/atf?ajax=true" style="border:none;height:90px;width:728px;display:block" scrolling="no" frameborder="0"></iframe>
    
    with the following content:

    Code: Select all

    <!DOCTYPE html>
    <html>
    	<head>
    		<style type="text/css">
    			body {
    				padding: 0;
    				margin: 0;
    			}
    		</style>
    	</head>
    	<body>
    		<script type="text/javascript"> 
    		//<![CDATA[
    		ord = window.ord || Math.floor(Math.random()*1E16);
    		document.write('<script type="text/javascript" src="http://ad4.netshelter.net/adj/ns.neowin.net/homepage;ppos=atf;kw=;tile=1;dcopt=ist;sz=728x90;ord=' + ord + '?"><\/script>');
    		//]]>
    		</script> 
    		<noscript><a href="http://ad4.netshelter.net/jump/ns.neowin.net/homepage;ppos=atf;kw=;tile=1;sz=728x90;ord=123456789?" target="_blank" ><img src="http://ad4.netshelter.net/ad/ns.neowin.net/homepage;ppos=atf;kw=;tile=1;sz=728x90;ord=123456789?" border="0" alt="" /></a></noscript> 
    	</body>
    
    </html>
    
  2. The first question is what should happen to <noscript> if inline script is allowed but included (ad4.netshelter.net), not. Currently if the page is root, such <noscript> is not active, but if it's an iframe, it is active. Why this inconsistency?
  3. In this case it's an iframe, so <noscript> is activated and the web bug image loads
  4. but it's not blocked by NS (forbid web bugs), why?
  5. instead its 301 redirection is blocked producing the error at the top
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "NoScript aborted redirection to" error

Post by Giorgio Maone »

This is probably an unwanted interaction with the "Show <NOSCRIPT> element which follows a blocked <SCRIPT>" preference.
Not sure of how easy it would be to fix...
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: "NoScript aborted redirection to" error

Post by al_9x »

Giorgio Maone wrote:This is probably an unwanted interaction with the "Show <NOSCRIPT> element which follows a blocked <SCRIPT>" preference.
Not sure of how easy it would be to fix...
Forgot about that pref. So that answers the first question, <noscript> should be shown. That still leaves:
  1. In my local test (same as neowin, external <script> is doc.written) <noscript> is not activated when the page is root
  2. back to neowin, why is the web bug image in the <noscript> not blocked?
  3. but its redirect is blocked?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: "NoScript aborted redirection to" error

Post by al_9x »

Is "More consistent web bugs blocking with forced NOSCRIPT elements" in .88 for this?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "NoScript aborted redirection to" error

Post by Giorgio Maone »

al_9x wrote:Is "More consistent web bugs blocking with forced NOSCRIPT elements" in .88 for this?
Yes.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: "NoScript aborted redirection to" error

Post by al_9x »

Giorgio Maone wrote:
al_9x wrote:Is "More consistent web bugs blocking with forced NOSCRIPT elements" in .88 for this?
Yes.
I am seeing no changes in .88, the three points/questions from the previous post still apply.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "NoScript aborted redirection to" error

Post by Giorgio Maone »

Did you clear your cache?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: "NoScript aborted redirection to" error

Post by al_9x »

Giorgio Maone wrote:Did you clear your cache?
yes, new profile, no cache

For #1, here's a test page, allow file://, forbid web bugs

Code: Select all

<html>
<head>
</head>
<body>
<script>
alert('inline script:' + location);
document.write("<script src=\"http://nontrusted.invalid/\"><\/script>");
</script>
<noscript>
web bug: <img src="http://software.informaction.com/data/noscript/no16.png">
</noscript>
</body>
</html>
when top level, <noscript> is not shown at all
when an iframe, <noscript> is shown but the web bug is not blocked, despite forbid web bugs

for #2 & #3: new profile, allow neowin.net, forbid web bugs, load http://www.neowin.net/

you should get:

Code: Select all

Error: [Exception... "'NoScript aborted redirection to http://a.collective-media.net/ad/ns.neowin.net/homepage;ppos=atf;kw=;tile=1;sz=728x90;ord=123456789' when calling method: [nsIChannelEventSink::onChannelRedirect]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]
this indicates that the web bug image in the ad iframe is not blocked, but its redirection is aborted (curious, why?) with the above error.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "NoScript aborted redirection to" error

Post by Giorgio Maone »

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: "NoScript aborted redirection to" error

Post by al_9x »

Giorgio Maone wrote:Please check latest development build
  1. Regarding my test page
    1. When loaded as an Iframe, the web bug image is no longer visible, but according to a sniffer, a request (and response) for it is still made
    2. When loaded top level, <noscript> is not shown at all
  2. Regarding neowin
    1. the redirect error is gone because it's no longer aborted, instead of not being made at all, i.e. the web bug request is not being blocked.
    2. The <noscript> content in the ad iframe is displayed as html source

      Code: Select all

      <a href="http://ad4.netshelter.net/jump/ns.neowin.net/homepage;ppos=atf;kw=;tile=1;sz=728x90;ord=123456789?" target="_blank" ><img src="http://ad4.netshelter.net/ad/ns.neowin.net/homepage;ppos=atf;kw=;tile=1;sz=728x90;ord=123456789?" border="0" alt="" /></a>
      
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: "NoScript aborted redirection to" error

Post by Giorgio Maone »

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: "NoScript aborted redirection to" error

Post by al_9x »

Giorgio Maone wrote:Please check latest development build.
fixed
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Post Reply