[Resolved] Cannot Allow Scripts Served On Non-Standard Ports

Bug reports and enhancement requests
Post Reply
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

[Resolved] Cannot Allow Scripts Served On Non-Standard Ports

Post by barbaz »

Adapted from:
viewtopic.php?f=7&t=20017
viewtopic.php?f=7&t=20023
viewtopic.php?f=7&t=20014

NoScript >= 2.6.8.37rc3 doesn't properly handle allowing scripts served over non-standard ports.
STR:
1) set up a server to listen on port 80 and 8926 (8926 chosen randomly as something completely weird)
2) connect normally to the server via its hostname (on port 80)
3) navigate to this testpage:

Code: Select all

<!DOCTYPE html>
<script type="text/javascript;version=1.8" src="http://[SERVER'S_IP_ADDRESS]:8926/ftp/qqqq.js"></script>
<div>Alternate Port Test Page</div>
qqqq.js:

Code: Select all

alert("Cuckoo");
4) allow the server, then allow the IP address.

Expected results: get an alert box
Actual results: nothing happens, scripts shown as partially allowed (but no option to allow the missing script), and you have to load the qqqq.js manually after allowing the IP address (then manually reload the page) in order to get the alert box.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 SeaMonkey/2.28
User avatar
Giorgio Maone
Site Admin
Posts: 9529
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Cannot Allow Scripts Served On Non-Standard Ports

Post by Giorgio Maone »

Please check latest development build 2.6.8.40rc2, thanks.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
barbaz
Senior Member
Posts: 11109
Joined: Sat Aug 03, 2013 5:45 pm

Re: Cannot Allow Scripts Served On Non-Standard Ports

Post by barbaz »

Fixed here, thanks 8-)
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 SeaMonkey/2.28
Post Reply