Summary: | Different behaviour with the .sort(callback) method (unlike Firefox & Chrome) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | webkit | ||||||||||||||||
Component: | JavaScriptCore | Assignee: | Keith Miller <keith_miller> | ||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||
Severity: | Minor | CC: | ap, arv, buildbot, cdumez, commit-queue, ddkilzer, keith_miller, krisredon83, ljharb, mark.lam, msaboff, rniwa, saam, webkit-bug-importer | ||||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||||||||
Hardware: | Mac (Intel) | ||||||||||||||||||
OS: | All | ||||||||||||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=268075 | ||||||||||||||||||
Attachments: |
|
Description
webkit
2010-10-18 08:55:57 PDT
What does Internet Explorer do? I've been told that V8 is expected to be bug-to-bug compatible with JavaScriptCore, so Chromium is supposed to to the same as other WebKit ports. If IE matches Safari and Opera, than it's Firefox that's the odd one out. Internet Explorer, Chrome, Firefox and Opera all returns: [{"e":1},{"e":1},{"e":0}] Given that I think it is safer to change JSC than V8. The original report says that Opera matches Safari, if I understood it correctly. (In reply to comment #3) > The original report says that Opera matches Safari, if I understood it correctly. I just double checked and Opera 10.60 returns [{"e":1},{"e":1},{"e":0}] I was testing with Opera 10.10 which return: [{e:1}, {e:0}, {e:1}] Also seen here: <http://kangax.github.io/compat-table/es5/> (In reply to comment #6) > Also seen here: <http://kangax.github.io/compat-table/es5/> This seems to be a different issue from the Kangex table bug. I opened a new bug for that problem: https://bugs.webkit.org/show_bug.cgi?id=163085 Created attachment 308856 [details]
Patch
Created attachment 308858 [details]
Patch
Created attachment 308859 [details]
benchmark results
sorting-benchmark didn't repro on subsequent runs.
Comment on attachment 308858 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=308858&action=review > Source/JavaScriptCore/ChangeLog:11 > + JQuery sorting of DOM nodes by 30%. The regression was do to the typo: /do/due/ Comment on attachment 308858 [details] Patch Attachment 308858 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/3661123 New failing tests: http/tests/inspector/worker/blob-script-with-cross-domain-imported-scripts.html Created attachment 308864 [details]
Archive of layout-test-results from ews100 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 308858 [details] Patch Attachment 308858 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/3661134 New failing tests: http/tests/inspector/worker/blob-script-with-cross-domain-imported-scripts.html Created attachment 308865 [details]
Archive of layout-test-results from ews107 for mac-elcapitan-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Comment on attachment 308858 [details] Patch Attachment 308858 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/3661227 New failing tests: http/tests/inspector/worker/blob-script-with-cross-domain-imported-scripts.html Created attachment 308866 [details]
Archive of layout-test-results from ews115 for mac-elcapitan
The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews115 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Created attachment 308940 [details]
Patch for landing
Comment on attachment 308940 [details] Patch for landing Clearing flags on attachment: 308940 Committed r216137: <http://trac.webkit.org/changeset/216137> All reviewed patches have been landed. Closing bug. |