Skip to content

Commit 99116b0

Browse files
committed
Merge branch 'master' into smoketesting
2 parents c38c894 + 72b60d0 commit 99116b0

File tree

7 files changed

+21
-9
lines changed

7 files changed

+21
-9
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Microsoft Open Source Code of Conduct
2+
3+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4+
5+
Resources:
6+
7+
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8+
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9+
- Contact [[email protected]](mailto:[email protected]) with questions or concerns

SampleApps/WebView2APISample/AppWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ HRESULT AppWindow::OnCreateCoreWebView2ControllerCompleted(HRESULT result, ICore
716716
m_creationModeId == IDM_CREATION_MODE_TARGET_DCOMP);
717717
NewComponent<ControlComponent>(this, &m_toolbar);
718718

719-
m_webView3 = coreWebView2.query<ICoreWebView2_3>();
719+
m_webView3 = coreWebView2.try_query<ICoreWebView2_3>();
720720
if (m_webView3)
721721
{
722722
//! [AddVirtualHostNameToFolderMapping]

SampleApps/WebView2APISample/SettingsComponent.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@ SettingsComponent::SettingsComponent(
4242
old->m_settings.try_query<ICoreWebView2ExperimentalSettings>();
4343
wil::com_ptr<ICoreWebView2ExperimentalSettings> experimental_settings_new;
4444
experimental_settings_new = m_settings.try_query<ICoreWebView2ExperimentalSettings>();
45-
LPWSTR user_agent;
46-
CHECK_FAILURE(experimental_settings_old->get_UserAgent(&user_agent));
47-
CHECK_FAILURE(experimental_settings_new->put_UserAgent(user_agent));
45+
if (experimental_settings_old && experimental_settings_new)
46+
{
47+
LPWSTR user_agent;
48+
CHECK_FAILURE(experimental_settings_old->get_UserAgent(&user_agent));
49+
CHECK_FAILURE(experimental_settings_new->put_UserAgent(user_agent));
50+
}
4851
SetBlockImages(old->m_blockImages);
4952
SetReplaceImages(old->m_replaceImages);
5053
m_deferScriptDialogs = old->m_deferScriptDialogs;

SampleApps/WebView2APISample/WebView2APISample.vcxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,13 +502,13 @@
502502
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
503503
<ImportGroup Label="ExtensionTargets">
504504
<Import Project="..\packages\Microsoft.Windows.ImplementationLibrary.1.0.191107.2\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('..\packages\Microsoft.Windows.ImplementationLibrary.1.0.191107.2\build\native\Microsoft.Windows.ImplementationLibrary.targets')" />
505-
<Import Project="..\packages\Microsoft.Web.WebView2.1.0.781-prerelease\build\native\Microsoft.Web.WebView2.targets" Condition="Exists('..\packages\Microsoft.Web.WebView2.1.0.781-prerelease\build\native\Microsoft.Web.WebView2.targets')" />
505+
<Import Project="..\packages\Microsoft.Web.WebView2.1.0.790-prerelease\build\native\Microsoft.Web.WebView2.targets" Condition="Exists('..\packages\Microsoft.Web.WebView2.1.0.790-prerelease\build\native\Microsoft.Web.WebView2.targets')" />
506506
</ImportGroup>
507507
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
508508
<PropertyGroup>
509509
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
510510
</PropertyGroup>
511511
<Error Condition="!Exists('..\packages\Microsoft.Windows.ImplementationLibrary.1.0.191107.2\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.ImplementationLibrary.1.0.191107.2\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" />
512-
<Error Condition="!Exists('..\packages\Microsoft.Web.WebView2.1.0.781-prerelease\build\native\Microsoft.Web.WebView2.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Web.WebView2.1.0.781-prerelease\build\native\Microsoft.Web.WebView2.targets'))" />
512+
<Error Condition="!Exists('..\packages\Microsoft.Web.WebView2.1.0.790-prerelease\build\native\Microsoft.Web.WebView2.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Web.WebView2.1.0.790-prerelease\build\native\Microsoft.Web.WebView2.targets'))" />
513513
</Target>
514514
</Project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Web.WebView2" version="1.0.781-prerelease" targetFramework="native" />
3+
<package id="Microsoft.Web.WebView2" version="1.0.790-prerelease" targetFramework="native" />
44
<package id="Microsoft.Windows.ImplementationLibrary" version="1.0.191107.2" targetFramework="native" />
55
</packages>

SampleApps/WebView2WindowsFormsBrowser/WebView2WindowsFormsBrowser.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PlatformTarget>AnyCPU</PlatformTarget>
2020
</PropertyGroup>
2121
<ItemGroup>
22-
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.781-prerelease" />
22+
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.790-prerelease" />
2323
</ItemGroup>
2424
<ItemGroup>
2525
<None Update="assets\EdgeWebView2-80.jpg">

SampleApps/WebView2WpfBrowser/WebView2WpfBrowser.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
</Content>
2626
</ItemGroup>
2727
<ItemGroup>
28-
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.781-prerelease" />
28+
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.790-prerelease" />
2929
</ItemGroup>
3030
</Project>

0 commit comments

Comments
 (0)