зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1752164: Don't fall back to our internal file protocol handler when macOS is prompting users to pick an app when opening a downloaded file. r=mstange,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D199347
This commit is contained in:
Родитель
d7f3142734
Коммит
df5561e1e8
|
@ -40,9 +40,9 @@ nsresult OpenURL(CFURLRef url) {
|
|||
|
||||
nsAutoreleasePool localPool;
|
||||
|
||||
BOOL success = [[NSWorkspace sharedWorkspace] openURL:(NSURL*)url];
|
||||
[[NSWorkspace sharedWorkspace] openURL:(NSURL*)url];
|
||||
|
||||
return (success ? NS_OK : NS_ERROR_FAILURE);
|
||||
return NS_OK;
|
||||
|
||||
NS_OBJC_END_TRY_BLOCK_RETURN(NS_ERROR_FAILURE);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче