Bug #46865
closedEmail regular expression freezes whole frame in Chrome
0%
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
Updated by Stanislas Rolland over 11 years ago
Please explain how to reproduce this issue.
Updated by Stanislas Rolland over 11 years ago
I am not able to reproduce this issue. Please explain exactly how to reproduce.
Updated by Michel Tremblay over 11 years ago
- Write the following text: "Ministère des Transports du Québec (Direction Saguenay-Lac-Saint-Jean-Chibougamau) et CSST"
- Add an external link to this text
- Save record
- Get back to the record and click inside the link text
- 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.
Updated by Stanislas Rolland over 11 years ago
- Status changed from New to Needs Feedback
Michel Tremblay wrote:
- Write the following text: "Ministère des Transports du Québec (Direction Saguenay-Lac-Saint-Jean-Chibougamau) et CSST"
- Add an external link to this text
- Save record
- Get back to the record and click inside the link text
- 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.
Updated by Alexander Opitz almost 11 years ago
- Is Regression set to No
Hi Michel,
did you retry this issue?
Updated by Alexander Opitz over 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.