Summary: | [iOS] On google docs, copying & pasting hits assertion failure in PlatformPasteboard::readString(int, WTF::String const&) | ||
---|---|---|---|
Product: | WebKit | Reporter: | Daniel Bates <dbates> |
Component: | WebCore Misc. | Assignee: | Wenson Hsieh <wenson_hsieh> |
Status: | NEW --- | ||
Severity: | Normal | CC: | rniwa, webkit-bug-importer, wenson_hsieh |
Priority: | P2 | Keywords: | InRadar, NeedsReduction, PlatformOnly |
Version: | WebKit Local Build | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 12 |
Description
Daniel Bates
2018-12-05 11:50:24 PST
(lldb) p value (WTF::RetainPtr<id>) $0 = (m_ptr = 0x0000000000000000) (lldb) p type (const WTF::String) $1 = { length = 17, contents = 'public.plain-text' } { m_impl = { m_ptr = 0x000000014c975e88 { length = 17, is8bit = 1, contents = 'public.plain-text' } } } (lldb) p index (int) $2 = 0 (lldb) p m_pasteboard (WTF::RetainPtr<id>) $3 = (m_ptr = 0x00007fa235994c00) (lldb) po [m_pasteboard.m_ptr description] <_UIConcretePasteboard: 0x7fa235994c00> (In reply to Daniel Bates from comment #0) > Seen using a debug build of WebKit for iOS Simulator at r238894. > > Steps to reproduce: > > 1. Visit <https://docs.google.com>. > 2. Sign in. > 3. Open a document that has some text. > 4. Press Command + A to select all. > > You may need to repeat (4) more than once. > Err, these steps should be: 1. Visit <https://docs.google.com> and sign in. 2. Open a document that has some text and focus the document for typing. 3. Press Command + A to select all. 4. Press Command + C to copy. 5. Press Command + V to paste. What kind of a class do we have instead of NSString? (In reply to Ryosuke Niwa from comment #4) > What kind of a class do we have instead of NSString? No class, a nil :) See comment 2. On interesting. So either _UIConcretePasteboard claims to have plain text but returns nil when we ask, or we're getting confused and think _UIConcretePasteboard has plain text even when it doesn't. |