We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The CHECK_FEATURE_RETURN macro can't be used in the proposed InitializeFindOptions method:
CHECK_FEATURE_RETURN
InitializeFindOptions
wil::com_ptr<ICoreWebView2FindOptions> AppWindow::InitializeFindOptions(const std::wstring& findTerm) { // Query for the ICoreWebView2Environment5 interface. auto webView2Environment5 = m_webViewEnvironment.try_query<ICoreWebView2Environment5>(); CHECK_FEATURE_RETURN(webView2Environment5); // Initialize Find options wil::com_ptr<ICoreWebView2FindOptions> find_options; CHECK_FAILURE(webView2Environment5->CreateFindOptions(&find_options)); CHECK_FAILURE(find_options->put_FindTerm(findTerm.c_str())); return find_options; }
This is because it returns true upon success. So I adapted by adding a new macro:
true
#define CHECK_FEATURE_RETURN_NULL(feature) { if (!feature) { FeatureNotAvailable(); return nullptr; } }
The sample code should be revised.
Important. My app's user experience is significantly compromised.
Prerelease (Edge Canary/Dev/Beta)
134.0.3101.0 canary
1.0.3079 prerelease
Win32
Windows 11
10.0.26100 24H2
Try to use the sample in the Find documentation for Win32.
No, issue does not reproduce in the corresponding Edge version
No, this never worked
No response
The text was updated successfully, but these errors were encountered:
chetanpandey1266
No branches or pull requests
What happened?
The
CHECK_FEATURE_RETURN
macro can't be used in the proposedInitializeFindOptions
method:This is because it returns
true
upon success. So I adapted by adding a new macro:The sample code should be revised.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Prerelease (Edge Canary/Dev/Beta)
Runtime Version
134.0.3101.0 canary
SDK Version
1.0.3079 prerelease
Framework
Win32
Operating System
Windows 11
OS Version
10.0.26100 24H2
Repro steps
Try to use the sample in the Find documentation for Win32.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: