Bug 10143 - REGRESSION: Weird jump in textarea when replying to Bugzilla comment
Summary: REGRESSION: Weird jump in textarea when replying to Bugzilla comment
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P1 Normal
Assignee: Nobody
URL:
Keywords: InRadar, Regression
Depends on:
Blocks:
 
Reported: 2006-07-28 06:28 PDT by David Kilzer (:ddkilzer)
Modified: 2007-01-26 16:12 PST (History)
4 users (show)

See Also:


Attachments
Example movie of bug (132.28 KB, video/quicktime)
2006-07-28 06:29 PDT, David Kilzer (:ddkilzer)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2006-07-28 06:28:58 PDT
Steps to reproduce:

1. Open Bug 8278.  http://bugzilla.opendarwin.org/show_bug.cgi?id=8278
2. Click "[reply]" link on Bug 8278 Comment #5.  http://bugzilla.opendarwin.org/show_bug.cgi?id=8278#c5
3. Put cursor on "blank" line between two paragraphs.
4. Hit Delete key twice.

Expected results:

The "> " text should be deleted, and the cursor should remain between the two paragraphs.

Actual results:

The "> " text is deleted, but two extra blank lines are inserted between the two paragraphs and the cursor jumps to the end of the text in the textarea.

Regression:

This does not occur on production Safari 2.0.4 (419.3) on Mac OS X 10.4.7 (8J135/PowerPC).

Notes:

Tested with locally-built debug build of WebKit r15648.

See attached movie for example of behavior.
Comment 1 David Kilzer (:ddkilzer) 2006-07-28 06:29:49 PDT
Created attachment 9741 [details]
Example movie of bug
Comment 2 David Kilzer (:ddkilzer) 2006-07-29 04:07:16 PDT
Bug 10141 and Bug 10148 rely on this bug's behavior in order to be reproducible!  If this bug is fixed, it may fix those bugs as well and/or prevent those bugs from ever occurring.
Comment 3 Darin Adler 2006-07-29 15:41:31 PDT
My patch in bug 10144 might fix this.
Comment 4 David Kilzer (:ddkilzer) 2006-08-08 15:30:30 PDT
I noticed a similar bug in https://bugreport.apple.com/ while filing a Radar bug.

Steps to reproduce:

1. Open https://bugreport.apple.com/
2. Click on the "description format" link to open a new window in the "Problem Details" section.
3. Hit Cmd-A to select all text in the new window.
4. Hit Cmd-C to copy all selected text.
5. Close the newly opened window.
6. Click in the textarea in the "Problem Details" section.
7. Hit Cmd-V to paste the text into the textarea.
8. Triple-click on "Provide a descriptive summary of the issue." (the line below the "Summary:" line) to highlight the entire line.
9. Hit the Delete key.

Expected results:
The line would be deleted and the cursor would be left on a blank line below "Summary:".
Actual results:
The line is deleted, the cursor is moved after "Steps to " and before "Reproduce:" in the "Steps to Reproduce:" line.  (Sometimes an additional newline is inserted at the new location.)
Comment 5 David Kilzer (:ddkilzer) 2006-08-08 15:33:25 PDT
(In reply to comment #4)
> Actual results:
> The line is deleted, the cursor is moved after "Steps to " and before
> "Reproduce:" in the "Steps to Reproduce:" line.  (Sometimes an additional
> newline is inserted at the new location.)

If you hit Enter in Step 9 instead of Delete, the newline is added at the new cursor location.
Comment 6 Erick Tryzelaar 2006-09-02 02:20:21 PDT
Hello all, 

I may have either a new bug, or just another symptom of this one found in the most recent nightly build. Two strange things are happening in the following html page. First off, if you manually enter in a lot of content, a scroll bar never appears in the page. However, if you copy-paste a large block of text into the page, the scroll bar appears. Then, if you scroll to the top of the page and press the 'up' arrow, the page jumps down some. Any idea if this is a new behavior? Here's the page:

#####################
<html>                                                                     
  <body>
    <div>hi</div>
    <div>hi</div>
    <div>hi</div>
    <div>hi</div>
    <div>hi</div>
    <div>hi</div>
    <div>hi</div>
    
    <div style="position:relative">
      <textarea rows="10" cols="78"></textarea>
    </div>
  </body>
</html>
######################
Comment 7 mitz 2006-09-02 04:31:59 PDT
(In reply to comment #6)
> First off, if you manually enter in a lot of content, a scroll bar
> never appears in the page.

That's bug 10105.
Comment 8 Stephanie Lewis 2006-11-06 19:34:18 PST
radar 4823041
Comment 9 David Kilzer (:ddkilzer) 2007-01-26 16:11:29 PST
I can't reproduce the steps in Comment #4 anymore using a locally-built debug build of WebKit r19165 with Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8N1037).  Jumping-cursor-weirdness hasn't happened in textareas for a while now.

Closing as RESOLVED/FIXED.


Comment 10 David Kilzer (:ddkilzer) 2007-01-26 16:12:49 PST
(In reply to comment #4)

Forgot one step in reproduction steps:

> Steps to reproduce:
> 
> 1. Open https://bugreport.apple.com/

1.5 Click on "New Problem" link.

> 2. Click on the "description format" link to open a new window in the "Problem Details" section.
> 3. Hit Cmd-A to select all text in the new window.
> 4. Hit Cmd-C to copy all selected text.
> 5. Close the newly opened window.
> 6. Click in the textarea in the "Problem Details" section.
> 7. Hit Cmd-V to paste the text into the textarea.
> 8. Triple-click on "Provide a descriptive summary of the issue." (the line
> below the "Summary:" line) to highlight the entire line.
> 9. Hit the Delete key.