Last modified: 2014-01-24 05:06:28 UTC
Created attachment 7724 [details] Screenshot of this bug After I've edited the comment http://pt.wikibooks.org/wiki/T%C3%B3pico:Wikilivros:Di%C3%A1logos_comunit%C3%A1rios/Imagens_usadas_no_projeto/resposta_%284%29 and changed from it's Firefox tab to another I got the following error in Firebug: data.query.threads[threadId] is undefined http://pt.wikibooks.org/w/extensions/LiquidThreads/lqt.js?283y Line 555
Maybe it should be added a test such as --- if (typeof data.query.threads[threadId] !== 'undefined') { ... } --- somewhere?
I'd like a way to reproduce this...
I don't remember seeing this again since I reported it, so I can't provide more specific steps to reproduce this. Anyway, it still seems fragile to access ".content" without checking if "data.query.threads[threadId]" is defined.
There are many places where the code is that fragile. But its important to know what we are fixing. I vote to this as invalid as it seems to always remain this vague in the future.
I didn't get a screenshot, but I was able to reproduce this (I think, based on the description and my reliance on Google Translate for the Portuguese ;) ) in Firefox. Editing a comment worked fine in Chrome, however attempting to edit a comment on that page in Firefox would refresh the page and delete the entire comment.
Jaime: If you can reproduce it, Firebug or JavaScript error console output is very welcome, plus a link/URL where to reproduce.
Removing "easy" until clear and consistent steps to reproduce are added.