Javascript error on answers.launchpad.net

Bug #127172 reported by Curtis Hovey
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Undecided
Curtis Hovey

Bug Description

The front page to Answers <http://answers.launchpad.net/> is throwing an error:

_2fe has no properties

https://launchpad.net/+icing/rev117/MochaKit.js
    2880 var _300=(_2fe.getElementsByTagName(_2fc)||self._document.all);

Traceback:
#0: function anonymous(_2fc=string:"*", _2fd=string:"foldable", _2fe=HTMLDocument:{0}) in <https://launchpad.net/+icing/rev117/MochiKit.js> line 2879
#1: function activateFoldables() in <https://launchpad.net/+icing/rev117/launchpad.js> line 226
#3: function anonymous(_3de=Event:{0}) in <https://launchpad.net/+icing/rev117/MochiKit.js> line 3863

There is nothing foldable on the page, so I expect this call to greacefully exit.

Revision history for this message
Curtis Hovey (sinzui) wrote :

I have filed a bug with Mochikit: <http://trac.mochikit.com/ticket/255>.

The script dies when the parent element is null in getElementsByTagAndClassName('span', 'foldable', maincontent). I'm adding a test and will exist early if the element is missing.

Changed in launchpad:
status: New → In Progress
assignee: nobody → sinzui-is
Revision history for this message
Curtis Hovey (sinzui) wrote :

I cannot reproduce this issue in production any more. I have added a sanity check in the code none the less since I was in the code for another reason.

Revision history for this message
Curtis Hovey (sinzui) wrote :

I have not been able to reproduce this issue for a whole release now. I'm closing this. This may have been fixed by a cherrypick, or was a by product of a caching problem in my browser.

Changed in launchpad:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.