set_protocol_handlers: fix it, resolving issue372
commit204853b891a20f8d260e9fc791a2a472b9c9221f
authorJohn Foerch <jjfoerch@earthlink.net>
Fri, 14 Oct 2011 05:30:21 +0000 (14 01:30 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Fri, 14 Oct 2011 05:30:21 +0000 (14 01:30 -0400)
treecc8021a04b78117ace940e2217feeadcb2778c50
parent9f663e6390dae11cdeb4d0fd7a0607194efb9614
set_protocol_handlers: fix it, resolving issue372

We were experiencing a problem where simply registering a mailto handler
would later cause following a link a pdf to segfault.  Full details at bug
report url, given below.  It turned out to be caused by a careless error
in the call form for getting the service nsIExternalProtocolService.  (I
had copy-pasted that line from an example somewhere, an example which was,
it turns out, incorrect.)

Also clear the 'possibleApplicationHandlers' list, so it doesn't grow and
grow.

http://bugs.conkeror.org/issue372
modules/utils.js