-
Notifications
You must be signed in to change notification settings - Fork 975
Fix lock/unlock icon from disappearing when downloading from a site #13541
Conversation
@@ -591,6 +591,10 @@ class Frame extends React.Component { | |||
// update the load state; otherwise it will not show the security | |||
// icon. | |||
return | |||
} else if (!(getBaseUrl === getTargetAboutUrl('about:newtab'))) { |
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.
doesn't this always return true since getBaseUrl
is a function and getTargetAboutUrl('about:newtab')
is a string?
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.
You are right actually. Sorry for that, I am gonna figure it out asap and update the PR. Okay?
@diracdeltas I updated the fix. According to the various console logs I had everywhere, this works. Let me know what you think 😄 |
Codecov Report
@@ Coverage Diff @@
## master #13541 +/- ##
==========================================
+ Coverage 56.6% 56.6% +<.01%
==========================================
Files 284 285 +1
Lines 28675 28920 +245
Branches 4744 4782 +38
==========================================
+ Hits 16231 16371 +140
- Misses 12444 12549 +105
|
please remove extra whitespace so that the linter passes: https://travis-ci.org/brave/browser-laptop/jobs/356631639 otherwise i can't find anything wrong with this PR, but it seems somewhat risky because |
actually i did find a bug - it seems this PR makes the loading indicator disappear from tabs ex:
|
Thank you @diracdeltas! I fixed the lint error. Now I am trying to figure out how to fix the loading indicator, or how to fix the icon from disappearing without causing a bug to the loading indicator. |
@MargarytaChepiga the issue is that https://github.com/brave/browser-laptop/pull/13541/files#diff-c3c556f1ee31674844d6d0be95748d8eR596 is too general (it applies to all loads that aren't from the newtab page). you want to look for some condition that only applies to downloads |
I think I found a way to fix it. Everything seems to work fine, including the loading indicator. @diracdeltas can you please take a look, and let me know what you think? Thank you 😄 P.S I checked for the lint errors and eliminated them. However, I noticed that I am failing tests. |
thanks for the effort! we decided to close this PR since the issue is not present in the new codebase (brave-core) |
Fixes issue #12248
Before:
After:
Tested on:
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests