Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149894 - Mozilla Firefox: document.createRange().extractContents() crashes
Summary: Mozilla Firefox: document.createRange().extractContents() crashes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-02 14:10 UTC by Kai Blaschke
Modified: 2006-12-24 09:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch fixing the described issue (firefox-extractContents-crash.patch,942 bytes, patch)
2006-10-02 14:12 UTC, Kai Blaschke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Blaschke 2006-10-02 14:10:54 UTC
As reported and fixed upstream for Seamonkey, Firefox suffers from a serious, remotely exploitable crash when using the JavaScript call "document.createRange().extractContents()". As this error drove me nuts when using TYPO3, which apparently uses such a call in it's backend JS code, and I patched the sources on my own using the patch v1.1 supplied in the upstream bug report. There is no clear information on whether it'll get fixed in FF 1.5.0.8 or not, but why wait when we can fix this right now.

Before applying the patch, Firefox crashes when entering

javascript:document.createRange().extractContents();

into the URL bar. After applying, just nothing happens, and Firefox continues running smoothly.
I did not add a new ebuild intentionally, since the patch will almost certainly go into the mozilla-firefox-*-patches archive, if accepted.
Comment 1 Kai Blaschke 2006-10-02 14:12:19 UTC
Created attachment 98661 [details, diff]
Patch fixing the described issue

This patch has been reviewed and accepted upstream, and works perfectly for me.
Comment 2 Christian Marie (RETIRED) gentoo-dev 2006-12-24 09:17:37 UTC
Fixed in stable.