Background color typing style is lost after outdent command |
||||||||
Issue descriptionFiled from buganizer https://buganizer.corp.google.com/issues/78665516 ==== INFO ==== Device model number (e.g. G955W):J720F Build fingerprint: 8.0.0 R16NW.J720FDDU1ARCJ WebView version (e.g. 65.0.3329.6):66.0.3359.106 Application package name: com.samsung.android.email.provider Application Play Store link: https://play.google.com/store/apps/details?id=com.samsung.android.email.provider ==== STEPS TO REPRODUCE ==== 1. Open email> compose mail 2. set new font color and background 3. type something> move to next line > tap indent> next line >tap outdent ==== REPRO RATE (e.g. 3/10) ====10/10 ==== IF TYPING ISSUE: Does this reproduce on non-Samsung keyboard? ====yes ==== EXPECTED RESULT ====The background color should remain for the text in outdent mode also ==== ACTUAL RESULT ====Background color disappear. ==== REQUIRED ATTACHMENTS ==== 1. Screenrecord: https://developer.android.com/studio/command-line/adb.html#screenrecord (with ‘Show Taps’ option ‘ON’ from Developer options) 2. Bug report: how to capture a bug report: https://developer.android.com/studio/debug/bug-report.html 3. Nexus/Pixel compatible sample app (and source code), if it occurs only on Samsung proprietary app, such as email.
,
Aug 6
I'm afraid we (the Blink team) can't provide support for third party android applications. Unless there is a way to reproduce this in chrome there really isn't much we can do about it.
,
Aug 7
Closing this in favor of the original buganizer issue, so we can keep everything in one place. --- eae@ does your team have a device to test the repro app (app-debug.apk) provided on http://b/78665516? If not, what does your team need to reproduce this (and verify if this is your bug)?
,
Aug 10
Reopening this because I can reproduce this in desktop in Chrome (and therefore it's not a WebView bug). Please see the attached zip. Repro steps: 1. $ unzip -d somedir/ repro-lfiles.zip 2. $ cd somedir/repro-in-web/ 3. $ python -m SimpleHTTPServer 4. Open chrome to http://127.0.0.1:8000/ 5. Click the first line of the iframe (this is to define the focus for the next operations) 6. Click "font color" and "background" buttons 7. Click the 1st line of the iframe. Input 1 line of text. Observe text is red font with green background. Press enter to go to the next line. 8. Click the "indent" button. Type a second line of text in the iframe. This should be red, green, and indented. Press enter to go to the next line. 9. Click the "outdent" button. Type a third line of text in the iframe. Observe this text is red and outdented, but has mysteriously lost the green background. Samsung believes the Chrome behavior is a bug. Can you confirm? If it's intended, can you explain why we lose the green background? Please see http://b/78665516 and see pixel_video_sampleApk.mp4 for an example repro (this is done with their sample app, but the steps are similar to iframe-based page I wrote).
,
Aug 10
ntfschr: We'd need a way to reproduce this in Chrome (preferably), or in a vanilla web view.
,
Aug 10
eae@ the steps above should work for Desktop Chrome. Which step blocks you from reproducing? Perhaps I can find an alternate step.
,
Aug 11
The javascript uses execCommand, so maybe this is a better component?
Basic summary: `execCommand('outdent', false)` clears the background color (previously set by `execCommand('backColor', false, '#00FF00')`). But, this basic summary is certainly an oversimplification: please see my full repro steps (or, see the video) to better understand.
,
Aug 13
I attempt to reproduce this on desktop, M68-stable and M70-canary with https://jsfiddle.net/rhvdm8xz/40/ ntfschr@, could you provide exact step to reproduce?
,
Aug 13
Thanks for putting together jsfiddle. I can still repro with my instructions on M68 (google workstation) and M67 (google macbook, 67.0.3396.99). Here's a slight simplification: 1. Click in the box 2. Click forecolor, backcolor 3. Click back in the box, type anything, press enter 4. Click indent 5. Click back in the box, type anything, press enter 6. Click outdent 7. Type anything. Observe. I've attached screenshots to demonstrate what it looks like. This does not repro for all combinations of pressing the buttons, but there are probably more ways to repro than this exact sequence. I'm happy to repro in person for xiaochengh@ if this bug is blocked.
,
Aug 13
I confirmed this on a local (unmodified) chrome desktop build (70.0.3509.0).
,
Aug 14
ntfschr@, thanks for providing repro steps. I can reproduce this. It seems DeleteSelectionCommand::CalculateTypingStyleAfterDelete() failed to pick up background color from previous paragraph. Actually, we calculate typing style at position, EditingStyle::PrepareToApplyAt(). |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by chelamcherla@chromium.org
, Aug 6Labels: -Pri-3 WV-Triaged Target-70 M-70 FoundIn-70 Pri-2
Status: Untriaged (was: Unconfirmed)