Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#4527 closed defect (fixed)

TypeError: can't access dead object in child/elemHide.js

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

Description (last modified by trev)


Adblock Plus
Firefox 52.0a1 nightly (2016-10-13)
macOS 10.12

How to reproduce

  1. Press Ctrl/Cmd+Shift+J to open Browser Console.
  2. Go back to the browser window and press Ctrl/Cmd+T to open a new tab.
  3. Type into the location bar and press Enter.
  4. Look at the Browser Console.

Observed behaviour

The following error message shows up:

TypeError: can't access dead object

Expected behaviour

No error messages.


This appears to be a regression from #524. In the observer we verify that the window hasn't been garbage collected by means of calling Cu.isDeadWrapper(). However, later we are accessing subject which is the corresponding document - and it appears that it has been garbage collected independently of the window.

Change History (5)

comment:1 Changed 4 years ago by trev

  • Description modified (diff)

comment:2 Changed 4 years ago by trev

  • Review URL(s) modified (diff)
  • Status changed from new to reviewing

comment:3 Changed 4 years ago by abpbot

comment:4 Changed 4 years ago by trev

  • Milestone set to Adblock-Plus-for-Firefox-next
  • Resolution set to fixed
  • Status changed from reviewing to closed

comment:5 Changed 4 years ago by Ross

  • Tester changed from Unknown to Ross
  • Verified working set


Firefox Nightly 52.0a1 (2016-10-20) / OS X 10.12

Version 0, edited 4 years ago by Ross (next)
Note: See TracTickets for help on using tickets.