| Summary: | Use new RegistrableDomain type in PSON code | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
| Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | achristensen, beidson, ggaren, rniwa, webkit-bug-importer, wilander, youennf | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 195637 | ||||||
| Attachments: |
|
||||||
|
Description
Chris Dumez
2019-03-12 12:18:20 PDT
Created attachment 364425 [details]
Patch
Comment on attachment 364425 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364425&action=review > Source/WebKit/UIProcess/SuspendedPageProxy.cpp:85 > + , m_registrableDomain(URL(URL(), item.url())) Do you need to construct a new URL with item.url()? Comment on attachment 364425 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364425&action=review >> Source/WebKit/UIProcess/SuspendedPageProxy.cpp:85 >> + , m_registrableDomain(URL(URL(), item.url())) > > Do you need to construct a new URL with item.url()? item.url() returns a String, not a URL. ping review? Comment on attachment 364425 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364425&action=review > Source/WebKit/UIProcess/WebProcessProxy.h:118 > + WebCore::RegistrableDomain registrableDomain() const { return m_registrableDomain.valueOr(WebCore::RegistrableDomain { }); } It seems we can have m_registrableDomain being nullopt, isEmpty or being a real registrable domain. But we do not expose the difference between nullopt and isEmpty in the public getter. Can it be a potential source of issues in the future? Comment on attachment 364425 [details] Patch Clearing flags on attachment: 364425 Committed r242889: <https://trac.webkit.org/changeset/242889> All reviewed patches have been landed. Closing bug. |