RESOLVED WONTFIX 111472
Chromium - Find field display negative indexes
https://bugs.webkit.org/show_bug.cgi?id=111472
Summary Chromium - Find field display negative indexes
Sam Larison
Reported 2013-03-05 13:04:07 PST
The chrome bug found at https://code.google.com/p/chromium/issues/detail?id=130908 Seems to be related to problems in code that is located in the file: src\third_party\WebKit\Source\WebKit\chromium\src\WebFrameImpl.cpp aka Source\WebKit\chromium\src\WebFrameImpl.cpp A simple fix as shown in comment number 9 has been discovered https://code.google.com/p/chromium/issues/detail?id=130908#c9 It is unclear to me whether this fix will be considered sufficient or a more intensive overhaul will be required. I did not see a category for "WebKit chromium" in the component selector... I have a branch in webkit git with above fix included.
Attachments
A proposed fix for chromium issue 130908 (729 bytes, patch)
2013-03-05 14:10 PST, Sam Larison
no flags
A proposed fix for chromium issue 130908 (728 bytes, patch)
2013-03-05 16:34 PST, Sam Larison
no flags
Patch (1.93 KB, patch)
2013-03-18 15:31 PDT, Sam Larison
no flags
Sam Larison
Comment 1 2013-03-05 14:10:10 PST
Created attachment 191560 [details] A proposed fix for chromium issue 130908
Sam Larison
Comment 2 2013-03-05 16:34:07 PST
Created attachment 191597 [details] A proposed fix for chromium issue 130908
Sam Larison
Comment 3 2013-03-06 09:00:23 PST
Comment on attachment 191597 [details] A proposed fix for chromium issue 130908 The comment says "we need to reset everything" yet everything was not being reset... until now.
Sam Larison
Comment 4 2013-03-10 14:27:59 PDT
Adding some people to the CC list who may have more familiarity with this code to aid in resolution of this bug. https://code.google.com/p/chromium/issues/detail?id=130908 The line added by this patch fixes the chrome issue. I am looking for some additional information from those who originally worked on this bit of code. Maybe there is a good reason this variable is not reset during rest. Unless m_locatingActiveRect becomes true we do not discover the correct index and end up with negative numbers in some circumstances as seen in the chrome issue. When setting the reset parameter to true for scopeStringMatches, the function is not truly reset unless m_locatingActiveRect becomes true. I can see there may be other ways to resolve the issue (calling the find function with certain parameters sets this variable to become true), however perhaps I might find a better understanding of the issue if I knew why m_locatingActiveRect isn't being reset during reset (speed?), because at least under some circumstances it seems like it should be set to true too, otherwise critical parts of scopeStringMatches are never reached. I am running more tests to see if this resolves too. https://code.google.com/p/chromium/issues/detail?id=162083 Thanks! Sam
Adam Barth
Comment 5 2013-03-10 20:29:06 PDT
Comment on attachment 191597 [details] A proposed fix for chromium issue 130908 We'll need a change log and a test as well. I haven't studied the change to see if its right.
Leandro Graciá Gil
Comment 6 2013-03-11 05:15:07 PDT
I'm afraid I'm not familiar with m_locatingActiveRect nor I touched it when working on the WebFrameImpl find-in-page code. Sorry for not being of more help.
Sam Larison
Comment 7 2013-03-18 15:31:20 PDT
Note You need to log in before you can comment on or make changes to this bug.