DescriptionFix DesktopMediaPickerViews to handle background parent_web_contents
After r283702 DesktopMediaPickerViews is getting parent_web_contents even
when it corresponds to a background extension page.
DesktopMediaPickerViews was always trying to create a modal dialog when
web_contents is specified, and that doesn't work for background pages.
Now it explicitly checks if the web_contents is a background page and
in that case shows the picker in a separate window.
Also updated example for desktop capture API to make it easier to test
this scenario.
BUG=402579
Committed: https://crrev.com/71b32fcc875526596305a98c1a1194e690dc8719
Cr-Commit-Position: refs/heads/master@{#292055}
Patch Set 1 : #
Total comments: 6
Patch Set 2 : #
Total comments: 4
Patch Set 3 : #Patch Set 4 : #
Total comments: 3
Patch Set 5 : #
Messages
Total messages: 28 (0 generated)
|