Bug 16322
| Summary: | Crash when selecting text embedded through foreignObject | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Oliver Hunt <oliver> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Major | CC: | bdakin, eric, oliver, zimmermann |
| Priority: | P1 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | All | ||
| URL: | http://croczilla.com/svg/samples/foreign1/foreign1.xml | ||
Oliver Hunt
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>
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Oliver Hunt
Ah, this looks to be a bug in mixed mode documents, rather than in foreignObject
Oliver Hunt
Nope, on second thoughts that's not the case. This confuses me.
Eric Seidel (no email)
I don't see an ASSERT or crash on TOT Debug. I only see the text disappearing during selection (which is still wrong!).
Eric Seidel (no email)
The bug I describe of the disappearing text is probably just bug 16318.
Eric Seidel (no email)
Closing as WorksForMe, bug 16318 covers the redraw issues (which I think are somewhat understood now).