-
Notifications
You must be signed in to change notification settings - Fork 974
Conversation
js/about/extensions.js
Outdated
chrome.tabs.query( | ||
{currentWindow: true, active: true}, | ||
function (tabArray) { | ||
chrome.ipcRenderer.send('load-url-requested', tabArray[0].id, 'chrome-extension://' + extensionId + '/_generated_background_page.html') |
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.
I'm not sure why this ipc message even exists, but please use appActions.loadURLRequested
instead. Sending ipc messages directly is deprecated. However, I don't think this will work correctly in either case because it will create a new background page instead of opening the existing one
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.
see comments
less/about/common.less
Outdated
@@ -20,3 +20,22 @@ html, body, #appContainer, #appContainer > div { | |||
body { | |||
font-size: 100%; | |||
} | |||
|
|||
.linkText { |
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.
Can you please use Aphrodite, so move this css into js file. More info here: https://github.com/brave/browser-laptop/wiki/Refactoring-styles-to-Aphrodite. Thank you 😃
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.
@evq ping me if you want me to do
@bridiver @NejcZdovc I uploaded a second commit which should address both of your comments :) |
color: globalStyles.color.braveOrange, | ||
cursor: 'pointer', | ||
margin: '0', | ||
':hover': { |
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.
@evq could you add a blank line between margin
and :hover
?
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.
@evq Please squash commits and add auto closing tag to the new commit, other than that it looks good to me. Also please provide test plan for it
} | ||
}, | ||
|
||
linkTextSmall: { |
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.
@evq would you please change linkTextSmall
into linkText_small
based on our guideline, which is available here? https://github.com/brave/browser-laptop/blob/master/docs/style.md#defining-our-blocks-elements-and-modifiers thanks!
@evq if I click on |
@NejcZdovc Weird, thanks for testing! I don't seem to be able to get the dev tools to open by manually typing the url for the torrent viewer extension either. It doesn't seem like the manifest specifies a background page, so I would expect |
js/about/preferences.js
Outdated
@@ -607,15 +607,15 @@ class SecurityTab extends ImmutableComponent { | |||
</SettingItem> | |||
{ | |||
getSetting(settings.ACTIVE_PASSWORD_MANAGER, this.props.settings) === passwordManagers.BUILT_IN | |||
? <label className='linkTextSmall' data-l10n-id='managePasswords' | |||
? <label className={css(commonStyles.linkText, commonStyles.linkTextSmall)} data-l10n-id='managePasswords' |
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.
@evq please update this as well.
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.
oops! same issue in js/about/extensions.js
as well
js/about/preferences.js
Outdated
onClick={aboutActions.createTabRequested.bind(null, { | ||
url: 'about:passwords' | ||
})} /> | ||
: null | ||
} | ||
{ | ||
getSetting(settings.ACTIVE_PASSWORD_MANAGER, this.props.settings) === passwordManagers.LAST_PASS | ||
? <label className='linkTextSmall' data-l10n-id='preferences' | ||
? <label className={css(commonStyles.linkText, commonStyles.linkTextSmall)} data-l10n-id='preferences' |
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.
@evq ditto.
@NejcZdovc I have made changes such that the inspect views are not shown if the extension is disabled or does not specify background scripts or pages (this was the case for torrent viewer). All comments should be addressed at this point. |
Codecov Report
@@ Coverage Diff @@
## master #10163 +/- ##
==========================================
+ Coverage 53.67% 53.67% +<.01%
==========================================
Files 238 238
Lines 21049 21053 +4
Branches 3256 3256
==========================================
+ Hits 11297 11301 +4
Misses 9752 9752
|
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 test plan works.
Fixes #8012 Auditors: @luixxiul Test Plan: Ensure extension links work when presented and are not present for disabled / invalid: 1. Go to `about:extensions` 2. Click on the pdf viewer inspect view and confirm dev tools are launched 3. In another tab go to `about:preferences#extensions` and enable 1password 4. Click on the 1password inspect view and confirm dev tools are launched 5. In another tab go to `about:preferences#extensions` and enable bitwarden 6. Confirm the dev tools pane for 1password has closed 7. Confirm that `about:extensions` no longer shows inspect views for 1password 8. Click on the bitwarden inspect view and confirm dev tools are launched 9. Confirm that `about:extensions` has no inspect views for torrent viewer Ensure the following appear as orange anchor links: 1. Payment FAQ on `about:preferences#payment` 2. Adobe and wiki `about:preferences#plugins` 3. Release notes and revision on `about:brave` 4. Inspect pages on `about:extensions` 5. Manage passwords on `about:preferences#security`
@bridiver would you please review the change again and make sure your comments were addressed? thanks! |
@bridiver can you please review (per the feedback above). Thanks! 😄 |
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.
++
Fixes #8012
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests