Closed
Bug 536199
Opened 16 years ago
Closed 16 years ago
Crash Yahoo! frontpage with 12/21 1.9.2 nightly build
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(status1.9.2 final-fixed, fennec1.0+)
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| status1.9.2 | --- | final-fixed |
| fennec | 1.0+ | --- |
People
(Reporter: aakashd, Assigned: mfinkle)
Details
(Keywords: mobile)
Attachments
(1 file)
|
3.49 KB,
patch
|
dougt
:
review+
|
Details | Diff | Splinter Review |
Build Id:
Mozilla/5.0 (X11; U; Linux armv7l; Nokia N900; en-US; rv:1.9.2b5pre) Gecko/20091221 Firefox/3.6b5pre Fennec/1.0b6pre
Steps to Reproduce:
1. Enable Plugins
2. Go to www.yahoo.com
3. Wait for page load and for flash title and ad to start
Actual Results:
Fennec will crash
Expected Results:
Fennec shouldn't crash
Updated•16 years ago
|
Assignee: mozbugz → nobody
tracking-fennec: ? → 1.0+
Comment 1•16 years ago
|
||
this won't crash if you are on m.www.yahoo.com (auto redirect), but does on www.yahoo.com
Comment 2•16 years ago
|
||
This is a crash in libflashplayer.so
Comment 3•16 years ago
|
||
I can't get it to not redirect me to the mobile page.
| Assignee | ||
Comment 4•16 years ago
|
||
The crash is happening in NativeImageDraw when we set the window:
http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsObjectFrame.cpp#5102
But only when NativeImageDraw is called from InvalidateRect:
http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsObjectFrame.cpp#2733
Doug mentioned that we only really need to call SetWindow if the size of the plugin changes. Therefore, this patch does just that. The size only changes when SetAbsoluteScreenPosition is called, which then calls NativeImageDraw.
The patch skips the SetWindow call if "invalidRect" is null and "sizeChanged"
Theremight be an upside to skipping SetWindow whenever possible. Page loading and panning both seem faster with the patch.
A test build with this patch can be found here:
http://people.mozilla.com/~mfinkle/fennec/fennec-1.0b6pre.en-US.linux-gnueabi-arm-flashfix.tar
Attachment #418795 -
Flags: review?(mozbugz)
Comment 5•16 years ago
|
||
Comment on attachment 418795 [details] [diff] [review]
patch
can we move the | if (!invalidRect && sizeChanged) {
| block into SetupXShm? We probably only need to do this when size changes.
| Assignee | ||
Comment 6•16 years ago
|
||
(In reply to comment #5)
> (From update of attachment 418795 [details] [diff] [review])
> can we move the | if (!invalidRect && sizeChanged) {
> | block into SetupXShm? We probably only need to do this when size changes.
I don't follow. The SetupXShm() call has a sizeChanged check already, right?
Comment 7•16 years ago
|
||
Comment on attachment 418795 [details] [diff] [review]
patch
discussed on IRC.
This is probably a fine optimization, but we do not know if this actually fixes the crash.
Attachment #418795 -
Flags: review?(mozbugz) → review+
| Assignee | ||
Comment 8•16 years ago
|
||
pushed m-c:
http://hg.mozilla.org/mozilla-central/rev/8edc5071211f
pushed m-192:
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/e2797cbdc4c1
Assignee: nobody → mark.finkle
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → RC
| Assignee | ||
Updated•16 years ago
|
| Assignee | ||
Updated•16 years ago
|
status1.9.2:
--- → final-fixed
| Reporter | ||
Updated•16 years ago
|
Flags: in-testsuite?
Updated•4 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•