Skip to content

Commit

Permalink
fix: add feature flag to enable private picture-in-picture flag on ma…
Browse files Browse the repository at this point in the history
…cos (#645)

* fix: add feature flag to enable private picture-in-picture flag on macos.

* fix: remove pip feature in cargo.toml

* fix: remove pip runtime feature flag
  • Loading branch information
keiya01 authored Aug 5, 2022
1 parent 3218091 commit 3cfd8c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/pistureinpicture-feature-flag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wry": patch
---

Add feature flag to enable private picture-in-picture flag on macos.
2 changes: 2 additions & 0 deletions src/webview/wkwebview/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ impl InnerWebView {
let _: id = msg_send![_preference, setValue:_yes forKey:dev];
}

let _: id = msg_send![_preference, setValue:_yes forKey:NSString::new("allowsPictureInPictureMediaPlayback")];

#[cfg(target_os = "macos")]
let _: id = msg_send![_preference, setValue:_yes forKey:NSString::new("tabFocusesLinks")];

Expand Down

0 comments on commit 3cfd8c9

Please sign in to comment.