Skip to content

Commit e999e89

Browse files
author
Paul H
committed
8332947: [macos] java.awt.desktop.OpenURIHandler is not receiving events
1 parent 056c7f5 commit e999e89

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

modules/javafx.graphics/src/main/native-glass/mac/GlassApplication.m

+15
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,21 @@ - (BOOL)application:(NSApplication *)theApplication openTempFile:(NSString *)fil
474474
return YES;
475475
}
476476

477+
- (void) application:(NSApplication *)theApplication openURLs:(NSArray<NSURL *> *)urls
478+
{
479+
for (NSURL* url in urls) {
480+
NSDictionary *userInfo = @{
481+
@"name": @"openURL",
482+
@"url": url.absoluteString
483+
};
484+
485+
[[NSNotificationCenter defaultCenter]
486+
postNotificationName:@"EmbeddedEvent"
487+
object:nil
488+
userInfo:userInfo];
489+
}
490+
}
491+
477492
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
478493
{
479494
LOG("GlassApplication:applicationShouldOpenUntitledFile");

0 commit comments

Comments
 (0)