(forwarded to users list in case anybody there can confirm or
otherwise this bug on other platforms)

I'm getting these quite often when attempting to select text in text
fields:

assertion "s->root->gadget->caret_text_box != NULL" failed: file 
"desktop/selection.c", line 737

On some (very few, found one earlier today but have forgotten now
what it was) sites the highlighting works perfectly, allowing me to
edit, highlighting didn't drift off into text that wasn't in the box
etc.

However, on the majority of sites I encounter, highlighting in a text
box appears to select nothing (you get the inverse video block but no
text where the text was - text outside the text box however gets
selected properly), pressing delete deletes the text that you think is
selected.  Sometimes when selecting, the assertion above appears.

It appears to be that NetSurf is getting confused as to which box it
is supposed to be doing the text selection in.  This is backed up by
the fact when I didn't get the problem, it was on a very simple site,
whereas on forums (such as vBulletin based ones where this always
happens) you get tables within tables with text fields in them.

I had a quick go at writing a test case, but it appears that just
nesting table and textareas isn't enough to exhibit the problem.

As far as I can tell, the RISC OS version of NetSurf replaces the text
fields with proper text editing gadgets, so this bug won't show up
there.  The other ports should be able to reproduce it though.

Chris




Reply via email to