Skip to content

Core - Update IBrowserHost.Find xml doc #3210

@thphan75

Description

@thphan75
  • What version of the product are you using?
    79.1.360.0

  • What architecture x86 or x64?
    x64

  • On what operating system?
    Win10

  • Are you using WinForms, WPF or OffScreen?
    WinForms

  • What steps will reproduce the problem?
    browser = new ChromiumWebBrowser("");
    browser.FindHandler = new CefFindHandler();

Using the most basic function:
browser.Find(1, "FindText", true, false, false);

  • What is the expected output? What do you see instead?
    The OnFindResult was supposed to return the identifier passed but, instead, it's returning an incremented number regardless if I'm doing a Find First, Previous, Next, or Last.

In addition, while the count and activeMatchOrdinal is correct, it appears to be connected to the last First/Last find, not necessarily associated with the identifier.

For example, if I did this and the result reports 20, the next and previous works fine and provides the correct count/activeMatchOrdinal.
browser.Find(1, "FindText", true, false, false);

If I did this and the result reports 30, the next and previous works fine and provides the correct count/activeMatchOrdinal as well, however, it will report off of the new search only.
browser.Find(2, "FindText2", true, false, false);

If I did a Find Previous or Next, the count/activeMatchOrdinal returns information from the browser.Find(2,.... instead, until a browser.Find(1,... was used in conjunction with a First or Last, which will then reset and provide the correct info.
browser.Find(1, "FindText", false, false, true);
browser.Find(1, "FindText", true, false, true);

The output that's expected should be associated with the identifier that's passed and the identifier passed should be the value that's returned rather than an incremented number.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions