WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
145331
Web Inspector: DOMTree Keyboard Shortcut 'H' to toggle element visibility is not working
https://bugs.webkit.org/show_bug.cgi?id=145331
Summary
Web Inspector: DOMTree Keyboard Shortcut 'H' to toggle element visibility is ...
Joseph Pecoraro
Reported
2015-05-22 17:28:21 PDT
* SUMMARY DOMTree Keyboard Shortcut 'H' to toggle element visibility is not working. This regressed with
r179286
which removed CSSProperty.value setters and related protocol methods. * TEST <div style="width: 100px; height: 100px; background: blue"></div> <div style="width: 100px; height: 100px; background: green"></div> * STEPS TO REPRODUCE 1. Inspect the top div on the test page 2. Input 'H' keyboard shortcut => expected element to hide, it did not * NOTES - Uncaught exception. CSSProperty.value setter doesn't exist. - Chrome/Blink does this in a clever way. Instead of toggling CSS properties, it adds a <style> to the page with a CSS class, and then toggles the class on the element. We can do the same.
Attachments
[PATCH] Proposed Fix
(4.19 KB, patch)
2015-05-22 17:33 PDT
,
Joseph Pecoraro
joepeck
: review-
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(4.13 KB, patch)
2015-05-22 17:58 PDT
,
Joseph Pecoraro
burg
: review+
burg
: commit-queue-
Details
Formatted Diff
Diff
[PATCH] For Landing
(4.28 KB, patch)
2015-05-22 18:24 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-05-22 17:29:05 PDT
<
rdar://problem/21085680
>
Joseph Pecoraro
Comment 2
2015-05-22 17:33:25 PDT
Created
attachment 253620
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2015-05-22 17:54:24 PDT
Comment on
attachment 253620
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=253620&action=review
> Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js:571 > + styleElement.textContent = ".__WebInspectorHideElement__, .__WebInspectorHideElement__::before, .__WebInspectorHideElement__::after { visibility: hidden !important; }";
I have a feeling the before/after parts may not be necessary...
Joseph Pecoraro
Comment 4
2015-05-22 17:56:18 PDT
Comment on
attachment 253620
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=253620&action=review
>> Source/WebInspectorUI/UserInterface/Views/DOMTreeOutline.js:571 >> + styleElement.textContent = ".__WebInspectorHideElement__, .__WebInspectorHideElement__::before, .__WebInspectorHideElement__::after { visibility: hidden !important; }"; > > I have a feeling the before/after parts may not be necessary...
Oops it is not. Sorry, I was getting ahead of myself. New patch up soon.
Joseph Pecoraro
Comment 5
2015-05-22 17:58:30 PDT
Created
attachment 253621
[details]
[PATCH] Proposed Fix
Brian Burg
Comment 6
2015-05-22 18:03:55 PDT
Comment on
attachment 253621
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=253621&action=review
r=me
> Source/WebInspectorUI/ChangeLog:11 > + 1. inject a <style> on the page like ".WebInspectorHide { visiblity:hidden }"
'visibility'
> Source/WebInspectorUI/ChangeLog:17 > + * UserInterface/Views/DOMTreeOutline.js:
Might want to note that the old approach uses different CSS properties to achieve the same thing.
Joseph Pecoraro
Comment 7
2015-05-22 18:24:12 PDT
Created
attachment 253622
[details]
[PATCH] For Landing
WebKit Commit Bot
Comment 8
2015-05-22 19:13:02 PDT
Comment on
attachment 253622
[details]
[PATCH] For Landing Clearing flags on attachment: 253622 Committed
r184815
: <
http://trac.webkit.org/changeset/184815
>
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