Bug 26157 - XPathEvaluator doesn't reuse an explicitly passed result object
Summary: XPathEvaluator doesn't reuse an explicitly passed result object
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P4 Minor
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2009-06-03 01:13 PDT by Alexey Proskuryakov
Modified: 2022-08-04 10:38 PDT (History)
5 users (show)

See Also:


Attachments
test case (1.09 KB, text/html)
2009-06-03 01:14 PDT, Alexey Proskuryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2009-06-03 01:13:31 PDT
One can pass an XPathResult object to reuse into evaluate(). WebKit just ignores that, and returns a new result object.

I've never seen any code that depended on it though, and it does seem to be a significant optimization opportunity.
Comment 1 Alexey Proskuryakov 2009-06-03 01:14:02 PDT
Created attachment 30896 [details]
test case
Comment 2 Alexey Proskuryakov 2010-11-03 09:46:35 PDT
> it does seem to be a significant optimization opportunity

I meant, does NOT!
Comment 3 Ahmad Saleem 2022-08-04 10:25:10 PDT
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case and it shows "FAIL" for Safari 15.6 and Chrome Canary 106. While Firefox Nightly 105 show it as "PASS". Thanks!
Comment 4 Radar WebKit Bug Importer 2022-08-04 10:38:07 PDT
<rdar://problem/98134829>