Closed Bug 719778 Opened 14 years ago Closed 14 years ago

When opening local HTML page with embedded FlashPlayer FF doesn't re-read security sandbox configuration from FlashPlayerTrust.

Categories

(Firefox :: Untriaged, defect)

9 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: hrushev, Unassigned)

Details

(Keywords: flashplayer)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 Build ID: 20111220165912 Steps to reproduce: I have a HTML page on local disk with Flash Player embedded through an <object> tag. SWF movie which should be played on this page is in the same folder where the HTML is. My SWF movie opens data file from the same folder. So all data on my local HDD, say in folder C:\MyFiles. Several Internet sites are opened in Firefox tabs. When I'm trying to open my local HTML page in already opened Firefox it doesn't allow SWF movie to work with local data as it's not in local-security sandbox. Then I open "C:\Users\<Username>\AppData\Roaming\Macromedia\Flash Player\#Security\FlashPlayerTrust\" folder (this path is for Windows 7) and trying to add C:\MyFiles line to text file in that folder. So I'm placing C:\MyFiles into local-security sandbox. Then without closing Firefox I reopen/refresh tab with my HTML. Actual results: Firefox doesn't try to re-read the local-security sandbox so Flash Player doesn't allow my movie to load local content. To force Firefox to read new configuration it should now be closed and then reopened. This is terrible when many websites opened in tabs! Expected results: On opening/refreshing local HTML file (containing tag embedding the Flash Player) Firefox should re-read the local-security sandbox configuration. So it will be unnecessary to open/close browser each time when security sandbox changed. For example Internet Explorer 9 re-reads configuration each time on page refresh.
I think this is really bug because currently loaded page must depend on current sandbox configuration, instead of one at the time of the browser start-up (like now).
Keywords: flashplayer
Priority: -- → P1
Priority: P1 → --
>Firefox it doesn't allow SWF movie to work with local data as it's not in local-security sandbox. Firefox of course allows this but the flash plugin seems to disallow it. As example: The Plugin could format your HDD in the background if it wants to do that. >Firefox doesn't try to re-read the local-security sandbox Firefox doesn't load any sandbox-files at all. That are flash internal things. >For example Internet Explorer 9 re-reads configuration each time on page refresh. I'm pretty sure that IE doesn't know anything about the flash internal sandbox and BTW: IE doesn't use the same plugin as all browser do (activeX vs npapi plugin). It's however true that Gecko may not reload the flash plugin itself if you reload the only page that is currently using the plugin. That is an intended behavior.
I forgot: You could kill the plugin-container.exe process. That will force a reload of the plugin.
>>Firefox it doesn't allow SWF movie to work with local data as it's not in >local-security sandbox. >Firefox of course allows this but the flash plugin seems to disallow it. >As example: The Plugin could format your HDD in the background if it wants to >do that. I mean that Flash Plugin doesn't see the changes in security-sandbox configuration if it was already initialized in current browser instance. Yes, I understand that both Firefox and IE aren't know anything regarding security sandbox and other plugins-related things, but from the logic Firefox should force plugin to "go" to its "initial" state at page-loading time. I developed some ActiveX controls for different IE versions and as I know IE is always initialize an instance of ActiveX at each page loading time, not once. Now for example Flash Player plugin is in its "current" state when 2nd and all subsequent pages where it's embedded are open. This means that only 1st page with that plugin uses plugin's "initial" state. That's 100% not correct. So there's no way to initialize any plugin in Firefox on page loading time so behavior of my page DEPENDS on pages which user opened EARLY. Is this an intended behavior? Looking too strange. P.S. I'm sure that plugin-container.exe process killing is not the best way to initialize plugin.
Your problem is that the flash plugin itself seems to only read the configuration during the plugin startup. >This means that only 1st page with that plugin uses plugin's "initial" state. That's >100% not correct. That would be a flash plugin bug if behaves different. The plugin should be in it's initial state if it gets called for a "applet" because a new instance is started and it shouldn't matter if it gets loaded or is already running. Reloading a page with a plugin seems to work as it should in my tests. simple example: A youtube video starts at the beginning with a page reload
(In reply to Matthias Versen (Matti) from comment #5) > Your problem is that the flash plugin itself seems to only read the > configuration during the plugin startup. But when the new "instance" of plugin is created maybe it's necessary to do some "restart" of plugin? Do you want to say that it's Adobe's problem only? I'm not familiar with internal architecture of Firefox plugins. Is it possible now for plugin to "understand" that its new instance is created to handle something in webpage currently opening?
>But when the new "instance" of plugin is created maybe it's necessary to do some"restart" of plugin? No, the plugin doesn't have to be reloaded. Restarting the plugin-container or the npswf32.dll inside the container costs performance and that's the reason why the plugin-container isn't closed if you close the last page in the browser that calls a plugin. FYI: The plugin-conatiner is only a small shell around each plugin and each loaded plugin needs it's own container process. >Do you want to say that it's Adobe's problem only? Yes, exactly that is what i want to say. >I'm not familiar with internal architecture of Firefox plugins. The basic architecture is the same for all browsers except IE. it's however possible that some browsers will unload the plugin if the last page with that plugin is closed. That wouldn't help your in your case if you have a additional tab/window with youtube open.
(In reply to Matthias Versen (Matti) from comment #7) > >Do you want to say that it's Adobe's problem only? > Yes, exactly that is what i want to say. OK. I'll try to ask Adobe.
marking invalid
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.