Created attachment 151315 [details] Testcase In writing a perf test (https://bugs.webkit.org/show_bug.cgi?id=90811) I found a bug where we infinite loop when calling document.elementFromPoint on a <use>'d element in SVG. In the attached testcase you should see: About to call document.elementFromPoint(100,100)... 3... 2... 1... Done! But you actually see: About to call document.elementFromPoint(100,100)... 3... 2... 1... and the browser hangs. A quick look through trac hints at a regression from r118319 but that's just a guess.
Never heard about document.elementFromPoint before, its untested for SVG and likely to be broken.
(In reply to comment #1) > Never heard about document.elementFromPoint before, its untested for SVG and likely to be broken. Sure we do! elementFromPoint just calls through the nodeAtFloatPoint codepaths; lots of tests there. What we don't have is tests of this on <use> or <symbol> though, which is how this regressed.
Hi, I found this issue accidentally. Let me check it...
Created attachment 152163 [details] Patch
I hope this patch will pass the tests...
Comment on attachment 152163 [details] Patch Attachment 152163 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13207953 New failing tests: http/tests/w3c/webperf/approved/navigation-timing/html/test_performance_attributes_exist_in_object.html
Created attachment 152169 [details] Archive of layout-test-results from gce-cr-linux-04 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-04 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Comment on attachment 152163 [details] Patch I don't think this failure is related to my patch.
Created attachment 152671 [details] Rebased ToT
zimmerman, could you review this?
Comment on attachment 152671 [details] Rebased ToT Great catch. r=me!
(In reply to comment #11) > (From update of attachment 152671 [details]) > Great catch. r=me! Thanks for reviewing!
Comment on attachment 152671 [details] Rebased ToT Clearing flags on attachment: 152671 Committed r122825: <http://trac.webkit.org/changeset/122825>
All reviewed patches have been landed. Closing bug.
(In reply to comment #14) > All reviewed patches have been landed. Closing bug. Thanks for the quick fix Shinya! You rock :)