Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(357)

Issue 157080044: Work around Firefox 33 regexp performance bug in CSS lexer. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by kpreid_google
Modified:
11 years, 4 months ago
Reviewers:
MarkM
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

In Firefox 33, regexp operations on strings which can be represented as Latin-1 characters only may be very slow or hung. Work around this for our CSS lexer by inserting a funny character temporarily. This change is based on a patch provided by James Keane, with additional explanatory text and rearrangement of the existing code. The browser bug is expected to be fixed in Firefox 34. https://code.google.com/p/google-caja/issues/detail?id=1941 https://bugzilla.mozilla.org/show_bug.cgi?id=1081175 @r5702

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M src/com/google/caja/plugin/csslexer.js View 1 chunk +12 lines, -3 lines 0 comments Download

Messages

Total messages: 2
kpreid_google
11 years, 4 months ago (2014-10-15 17:42:01 UTC) #1
MarkM
11 years, 4 months ago (2014-10-15 18:08:00 UTC) #2
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b