-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for these schemes with desktop env. So users click links. Fixes #113
- Loading branch information
1 parent
de66c8d
commit 9a0a8b0
Showing
6 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
chromium_edits/129.0.6658.0/chrome/browser/shell_integration_mac.mm.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/chrome/browser/shell_integration_mac.mm b/chrome/browser/shell_integration_mac.mm | ||
index c6bb768979453..c0d0abb9c78f3 100644 | ||
--- a/chrome/browser/shell_integration_mac.mm | ||
+++ b/chrome/browser/shell_integration_mac.mm | ||
@@ -79,6 +79,8 @@ bool SetAsDefaultBrowser() { | ||
if (LSSetDefaultHandlerForURLScheme(CFSTR("https"), identifier) != noErr) { | ||
return false; | ||
} | ||
+ LSSetDefaultHandlerForURLScheme(CFSTR("ipfs"), identifier); | ||
+ LSSetDefaultHandlerForURLScheme(CFSTR("ipns"), identifier); | ||
if (LSSetDefaultRoleHandlerForContentType(kUTTypeHTML, kLSRolesViewer, | ||
identifier) != noErr) { | ||
return false; |
13 changes: 13 additions & 0 deletions
13
chromium_edits/129.0.6658.0/chrome/installer/linux/common/desktop.template.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/chrome/installer/linux/common/desktop.template b/chrome/installer/linux/common/desktop.template | ||
index 2eb13ee1aba46..9af65726bde89 100644 | ||
--- a/chrome/installer/linux/common/desktop.template | ||
+++ b/chrome/installer/linux/common/desktop.template | ||
@@ -111,7 +111,7 @@ Terminal=false | ||
Icon=@@PACKAGE@@ | ||
Type=Application | ||
Categories=Network;WebBrowser; | ||
-MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https; | ||
+MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ipfs;x-scheme-handler/ipns; | ||
Actions=new-window;new-private-window; | ||
|
||
[Desktop Action new-window] |
20 changes: 20 additions & 0 deletions
20
chromium_edits/129.0.6658.0/chrome/installer/util/shell_util.cc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc | ||
index 183bf96be3741..116c5b838c8c5 100644 | ||
--- a/chrome/installer/util/shell_util.cc | ||
+++ b/chrome/installer/util/shell_util.cc | ||
@@ -1526,11 +1526,12 @@ const wchar_t* ShellUtil::kDefaultFileAssociations[] = { | ||
const wchar_t* ShellUtil::kPotentialFileAssociations[] = { | ||
L".htm", L".html", L".pdf", L".shtml", L".svg", | ||
L".xht", L".xhtml", L".webp", nullptr}; | ||
-const wchar_t* ShellUtil::kBrowserProtocolAssociations[] = {L"http", L"https", | ||
- nullptr}; | ||
+const wchar_t* ShellUtil::kBrowserProtocolAssociations[] = { | ||
+ L"http", L"https", L"ipfs", L"ipns", nullptr}; | ||
const wchar_t* ShellUtil::kPotentialProtocolAssociations[] = { | ||
L"http", L"https", L"irc", L"mailto", L"mms", L"news", L"nntp", | ||
- L"sms", L"smsto", L"snews", L"tel", L"urn", L"webcal", nullptr}; | ||
+ L"sms", L"smsto", L"snews", L"tel", L"urn", L"webcal", L"ipfs", | ||
+ L"ipns", nullptr}; | ||
const wchar_t* ShellUtil::kRegUrlProtocol = L"URL Protocol"; | ||
const wchar_t* ShellUtil::kRegApplication = L"\\Application"; | ||
const wchar_t* ShellUtil::kRegAppUserModelId = L"AppUserModelId"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters