Error when running custom command

View: New views
2 Messages — Rating Filter:   Alert me  

Error when running custom command

by foss[ilized] :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I followed the tip at:

http://conkeror.org/Tips#ManipulateProxySettings

for configuring the proxy settings interactively. But when I enter
values for the proxy server and the proxy port, via the following
command sequence:

(1) M-x set-proxy-session

(2) server: localhost

(3) port: 8118 [for privoxy]

I get the following error:

NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff
(NS_ERROR_UNEXPECTED) [nsIPrefBranch.setCharPref]
set_branch_pref()@chrome://conkeror/content/utils.js:491
default_pref()@chrome://conkeror/content/utils.js:501
session_pref()@chrome://conkeror/content/utils.js:558
set_proxy_session()@chrome://conkeror/content/rc.js ->
file:///home/cachalot/.conkerorrc:20
anonymous()@chrome://conkeror/content/rc.js ->
file:///home/cachalot/.conkerorrc:38
_do_call()@chrome://conkeror/content/coroutine.js:278
anonymous()@chrome://conkeror/content/coroutine.js:410
exit_minibuffer()@chrome://conkeror/content/minibuffer-read.js:436
anonymous()@chrome://conkeror/content/minibuffer-read.js:439
call_interactively()@chrome://conkeror/content/interactive.js:133
keypress_handler()@chrome://conkeror/content/keyboard.js:518

I'm running the Debian conkeror package 0.9~git090223-1 with the
xulrunner package 1.9.0.6-1. Is this a known problem? Thanks in
advance.
_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror

Parent Message unknown Re: Error when running custom command

by foss[ilized] :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 5/26/09, Ramkumar R <artagnon@...> wrote:

Thanks for the sample script!

> Just write your own script to do it. Have a look at mine if you like.
> It's specific to the proxies I have in my institute, but you can
> modify it according to your needs.

// Begin code fragment
function switch_proxy (window, server_code) {
     switch(server_code) {
     case "x": server = "x.x.x.x"; break;
//End code fragment

Mostly I modified it to reflect my need to specify both server and
port. At the moment, the port is more important since I'm running
local web filtering proxies like privoxy and bfilter:

// Begin code fragment
case "P" : server = "127.0.0.1" ; port = 8118 ; break;
// End code fragment
_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror