Project

General

Profile

Actions

Bug #46865

closed

Email regular expression freezes whole frame in Chrome

Added by Michel Tremblay about 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2013-04-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When using some long string as link text in the htmlarea editor, the browser window may freeze completely. (in Chrome only, ok in Firefox)

The text used to trigger the problem : "Ministère des Transports du Québec (Direction Saguenay-Lac-Saint-Jean-Chibougamau) et CSST"

I found out that the regex validation to detect email addresses is the cause of this problem.

As a quick patch, in htmlarea.js, line 4369, I replaced :

if (selection.anchorNode.data.match(HTMLArea.RE_email) && (a.href.match('mailto:' + selection.anchorNode.data.trim()))) {

by :

if (selection.anchorNode.data.indexOf('') !== -1 && selection.anchorNode.data.match(HTMLArea.RE_email) && (a.href.match('mailto:' + selection.anchorNode.data.trim()))) {@

This solves the problem for this particular case, but maybe the RE_email regex should be looked upon.

This could be related : http://stackoverflow.com/questions/12803859/regexp-and-string-combination-crashes-chrome

Actions #1

Updated by Stanislas Rolland about 11 years ago

Please explain how to reproduce this issue.

Actions #2

Updated by Stanislas Rolland almost 11 years ago

I am not able to reproduce this issue. Please explain exactly how to reproduce.

Actions #3

Updated by Michel Tremblay almost 11 years ago

  1. Write the following text: "Ministère des Transports du Québec (Direction Saguenay-Lac-Saint-Jean-Chibougamau) et CSST"
  2. Add an external link to this text
  3. Save record
  4. Get back to the record and click inside the link text
  5. Write characters inside the link

Chrome should freeze while entering text.

If you can't reproduce the issue. I'll retry myself with a clean TYPO3 6 instance.

Actions #4

Updated by Stanislas Rolland over 10 years ago

  • Status changed from New to Needs Feedback

Michel Tremblay wrote:

  1. Write the following text: "Ministère des Transports du Québec (Direction Saguenay-Lac-Saint-Jean-Chibougamau) et CSST"
  2. Add an external link to this text
  3. Save record
  4. Get back to the record and click inside the link text
  5. Write characters inside the link

Chrome should freeze while entering text.

If you can't reproduce the issue. I'll retry myself with a clean TYPO3 6 instance.

I just tried this again with TYPO3 6.1.2 and Chrome 28.0.1500.72 on Windows 7 and on iOS 6.1.3 without being able to make Chrome freeze.

Actions #5

Updated by Alexander Opitz over 10 years ago

  • Is Regression set to No

Hi Michel,

did you retry this issue?

Actions #6

Updated by Alexander Opitz almost 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this ticket.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF