Changeset fb1742


Ignore:
Timestamp:
Sep 10, 2018, 7:14:50 PM (14 months ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
91994f
Parents:
46c88d
Message:

fixed openUrl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/prefDialog/vI_prefDialog.js

    r46c88d rfb1742  
    352352
    353353      openURL: function (aURL) {
    354         var uri = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIURI);
    355354        var protocolSvc = Components.classes["@mozilla.org/uriloader/external-protocol-service;1"].getService(Components.interfaces.nsIExternalProtocolService);
     355       
     356        var ioService = Components.classes["@mozilla.org/network/io-service;1"]
     357                  .getService(Components.interfaces.nsIIOService);
    356358        Log.debug("load url " + aURL);
    357         uri.spec = aURL;
    358         protocolSvc.loadURI(uri);
     359        protocolSvc.loadURI(ioService.newURI(aURL));
    359360      }
    360361    }
Note: See TracChangeset for help on using the changeset viewer.