Show error if web process never connects

This commit is contained in:
James Magahern
2020-09-22 12:30:09 -07:00
parent d081a1c3f8
commit 2cdee87e8a
3 changed files with 28 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, assign) BOOL allowAllScripts; // default is NO
@property (nonatomic, assign) BOOL darkModeEnabled;
@property (nonatomic, readonly) BOOL webContentProcessConnected;
- (void)policyDataSourceDidChange;
- (void)tearDown;

View File

@@ -105,6 +105,8 @@
- (void)webProcessDidConnect
{
NSLog(@"SBRProcessBundleBridge: did connect. Saying hello, syncing allowlist");
_webContentProcessConnected = YES;
[_webProcessProxy hello];
[self policyDataSourceDidChange];
}