Closed
Bug 1131345
Opened 11 years ago
Closed 11 years ago
GetVariable method no longer works for windowless 0-size SWFs
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(firefox35 unaffected, firefox36+ disabled, firefox37+ wontfix, firefox38+ wontfix)
RESOLVED
INCOMPLETE
People
(Reporter: t.brain, Assigned: benjamin)
References
Details
(Keywords: regression)
Attachments
(1 file)
|
1.04 KB,
application/zip
|
Details |
An SWF which is windowless (wmode either "opaque" or "transparent") and has 0px width or height, always returns "undefined" to any GetVariable call.
This is a regression in Firefox 36 beta, and works fine in Firefox 35 and previous versions, as well as in all other browsers.
Comment 1•11 years ago
|
||
Can you provide a testcase either attached or as URL ?
Flags: needinfo?(t.brain)
As you can see here: http://brainy.dagon.org/b1131345.html
All of these should return "bar", but on Firefox 36, the 0x0 transparent/opaque object/embed return null instead.
Flags: needinfo?(t.brain)
Comment 3•11 years ago
|
||
12:53.38 LOG: MainThread Bisector INFO Last good revision: 52156df5e298
12:53.38 LOG: MainThread Bisector INFO First bad revision: 0a0e57c4e420
12:53.38 LOG: MainThread Bisector INFO Pushlog:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=52156df5e298&tochange=0a0e57c4e420
Makoto Kato — Bug 1120747 - dom.ipc.plugins.flash.disable-protected-mode might not work when launching Flash is immediately. r=aklotz
Seems to be a cause of the protected mode....
Blocks: 1120747
Status: UNCONFIRMED → NEW
status-firefox36:
--- → affected
status-firefox37:
--- → affected
status-firefox38:
--- → affected
tracking-firefox36:
--- → ?
tracking-firefox37:
--- → ?
Component: Untriaged → Plug-ins
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Comment 4•11 years ago
|
||
Tracking 36+ as that is when the regression was introduced.
Makoto - Given that bug 1120747 was called out as the cause in comment 3, can you take this bug?
| Assignee | ||
Comment 5•11 years ago
|
||
This appears to be caused by disabling protected mode (bug 1119941), which is reverted in beta9 (see bug 1120993).
This is unexpected and needs diagnosis. I'll take this for now.
Flags: needinfo?(m_kato)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → benjamin
| Assignee | ||
Comment 6•11 years ago
|
||
T. Brains, could I see the source code of that .swf?
Flags: needinfo?(t.brain)
| Assignee | ||
Comment 7•11 years ago
|
||
Is .getVariable("foo") supposed return "bar" in every condition?
Yeah, the source code of the SWF is simply setting a variable named "foo" with a value "bar" as soon as it initializes. As long as the SWF has initialized, the GetVariable("foo") call should always return bar.
I can't tell if the problem is that the SWF doesn't initialize at all, or if the problem is with the GetVariable call itself.
Flags: needinfo?(t.brain)
Do you require any more information from me on this? Is there any chance this will be fixed before 36 becomes production? We need to evaluate the situation here because it breaks our production code.
Updated•11 years ago
|
Flags: needinfo?(benjamin)
| Assignee | ||
Comment 10•11 years ago
|
||
Protected mode was only a test on beta, it is not going to release by default.
I tried to reproduce this using my own SWF (built in Flash builder) and was unable to reproduce. Could you send me the exact source code of the SWF testcase?
Blocks: 1119941
Flags: needinfo?(benjamin)
| Reporter | ||
Comment 11•11 years ago
|
||
This is an AS2 SWF built using FlashDevelop and MTASC. The source code is as following:
class Main
{
static function main(timeline:MovieClip) {
timeline.foo = "bar";
}
}
| Reporter | ||
Comment 12•11 years ago
|
||
I've attached a zip of a FlashDevelop project you can use to build this SWF.
Comment 13•11 years ago
|
||
As we're not going to disable protected mode automatically, can resolve this bug?
Flags: needinfo?(benjamin)
| Assignee | ||
Comment 14•11 years ago
|
||
Yeah, we're not going to do this automatically and I don't think we'd spend additional diagnostic time on it because of that.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(benjamin)
Resolution: --- → INCOMPLETE
Updated•11 years ago
|
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
•