WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
148436
Web Inspector: Styles sidebar says Media: all when it should say Media: screen
https://bugs.webkit.org/show_bug.cgi?id=148436
Summary
Web Inspector: Styles sidebar says Media: all when it should say Media: screen
Timothy Hatcher
Reported
2015-08-25 10:53:24 PDT
Created
attachment 259860
[details]
Screenshot On daring fireball.net, the stylesheets are media="screen", however the sidebar says Media: all. The Copy Rule context menu does include the media as screen, so the data is there we are just showing the wrong thing.
Attachments
Screenshot
(672.30 KB, image/png)
2015-08-25 10:53 PDT
,
Timothy Hatcher
no flags
Details
Patch
(2.42 KB, patch)
2015-09-10 12:53 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(2.43 KB, patch)
2015-09-10 13:04 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-08-25 10:53:42 PDT
<
rdar://problem/22421857
>
Devin Rousso
Comment 2
2015-09-10 12:53:56 PDT
Created
attachment 260943
[details]
Patch
Blaze Burg
Comment 3
2015-09-10 12:56:52 PDT
Comment on
attachment 260943
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=260943&action=review
r=me
> Source/WebInspectorUI/UserInterface/Views/RulesStyleDetailsPanel.js:193 > + var currentMediaList = style.ownerRule && style.ownerRule.mediaList;
This change removes the fallback to [] if both are null. Maybe you should add || [] ?
Devin Rousso
Comment 4
2015-09-10 12:59:54 PDT
(In reply to
comment #3
)
> This change removes the fallback to [] if both are null. Maybe you should > add || [] ?
It shouldn't be an issue when both are null, but I can see an issue when only one is null and the other isn't. I'll add that now.
Devin Rousso
Comment 5
2015-09-10 13:04:32 PDT
Created
attachment 260944
[details]
Patch
WebKit Commit Bot
Comment 6
2015-09-10 14:54:42 PDT
Comment on
attachment 260944
[details]
Patch Clearing flags on attachment: 260944 Committed
r189593
: <
http://trac.webkit.org/changeset/189593
>
WebKit Commit Bot
Comment 7
2015-09-10 14:54:46 PDT
All reviewed patches have been landed. Closing bug.
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