Closed
Bug 604262
Opened 14 years ago
Closed 14 years ago
Crash [@ nsImageLoadingContent::OnStartDecode]
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
mozilla2.0b11
People
(Reporter: jruderman, Assigned: jst)
References
Details
(Keywords: crash, regression, testcase, Whiteboard: [softblocker][fx4-fixed-bugday])
Crash Data
Attachments
(6 files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mrbkap
:
review+
dveditz
:
approval1.9.1.19+
|
Details | Diff | Splinter Review |
(deleted),
text/html
|
Details |
No description provided.
Comment 1•14 years ago
|
||
It looks like this does not crash on Firefox 3.6. Should that be a blocker?
blocking2.0: --- → ?
Keywords: regression
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
Assignee | ||
Comment 2•14 years ago
|
||
This makes it so that only chrome can call methods on the interfaces that are not explicitly listed in classinfo for input elements.
Attachment #483355 -
Flags: review?(jonas)
Comment on attachment 483355 [details] [diff] [review]
Fix.
If we're able to restrict access to Components.interfaces for FF4, then we should back this out.
r=me for now though.
Attachment #483355 -
Flags: review?(jonas) → review+
Depends on: 605271
This is fixed by Bug 605271.
Updated•14 years ago
|
Assignee: nobody → jst
Bug 605271 isn't going to make it. We should land this on trunk.
Keywords: checkin-needed
Comment 7•14 years ago
|
||
I was thinking to push this but it doesn't pass try and fails a lot of tests. One of them is content/base/test/test_copyimage.html
For more information, you can see the try results here:
http://tbpl.mozilla.org/?tree=MozillaTry&rev=758292a1efa8
Keywords: checkin-needed
Whiteboard: [dont pass try]
Assignee | ||
Updated•14 years ago
|
Whiteboard: [dont pass try] → [dont pass try], softblocker
Assignee | ||
Updated•14 years ago
|
Whiteboard: [dont pass try], softblocker → [dont pass try][softblocker]
Assignee | ||
Comment 8•14 years ago
|
||
So this got nasty. What happens here is that we have a bunch of code that ends up running from within untrusted JS, and that code calls into the image code to do whatever, and we check to see if the caller is trusted, but we find the untrusted JS code, and deny the C++ code from doing what it needs to do. This patch adds the (in)appropriate nsCxPusher's to push a null context where needed to hide the fact that this code was called from untrusted JS so that the C++ code can do what it needs to do. This really sucks, but I don't think we have a better option here.
Attachment #507741 -
Flags: review?(jonas)
Comment on attachment 507741 [details] [diff] [review]
Fix test failures.
>@@ -145,7 +145,13 @@ nsSVGImageFrame::~nsSVGImageFrame()
> if (mListener) {
> nsCOMPtr<nsIImageLoadingContent> imageLoader = do_QueryInterface(mContent);
> if (imageLoader) {
>- imageLoader->RemoveObserver(mListener);
>+ // Push a null JSContext on the stack so that code that runs
>+ // within the below code doesn't think it's being called by
>+ // JS. See bug 604262.
>+ nsCxPusher pusher;
>+ pusher.PushNull();
>+
>+ imageLoader->RemoveObserver(mListener);
There's a whitespace issue on the last line here.
r=me with that fixed.
Attachment #507741 -
Flags: review?(jonas) → review+
Comment 10•14 years ago
|
||
This patch landed as:
http://hg.mozilla.org/mozilla-central/rev/4beb0e6ba654
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b11
Comment 11•14 years ago
|
||
Tested
Mozilla/5.0 (Windows NT 5.1; rv:2.0b11) Gecko/20100101 Firefox/4.0b11 ID:20110203141415
does not crash when loading attachment.
4.0b10 did crash ! So it seems problem is solved.
Comment 12•14 years ago
|
||
Verified on Linux, too — with Mozilla/5.0 (X11; Linux i686; rv:2.0b12pre) Gecko/20110204 Firefox/4.0b12pre (crashed with 20110124030332)
Status: RESOLVED → VERIFIED
Whiteboard: [dont pass try][softblocker] → [dont pass try][softblocker][bugday0204]
The patch landed, just looks like the bug was never closed. Thanks for catching that Ben and Aleksej!
Whiteboard: [dont pass try][softblocker][bugday0204] → [softblocker][bugday0204]
Landed a test.
http://hg.mozilla.org/mozilla-central/rev/3341241b6ee0
Flags: in-testsuite+
Whiteboard: [softblocker][bugday0204] → [softblocker][fx4-fixed-bugday]
Updated•14 years ago
|
Blocks: CVE-2011-0066
Updated•14 years ago
|
Depends on: 631421
status1.9.1:
unaffected → ---
Updated•14 years ago
|
blocking1.9.1: --- → .18+
status1.9.1:
--- → wanted
Comment 15•14 years ago
|
||
Deferring to a future point release as we have run out of time. If this absolutely needs to be fixed and can land today or tomorrow, please send a note to release-drivers@mozilla.org
blocking1.9.1: .19+ → .20+
blocking1.9.2: .17+ → .18+
Comment 16•14 years ago
|
||
We still do need this one
blocking1.9.1: .20+ → .19+
blocking1.9.2: .18+ → .17+
Assignee | ||
Comment 17•14 years ago
|
||
Comment 18•14 years ago
|
||
This landing seems to kill JS "var ButtonImage = new Array()" function.
Comment 19•14 years ago
|
||
Sorry for my insufficient explanation.
After changes pushed with changeset a7a241b581ad, 'onmouseover' and 'onmouseout' function don't work.
Can you file a new bug with a testcase and CC me?
Comment 21•14 years ago
|
||
This turned the 1.9.2 reftest tinderboxen orange because of sync/async differences between trunk and branch. This patch should make them go green. It has r=bz and a=dveditz (both in person).
Attachment #525442 -
Flags: review+
Comment 22•14 years ago
|
||
Assignee | ||
Comment 23•14 years ago
|
||
This is a combined patch against 1.9.1 of all that was checked in for 1.9.2. I found out that nsCxPusher::PushNull doesn't exist on the 1.9.1 branch, and adding it isn't trivial, so I did the pushing and popping by hand instead. And some of the changed code didn't exist on 1.9.1 so there are a couple of hunks that are different here.
Attachment #526410 -
Flags: review?(mrbkap)
Comment 24•14 years ago
|
||
(In reply to comment #20)
> Can you file a new bug with a testcase and CC me?
bug 649326 was filed on this, but was fixed by the patch in comment 21.
Comment 25•14 years ago
|
||
Comment on attachment 526410 [details] [diff] [review]
Fix for 1.9.1
Looks good. I was wondering if it might have been worth it to add a nsNullCxPusher class, but it only helps one case added in this patch, so probably not.
Attachment #526410 -
Flags: review?(mrbkap) → review+
Assignee | ||
Updated•14 years ago
|
Attachment #526410 -
Flags: approval1.9.1.20?
Attachment #526410 -
Flags: approval1.9.1.19?
Comment 26•14 years ago
|
||
Comment on attachment 526410 [details] [diff] [review]
Fix for 1.9.1
Approved for 1.9.1.19, a=dveditz for release-drivers
Please land ASAP so we can re-spin today.
Attachment #526410 -
Flags: approval1.9.1.20?
Attachment #526410 -
Flags: approval1.9.1.19?
Attachment #526410 -
Flags: approval1.9.1.19+
Comment 27•14 years ago
|
||
Pushed in 1.9.1:
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/a846a6d5bbf8
Comment 28•14 years ago
|
||
And to the relbranch: http://hg.mozilla.org/releases/mozilla-1.9.1/rev/6a8fcd90b366
Comment 29•14 years ago
|
||
I checked this with the attached testcase in build 1 (before the fix on 4/20) of 1.9.1.19. I do not see a crash. This is on Windows 7.
How does one cause the crash?
Al, you can use this testcase on 1.9.1.
(It won't crash, but it should be enough to verify the fix here.)
Updated•13 years ago
|
Crash Signature: [@ nsImageLoadingContent::OnStartDecode]
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•