External File Surrogates Not Working Correctly
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
External File Surrogates Not Working Correctly
javascript in an external file is not being "reloaded"??? please see my video. it will answer ALL your questions.
http://youtu.be/ppcZ5piCUOY
why aren't scripts written to an external file reloading as expected???
http://youtu.be/ppcZ5piCUOY
why aren't scripts written to an external file reloading as expected???
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Re: External File Surrogates Not Working Correctly
What if you clear the browser cache before reloading the page?
If that doesn't work you've probably found a bug in NoScript...
If that doesn't work you've probably found a bug in NoScript...
*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
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
Re: External File Surrogates Not Working Correctly
clearing results in the same issue. the changing of the source file has no effect on subsequent reloads.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Re: External File Surrogates Not Working Correctly
OK I'm going to dig around in the source and see if I can produce a more detailed report.
*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
Re: External File Surrogates Not Working Correctly
I think what's happening is that NoScript is preloading the file at the time of surrogate creation rather than reading the file synchronously when it's needed, so if the file is changed externally NoScript won't know that anything happened.
I think that unfortunately for you, the way Giorgio has designed it is the best way performance-wise.
If you change the file, then make any changes to either surrogate pref (then change it back to what you want), do your changes to the file load?
I expect that in any case restarting the browser would get the new contents of the file.
I think that unfortunately for you, the way Giorgio has designed it is the best way performance-wise.
If you change the file, then make any changes to either surrogate pref (then change it back to what you want), do your changes to the file load?
I expect that in any case restarting the browser would get the new contents of the file.
*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
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
Re: External File Surrogates Not Working Correctly
can we get him to comment on this to see if that's truth rather than your hunch?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
- Giorgio Maone
- Site Admin
- Posts: 9454
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: External File Surrogates Not Working Correctly
That's exactly how it works. Otherwise it should perform blocking disk I/O every time a page which need a replacement is loaded, which is unacceptable performance-wise.TooCrooked wrote:can we get him to comment on this to see if that's truth rather than your hunch?
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
Re: External File Surrogates Not Working Correctly
Thank you for confirming.
Would it be possible, for the purposes of debugging, for you to implement the ability to change some noscript about:config preference to allow synchronous loading of external files?
having to close and reopen the browser is beyond exceedingly tedious!
Would it be possible, for the purposes of debugging, for you to implement the ability to change some noscript about:config preference to allow synchronous loading of external files?
having to close and reopen the browser is beyond exceedingly tedious!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
- Giorgio Maone
- Site Admin
- Posts: 9454
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: External File Surrogates Not Working Correctly
You don't need to do that.TooCrooked wrote: having to close and reopen the browser is beyond exceedingly tedious!
Just keep about:config open and modify any noscript.surrogate.* preference value to trigger a full reload.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
Re: External File Surrogates Not Working Correctly
The heavyweight approach, I guess, would be to set up a file monitor that would alert NoScript to any changes in the file. But that's very likely not worthwhile.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
Re: External File Surrogates Not Working Correctly
?? what do you mean?Giorgio Maone wrote:Just keep about:config open and modify any noscript.surrogate.* preference value to trigger a full reload.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
Re: External File Surrogates Not Working Correctly
so you're saying i have to edit my file, then go into about config, change any random preference (double click, add info, click okay, switch back to tab, reload) to get "updates" to my file?
edit...
that's exactly what you're saying. 12 billion clicks, mousemovements and typing to get a file to reload. incredible!
edit...
that's exactly what you're saying. 12 billion clicks, mousemovements and typing to get a file to reload. incredible!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
-
- Posts: 19
- Joined: Sun May 02, 2010 9:51 pm
Re: External File Surrogates Not Working Correctly
well, in either case, it's not working reliably. it was working initially and then it just stopped working. ill illustrate later.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
Re: External File Surrogates Not Working Correctly
Giorgio already explained that automatically picking up the changes would be obscenely expensive.TooCrooked wrote: that's exactly what you're saying. 12 billion clicks, mousemovements and typing to get a file to reload. incredible!
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0