dgozman: I've based this CL off the Audits Panel [1], but had to make some ...
4 years, 10 months ago
(2015-06-25 22:55:54 UTC)
#2
dgozman: I've based this CL off the Audits Panel [1], but had to make some
decisions that might need to change. Would you mind reviewing?
In particular, the sidebar is constructed in the constructor (currently without
any sections).
The "main view" (which is currently still the only view) has been split into its
own class, similar to the Audits Panel's launcher view.
See https://crbug.com/503167#c2 for a screenshot, and
https://crbug.com/502118#c2 for a mock of the goal.
[1]
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit...
dgozman
https://codereview.chromium.org/1215493002/diff/20001/Source/devtools/front_end/security/SecurityPanel.js File Source/devtools/front_end/security/SecurityPanel.js (right): https://codereview.chromium.org/1215493002/diff/20001/Source/devtools/front_end/security/SecurityPanel.js#newcode14 Source/devtools/front_end/security/SecurityPanel.js:14: // Construct sidebar Please remove comments which follow the ...
4 years, 10 months ago
(2015-06-26 10:50:49 UTC)
#3
dgozman@: Thanks, registerRequiredCSS() turns out to be quite approachable! I know you've already LGTMed, but ...
4 years, 10 months ago
(2015-06-29 07:37:10 UTC)
#6
dgozman@: Thanks, registerRequiredCSS() turns out to be quite approachable! I
know you've already LGTMed, but would would you mind taking one last look to
make sure I'm not introducing something you don't expect?
I assumed that the shadow root (sidebarTree) is the right place to attach the
CSS, so I went with that, and refactored some CSS.
dgozman
still lgtm https://codereview.chromium.org/1215493002/diff/60001/Source/devtools/front_end/security/SecurityPanel.js File Source/devtools/front_end/security/SecurityPanel.js (right): https://codereview.chromium.org/1215493002/diff/60001/Source/devtools/front_end/security/SecurityPanel.js#newcode18 Source/devtools/front_end/security/SecurityPanel.js:18: sidebarTree.registerRequiredCSS("security/lockIcon.css"); I'd rather attach this in SecurityMainViewSidebarTreeElement. ...
4 years, 10 months ago
(2015-06-29 08:11:47 UTC)
#7
https://codereview.chromium.org/1215493002/diff/60001/Source/devtools/front_end/security/SecurityPanel.js File Source/devtools/front_end/security/SecurityPanel.js (right): https://codereview.chromium.org/1215493002/diff/60001/Source/devtools/front_end/security/SecurityPanel.js#newcode18 Source/devtools/front_end/security/SecurityPanel.js:18: sidebarTree.registerRequiredCSS("security/lockIcon.css"); On 2015/06/29 at 08:11:47, dgozman wrote: > I'd ...
4 years, 10 months ago
(2015-06-29 08:22:56 UTC)
#8
https://codereview.chromium.org/1215493002/diff/60001/Source/devtools/front_e...
File Source/devtools/front_end/security/SecurityPanel.js (right):
https://codereview.chromium.org/1215493002/diff/60001/Source/devtools/front_e...
Source/devtools/front_end/security/SecurityPanel.js:18:
sidebarTree.registerRequiredCSS("security/lockIcon.css");
On 2015/06/29 at 08:11:47, dgozman wrote:
> I'd rather attach this in SecurityMainViewSidebarTreeElement. It's cheap.
Hmm, I wasn't sure how to do that, since registerRequiredCSS can't be called on
a WebInspector.SidebarTreeElement.
Should I:
- Pass sidebarTree into the SecurityMainViewSidebarTreeElement constructor and
call sidebarTree.registerRequiredCSS()?
- Make SecurityMainViewSidebarTreeElement extend something that has
registerRequiredCSS, like WebInspector.Widget or WebInspector.Section?
- Do something else?
It isn't obvious to me. :-(
4 years, 10 months ago
(2015-06-29 08:30:56 UTC)
#9
On 2015/06/29 08:22:56, lgarron wrote:
>
https://codereview.chromium.org/1215493002/diff/60001/Source/devtools/front_e...
> File Source/devtools/front_end/security/SecurityPanel.js (right):
>
>
https://codereview.chromium.org/1215493002/diff/60001/Source/devtools/front_e...
> Source/devtools/front_end/security/SecurityPanel.js:18:
> sidebarTree.registerRequiredCSS("security/lockIcon.css");
> On 2015/06/29 at 08:11:47, dgozman wrote:
> > I'd rather attach this in SecurityMainViewSidebarTreeElement. It's cheap.
>
> Hmm, I wasn't sure how to do that, since registerRequiredCSS can't be called
on
> a WebInspector.SidebarTreeElement.
My bad. Sorry for confusion. You did the right thing here! Basically, we usually
pick the closest WI.View, but sidebar element is not a view.
lgarron
The CQ bit was checked by lgarron@chromium.org
4 years, 10 months ago
(2015-06-29 08:32:20 UTC)
#10
Issue 1215493002: Add a sidebar to the DevTools Security panel.
(Closed)
Created 4 years, 10 months ago by lgarron
Modified 4 years, 10 months ago
Reviewers: dgozman
Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Comments: 18