Skip to main content
Home
X-notifier

Main navigation

  • Home
  • Forums
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Old forums
  4. X-notifier 3.x for Firefox (deprecated)

X-notifier broken on Firefox 48 because ioService.newChannelFromURI was removed

By Loiro , 13 March 2016

Bug 1254752 removed deprecated functions from nsIIoservice.

It seems X-notifier uses ioService.newChannelFromURI, so now Handler.js:198 throws

gmail 0 TypeError: ioService.newChannelFromURI is not a function
hotmail 0 TypeError: ioService.newChannelFromURI is not a function

Forums
X-notifier 3.x for Firefox (deprecated)

Loiro

10 years 4 months ago

It is easy to fix

It seems easy to fix. In Handler.js line 431, use

Components.utils.import("resource://gre/modules/NetUtil.jsm");
var channel = NetUtil.newChannel({uri: aURL, loadUsingSystemPrincipal: true});

instead of

var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
var uri = ioService.newURI(aURL, null, null);
var channel = ioService.newChannelFromURI(uri);

Loiro

10 years 3 months ago

Not urgent

Bug 1257339 brought back the newChannel() API.

The API is still deprecated, so the code should be changed anyways, but it's less urgent.

  • Log in or register to post comments
  • Default check interval not work
  • Delete X-notifier account
  • Yahoo Mail not working with X-Notifier Neo
  • So X-notifier is dead now?
  • Yahoo broken :(
More
  • Create new account
  • Reset your password
Powered by Drupal