Bug 141790 - Web Inspector: DOMTree / Node Details Sidebar do not update as <input> content changes
Summary: Web Inspector: DOMTree / Node Details Sidebar do not update as <input> conten...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-02-18 21:46 PST by Joseph Pecoraro
Modified: 2015-02-19 07:39 PST (History)
9 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (3.21 KB, patch)
2015-02-18 21:48 PST, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2015-02-18 21:46:05 PST
* SUMMARY
DOMTree / Node Details Sidebar do not update as <input> content changes.

1. When <input> goes from single text node child to multiple
  => inline shadow content editable div updates expand triangle, but fails to update inline text node, shows stale text
2. When text node is selected and and changes text content
  => Node details sidebar still shows old value

* STEPS TO REPRODUCE (1)
1. Inspect <input> on data:text/html,<input value="test">
2. Show Shadow DOM if needed
3. Select the <div contenteditable> shadow element of the <input>
4. Select the "test" text and delete it
  => DOM Tree updated but <div contenteditable> still shows "test" inline text value. Should be "..."

* STEPS TO REPRODUCE (2)
1. Inspect <input> on data:text/html,<input value="test">
2. Show Shadow DOM if needed
3. Select the <div contenteditable> shadow element of the <input>
4. Select the "test" text and replace it with "foo" (this triggers another inline text node
5. Expand the <div contenteditable> and select the text node containing "foo"
6. Show Node details sidebar
7. Start typing in the <input> to change the selected text node
  => Sidebar's Value field should update like the DOM Tree and Navigation Bar, it doesn't
Comment 1 Radar WebKit Bug Importer 2015-02-18 21:46:19 PST
<rdar://problem/19885587>
Comment 2 Joseph Pecoraro 2015-02-18 21:48:12 PST
Created attachment 246878 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2015-02-19 07:39:14 PST
Comment on attachment 246878 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 246878

Committed r180344: <http://trac.webkit.org/changeset/180344>
Comment 4 WebKit Commit Bot 2015-02-19 07:39:19 PST
All reviewed patches have been landed.  Closing bug.