Bug 16322 - Crash when selecting text embedded through foreignObject
Summary: Crash when selecting text embedded through foreignObject
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac All
: P1 Major
Assignee: Nobody
URL: http://croczilla.com/svg/samples/fore...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-12-06 00:49 PST by Oliver Hunt
Modified: 2007-12-15 03:30 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2007-12-06 00:49:31 PST
If you run the linked test in a debug build we assert when you select text, in a release build we crash.

The problem is that the SVG text selection machinery runs even when in a foreignObject, when all events should be handed off to foreignObject the moment the reach it :-/

Given one of the main reasons for foreignObject is to allow flowing html text, etc this is critical to its support.

We should also check the behaviour of mixed content xhtml/xml to ensure correctness.

<rdar://5628970>
Comment 1 Oliver Hunt 2007-12-06 11:40:30 PST
Ah,  this looks to be a bug in mixed mode documents, rather than in foreignObject
Comment 2 Oliver Hunt 2007-12-06 11:41:59 PST
Nope, on second thoughts that's not the case.  This confuses me.
Comment 3 Eric Seidel (no email) 2007-12-13 10:24:26 PST
I don't see an ASSERT or crash on TOT Debug.  I only see the text disappearing during selection (which is still wrong!).
Comment 4 Eric Seidel (no email) 2007-12-13 10:25:28 PST
The bug I describe of the disappearing text is probably just bug 16318.
Comment 5 Eric Seidel (no email) 2007-12-15 03:30:51 PST
Closing as WorksForMe, bug 16318 covers the redraw issues (which I think are somewhat understood now).