WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
143814
Web Inspector: Allow toggling the edibility of a DOMTreeOutline
https://bugs.webkit.org/show_bug.cgi?id=143814
Summary
Web Inspector: Allow toggling the edibility of a DOMTreeOutline
Joseph Pecoraro
Reported
2015-04-15 21:18:09 PDT
* SUMMARY Allow toggling the edibility of a DOMTreeOutline. A DOMTreeOutline in the console should not be editable. You can "Reveal in DOM Tree" to edit from the DOM tree. ObjectTree's themselves are not editable right now. A DOMTreeContentView should always have editable DOMTreeOutlines.
Attachments
[PATCH] Proposed Fix
(8.52 KB, patch)
2015-04-15 21:27 PDT
,
Joseph Pecoraro
burg
: review-
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(9.02 KB, patch)
2015-04-16 13:04 PDT
,
Joseph Pecoraro
burg
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-04-15 21:18:22 PDT
<
rdar://problem/20565653
>
Joseph Pecoraro
Comment 2
2015-04-15 21:27:08 PDT
Created
attachment 250896
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2015-04-15 21:33:32 PDT
Patch doesn't apply because it relies on an earlier change in very similar code.
Brian Burg
Comment 4
2015-04-16 08:20:42 PDT
Comment on
attachment 250896
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=250896&action=review
Very interesting, I made nearly the exact same change in my branch. (Snapshotted DOM nodes aren't editable either.) It seems you missed DOMTreeElement._canAddAttributes (set in constructor) and disabling draggability (DOM elements are configured in onattach). Once these cases are fixed this patch should be ready to go.
> Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js:146 > + set editable(x)
I would prefer 'value' rather than 'x'.
Joseph Pecoraro
Comment 5
2015-04-16 11:56:34 PDT
(In reply to
comment #4
)
> Comment on
attachment 250896
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=250896&action=review
> > Very interesting, I made nearly the exact same change in my branch. > (Snapshotted DOM nodes aren't editable either.) > > It seems you missed DOMTreeElement._canAddAttributes (set in constructor) > and disabling draggability (DOM elements are configured in onattach). Once > these cases are fixed this patch should be ready to go.
Great catches!
Joseph Pecoraro
Comment 6
2015-04-16 13:02:50 PDT
> It seems you missed DOMTreeElement._canAddAttributes (set in constructor)
This seems like it should stay unaffected. This essentially distinguishes that this DOMTreeElement is the opening tag of an element, so if it was editable attributes can be added. Perhaps it should be renamed.
> and disabling draggability (DOM elements are configured in onattach).
Yep!
Joseph Pecoraro
Comment 7
2015-04-16 13:04:16 PDT
Created
attachment 250943
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 8
2015-04-16 13:09:41 PDT
> > Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js:146 > > + set editable(x) > > I would prefer 'value' rather than 'x'.
Oops, I forgot about this. We tend to use x pretty consistently though. Especially for short functions.
Brian Burg
Comment 9
2015-04-16 13:26:11 PDT
Comment on
attachment 250943
[details]
[PATCH] Proposed Fix r=me
Joseph Pecoraro
Comment 10
2015-04-16 13:34:50 PDT
http://trac.webkit.org/changeset/182905
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug