Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
ajax system
Priority:
Major
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
20 Apr 2014 at 06:24 UTC
Updated:
28 May 2014 at 13:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bendikrb commentedPatch is attached.
Comment #2
bendikrb commentedComment #3
David_Rothstein commentedBased on http://kangax.github.io/es5-compat-table/#Reserved_words_as_property_names this doesn't affect modern browsers (so in practice, it's mainly an issue for IE8 and earlier).
I tested the patch and it looks good and fixes the issue. Drupal 6 is not affected.
I also updated the "known issues" section of the Drupal 7.27 release notes and release announcements to point to this issue.
Thanks!
Comment #4
ahmad abbad commentedI tested the patch and it looks good and fixes the issue.
Comment #5
ParisLiakos commentedthanks, that was fast:)
related: #2034051-24: Error D.ajax is undefined
Comment #6
ngocketit commentedTested and it works. Thanks for the patch!
Comment #7
alexander_danilenko commentedJust found this bug and i'm too late, Issue already created. damn :)
I confirm that bug appears in IE8 and patch fixes it.
+1 to RTBC
Comment #8
scottatdrake commentedConfirmed worked for me, too. (Dang you, IE8)
Comment #9
mike503 commented+1 RTBC. This needs to get into 7.28. It's bad when a "security update" fix actually breaks things.
Comment #11
mlhess commented1: use-of-reserved-word-2245331-1.patch queued for re-testing.
Comment #12
David_Rothstein commentedComment #13
sstedman commented+1 nice work, quick fix. Please include in 7.28. This broke js on my site and produced a very difficult to backtrace and fix error for IE8.
Comment #14
nod_Oh wow, sorry for not catching that during the review.
Comment #15
David_Rothstein commentedCommitted to 7.x - thanks!
Comment #17
br0kenI think that the
response['old']is unnecessary because the "old" keyword isn't reserved for JavaScript language.Comment #18
David_Rothstein commentedRight, it's unnecessary, but see the original issue report; the idea was to change both just to keep the style consistent in the same line of code.