fix: persist permission granted to serial ports (#30209)
This commit is contained in:
parent
d2989de5d9
commit
461db8f1ab
8 changed files with 138 additions and 38 deletions
|
@ -71,7 +71,6 @@ bool ElectronSerialDelegate::HasPortPermission(
|
|||
auto* chooser_context =
|
||||
SerialChooserContextFactory::GetForBrowserContext(browser_context);
|
||||
return chooser_context->HasPortPermission(
|
||||
frame->GetLastCommittedOrigin(),
|
||||
web_contents->GetMainFrame()->GetLastCommittedOrigin(), port);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue