edabg / jsprintsetup

JSPrintSetup Firefox addon
Mozilla Public License 2.0
76 stars 39 forks source link

NS_ERROR_MALFORMED_URI #23

Closed uziel200 closed 7 years ago

uziel200 commented 8 years ago

When you config a host with a port diferent that 80 or 443, the Plugin send this error:

Error: message:Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService.newURI] result:2152398858 name:NS_ERROR_MALFORMED_URI filename:jar:file:///C:/Users/Sergio-Uziel/AppData/Roaming/Mozilla/Firefox/Profiles/kp0tyzoj.default/extensions/jsprintsetup@edabg.com.xpi!/components/jsPrintSetup.js lineNumber:422 columnNumber:0 data:null

mitkola commented 8 years ago

Can you send an sample source code that reproduce the problem? What is actual URI which is opened?

uziel200 commented 8 years ago

With a simple

var perm = jsPrintSetup.getPermissions();

If the current config is: "Prompt for access if site is not in Allowed/Blocked list" i get that error the URL is https://mx.test3i.net:7443/

mitkola commented 8 years ago

I have fixed this bug and now published as new version to AMO and waiting to be reviewed.

uziel200 commented 8 years ago

Thank you for the reply, it was a very quick response, but I downloaded the new version and now I get another error.

I don't open a new issue because I believe it a relative error

Error:Unsupported scheme: about

mitkola commented 8 years ago

jsPrintSetup don't know how to interpret internal scheme about:(by security reasons). file: scheme is local file http: and https: are URLs to internet hosts wich are controlled by permission manager. Try to find workaround not to use about: scheme

dieguitoqueiroz commented 7 years ago

Hi, @uziel200 ...How did you solve that question. I´m with this problem, executing an page on localhost, trying to print a PDF with jsprintsetup.

uziel200 commented 7 years ago

@dieguitoqueiroz update the plugin and then check that localhost can use the plugin as a allocated domain:

captura de pantalla 2016-12-16 a la s 18 16 52

dieguitoqueiroz commented 7 years ago

Thanks @uziel200. That works!