Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2458 from brave/registerProtocolHandler
Browse files Browse the repository at this point in the history
Implement navigator.registerProtocolHandler
  • Loading branch information
bbondy authored Jul 12, 2016
2 parents 91a78ae + 6bb36ef commit c0ff347
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/extensions/brave/locales/en-US/app.properties
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ permissionWebMidi=use web MIDI
permissionDisableCursor=disable your mouse cursor
permissionFullscreen=use fullscreen mode
permissionExternal=open an external application
permissionProtocolRegistration=register a protocol handler
tabsSuggestionTitle=Tabs
bookmarksSuggestionTitle=Bookmarks
historySuggestionTitle=History
Expand Down
1 change: 1 addition & 0 deletions app/extensions/brave/locales/en-US/preferences.properties
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ midiSysexPermission=Use web MIDI
pointerLockPermission=Disable your mouse cursor
fullscreenPermission=Fullscreen access
openExternalPermission=Open external applications
protocolRegistrationPermission=Protocol registration
flash=Run Adobe Flash Player
flashAllowOnce=Allow once
flashAllowAlways=Allow until {{time}}
Expand Down
3 changes: 3 additions & 0 deletions app/filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ function registerPermissionHandler (session, partition) {
},
openExternal: {
action: locale.translation('permissionExternal')
},
protocolRegistration: {
action: locale.translation('permissionProtocolRegistration')
}
}
}
Expand Down
1 change: 1 addition & 0 deletions app/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ var rendererIdentifiers = function () {
'permissionDisableCursor',
'permissionFullscreen',
'permissionExternal',
'permissionProtocolRegistration',
'tabsSuggestionTitle',
'bookmarksSuggestionTitle',
'historySuggestionTitle',
Expand Down
1 change: 1 addition & 0 deletions docs/state.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ AppStore
pointerLockPermission: boolean,
fullscreenPermission: boolean,
openExternalPermission: boolean,
protocolRegistrationPermission: boolean,
savePasswords: boolean, // Only false or undefined/null
shieldsUp: boolean,
adControl: string, // (showBraveAds | blockAds | allowAdsAndTracking)
Expand Down
1 change: 1 addition & 0 deletions js/about/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const permissionNames = {
'pointerLockPermission': 'boolean',
'fullscreenPermission': 'boolean',
'openExternalPermission': 'boolean',
'protocolRegistrationPermission': 'boolean',
'flash': 'number'
}

Expand Down

0 comments on commit c0ff347

Please sign in to comment.