Open Bug 697207 Opened 13 years ago Updated 2 years ago

ASSERTION: Unexpected document: 'capturingContent->GetCurrentDoc() == GetDocument()'

Categories

(Core :: General, defect)

x86_64
Linux
defect

Tracking

()

People

(Reporter: MatsPalmgren_bugz, Unassigned)

Details

(Keywords: assertion, reproducible, testcase)

STEPS TO REPRODUCE 1. load layout/reftests/bugs/598726-1.html in a debug build 2. click on the text field ACTUAL RESULT ###!!! ASSERTION: Unexpected document: 'capturingContent->GetCurrentDoc() == GetDocument()', file layout/base/nsPresShell.cpp, line 5884 ###!!! ASSERTION: Unexpected document: 'capturingContent->GetCurrentDoc() == GetDocument()', file layout/base/nsPresShell.cpp, line 5947
I also see this assertion with the current ICHC sites; they do something with their comment form and the upshot is that the capturing content has been removed from the document by the time the assertion is checked.
So, here's the script they use: <script type="text/javascript"> jQuery(document).ready(function(){ // Expando Mode: start small, then auto-resize on focus + text length jQuery( '#comment-form-identity' ).hide(); jQuery( '#comment-form-subscribe' ).hide(); jQuery( '#commentform .form-submit' ).hide(); jQuery( '#comment' ).css( { 'height':'10px' } ).focus( function() { jQuery( this ).animate( { 'height':'70px' } ); jQuery( '#comment-form-identity' ).slideDown(); jQuery( '#comment-form-subscribe' ).slideDown(); jQuery( '#commentform .form-submit' ).slideDown(); }); }); </script> I've no idea why animating the height of the textarea to 70px would cause the anonymous content to be recreated but it does and this happens in between the capturing content getting set and it getting asserted.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.