Opened 4 years ago

Closed 23 months ago

Last modified 5 weeks ago

#3702 closed defect (rejected)

Adblock Plus sometimes tries to access undefined properties after shutdown

Reported by: sergz Assignee:
Priority: P3 Milestone:
Module: Adblock-Plus-for-Firefox Keywords:
Cc: trev Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description (last modified by trev)

Environment

Mozilla Firefox 44.0.2
Adblock Plus 2.7.2

How to reproduce

  1. Install Adblock Plus
  2. Disable it via Add-ons Manager.

Observed behaviour

Error messages in Browser Console:

Full message: TypeError: require is not a function
Full stack: exports.Utils.yield@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/utils.js:354:19
INIParser.prototype.process@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/filterStorage.js:798:7
exports.IO.readFromFile/onProgress@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/io.js:97:15
exports.IO.readFromFile/<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/io.js:182:11
TaskImpl_run@resource://gre/modules/Task.jsm:314:40
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:934:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:813:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:1

Full message: TypeError: Cu is null
Full stack: exports.FilterStorage.loadFromDisk/readFile</<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/filterStorage.js:380:11
exports.IO.readFromFile/onError@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///tmp/tmpNal4NH.mozrunner/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/io.js:149:9
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937:21
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:813:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:1

Expected behaviour

It should gracefully shutdown.

Additional notes

The io module is still triggering callbacks after the extension is shut down. It should check onShutdown.done for any async processing.

Change History (6)

comment:1 Changed 4 years ago by trev

  • Cc trev added
  • Description modified (diff)
  • Keywords crawler removed
  • Priority changed from Unknown to P3
  • Ready set
  • Summary changed from ABP for firefox tries to access undefined properties on shutdown in crawler to Adblock Plus sometimes tries to access undefined properties after shutdown

This is a cosmetic problem, not only affecting crawler however. I've adjusted the description accordingly.

comment:2 Changed 23 months ago by trev

  • Resolution set to rejected
  • Status changed from new to closed

Mass-closing all bugs in Adblock Plus for Firefox module, the codebase of Adblock Plus 3.0 belongs into Platform and User-Interface modules. Old bugs are unlikely to still apply.

comment:3 Changed 6 months ago by takken3

Thanks for this visit,many people facing this issue,so today we learn how to split screen windows 10 https://windowsclassroom.com/how-to-split-screen-on-windows-10 i am sure you easy to understand this all process.

comment:4 Changed 4 months ago by SharrySteve1

If with Firefox the bugs are persistent, closing them all quickly is the way to fix the issue. I am wondering if this works with a specific site as I don't want ads to be blocked for this one site. Kindly guide me to unblock ads on my site.
http://www.essayarsenal.co.uk

comment:5 Changed 2 months ago by SharrySteve1

comment:6 Changed 5 weeks ago by Munna123

This website provides us complete information about windows 10 operating system. So visit here and know the complete information of windows 10 operating system.
https://windows10download.xyz/

Note: See TracTickets for help on using tickets.