Summit comment button hanging in firefox 3
|Reported by:||PeterLawrence||Owned by:||osimons|
I seem to have an issues with using the AddCommentMacro plugin with trac 0.12 under Firefox. When I click on the AddComment button the page does not get refreshed and Firefox seems to be waiting for data. The problem just seems to be related to the page refresh since the comment does get added to the wiki. Using Internet explorer everything works as expected.
As a temporary fix I commented out the following code in macro.py...
# We can't redirect from macro as it will raise RequestDone # which like other macro errors gets swallowed in the Formatter. # We need to re-raise it in a post_process_request instead. #try: # self.env.log.debug( # "AddComment saved - redirecting to: %s" % page_url) # req._outheaders =  # req.redirect(page_url) #except RequestDone: # req.addcomment_raise = True
and inserted this below the above code...
the_preview = tag.div(heading, format_to_html(self.env, context, comment), class_="wikipage", id="preview") the_message = tag.div(tag.strong("Comment appended."),class_="system-message") comment=""