-
Notifications
You must be signed in to change notification settings - Fork 975
Converts SiteInfo into redux component #9413
Conversation
6d26957
to
7a22995
Compare
7a22995
to
5ff3a61
Compare
NOTE: this PR removes the dialog overlay (ex: the shadows behind the modal that is shown). Is this OK, @bradleyrichter? |
@bsclifton This was not changed in this PR. If you checkout the master you will see that background was removed few commits back. |
@NejcZdovc yes- you are correct 😄 @luixxiul pointed me at #9034 |
Unrelated to this PR... @darkdh I am seeing the following logged the first time that the show certificate window is displayed: (It seems to work as expected though) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look (and work) great! 😄 I left some notes about unit tests which I believe will help prevent regressions. Once there are tests, I think this is good to go 👍
|
||
get viewCertificateButton () { | ||
// TODO(Anthony): Hide it until muon support linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have a unit test, IMO. Often times unit tests can document the code as good or better than comments 😄 (the test acting as a specification)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the only thing that we are doing here is checking if linux or not and we can't test getters in redux components
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
�++
<div data-l10n-id='secureConnectionInfo' /> | ||
{this.viewCertificateButton} | ||
</div> | ||
} else if (this.props.partialySecureConnection) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/partialy/partially/g
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
let secureIcon | ||
if (this.isSecure === true && !this.runInsecureContent) { | ||
get secureIcon () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that these are properties, they would be good candidates for unit tests 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as bellow. What we can test is if props are set correctly, so that we move for example isFullySecured
into state helper and do a unit test there.
5ff3a61
to
c8462af
Compare
@bsclifton , it will also happen on the same version of chromium |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
�changes looks good to me
Resolves brave#9412 Auditors: @bsclifton @bridiver Test Plan:
c8462af
to
8f052cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for travis to finish, but updates look great! 😄 ++
Test Plan
Also: #10931 (comment)
Description
Submitter Checklist:
git rebase -i
to squash commits (if needed).Resolves #9412
Auditors: @bsclifton @bridiver
Reviewer Checklist:
Tests