export function createHighlightedUrl(url: Platform.DevToolsPath.UrlString, securityState: string): Element {Hojeong ParkWhy don't we use the new function right away? It is only used in tests and at single point in this file. There you can simply do
```
render(
renderHighlightedUrl(createHighlightedUrl(origin, originState.securityState),
originDisplay);
```
Thanks. Done for the origin view.
But I kept createHighlightedUrl since SecurityPanelSidebar also uses it and needs an Element there. SettingsUI.createControlForSetting follows the same pattern. What do you think?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks for the review. This is ready to submit, but I don't have permission. Could you submit this for me?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The failing checks are DevTools web tests that dump the deep DOM.
This seems to need a Chromium-side rebaseline. What do you think?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
The failing checks are DevTools web tests that dump the deep DOM.
This seems to need a Chromium-side rebaseline. What do you think?
Yup. Disable the chromium test first (in the TestExpectations file), land this, wait for the roll, and rebaseline and re-enable then.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Danil SomsikovThe failing checks are DevTools web tests that dump the deep DOM.
This seems to need a Chromium-side rebaseline. What do you think?
Yup. Disable the chromium test first (in the TestExpectations file), land this, wait for the roll, and rebaseline and re-enable then.
Thanks for explaining. I made a CL to disable the Chromium tests: crrev.com/c/8038580
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Since CL 8038580 has landed, would it be okay to land this CL?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[security] Render the origin display with Lit
`SecurityOriginView` renders its security-state icon and highlighted URL
with Lit in `#renderOriginDisplay`, called on construction and on
security state changes. `createHighlightedUrl` is kept for
`SecurityPanelSidebar`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |