Closed Bug 897784 Opened 12 years ago Closed 11 years ago

Addition of Array.prototype.find breaks immobilienscout24.at

Categories

(Tech Evangelism Graveyard :: German, defect)

defect
Not set
normal

Tracking

(firefox25- affected)

RESOLVED WORKSFORME
Tracking Status
firefox25 - affected

People

(Reporter: soeren.hentzschel, Assigned: hsteen)

References

()

Details

(Keywords: regression, site-compat, Whiteboard: [sitewait])

Attachments

(2 files)

Attached image bad
STR: 1. go to www.immobilienscout24.at 2. click on the input field "Bundesland, Ort oder Postleitzahl" 3. select a city Expected result: Page shows results. Actual result: Page doesn't show results. See screenshots. First bad revision (mozregression): Die erste fehlerhafte Revision ist: Änderung: 136603:a839287871f9 Nutzer: Till Schneidereit <tschneidereit@gmail.com> Datum: Wed Jun 26 18:47:41 2013 +0200 Zusammenfassung: Bug 885553 - Implement ES6 Array.prototype.find and Array.prototype.findIndex. r=jwalden
Attached image good
Depends on: 885553
Keywords: regression
Yeah, this is caused by the site adding a `find` method to arrays that's incompatible with the es6 version. I whish they did that unconditionally, instead of only if no method of the same name is defined. Moving to Tech Evangelism for now, but CC-ing people in preparation of maybe taking measures on our side.
Assignee: general → german
Blocks: 885553
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → German
No longer depends on: 885553
Ever confirmed: true
Product: Core → Tech Evangelism
Summary: Bug #885553 breaks immobilienscout24.at → Addition of Array.prototype.find breaks immobilienscout24.at
Target Milestone: --- → Jul
Assignee: german → hsteen
Status: NEW → ASSIGNED
Whiteboard: [sitewait]
Do we know of any other major websites that may have been impacted already ?
(In reply to bhavana bajaj [:bajaj] from comment #4) > Do we know of any other major websites that may have been impacted already ? I'm not aware of any, no. IMO, we should let this ride the trains for now, but be prepared to back it out if we encounter problems. The argument against that would be that platform or addons code might start relying on it, making it harder to back out.
The cause could be the Sugar library which extends Array.prototype: https://github.com/andrewplummer/Sugar/blob/master/lib/array.js#L405 The find and findIndex methods are affected by the native ES6 methods. I'll add this issue to the site compatibility doc: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/25/Site_Compatibility
Keywords: site-compat
Note that Suger also has http://sugarjs.com/api/Array/from, which will be broken when Bug 866849 is landed. Furthermore, http://sugarjs.com/api/String/repeat might be broken since Firefox 24 as the native method has been added by Bug 815431.
Blocks: 903755
There's a new version of SugarJS, so ideally the site would upgrade to that. In case upgrading to a whole new version proves too time-consuming, there's also a patch for just the problematic builtins. The details can be found in bug 903755 comment 10.
(In reply to Hallvord R. M. Steen from comment #3) > contacted on https://immobilienscout24.secure.force.com/arlFAQKontakt Any updates?
Flags: needinfo?(hsteen)
No news. Tried contacting them again - now also posting on their Facebook and Google+ pages.
Flags: needinfo?(hsteen)
(BTW - I guess this shouldn't be a blocker - AFAIK we don't usually consider tech evangelism issues blockers..)
we fixed the bug by patching sugarJS (see https://github.com/andrewplummer/Sugar/blob/master/lib/patches/sugar-es6-patch.js). fyi the page you've tested has been replaced by a new one. please let me know if the bug is still occurring.
Maher, thanks for the confirmation. Given that you replaced the problematic page, I'm going to mark this as resolved without any more testing. I have confirmed the SugarJS patch to fix the underlying issue already, so if that is applied, we should be good here.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: