Closed
Bug 315468
Opened 20 years ago
Closed 9 years ago
Popup blocker blocks user initiated popup from Flash (actionscript onpress)
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: davide.pulver, Assigned: jst)
References
()
Details
(Keywords: regression)
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051025 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051025 Firefox/1.5
In general a popup blocker should only block unwanted popups.
User initiated popups should always be allowed.
Reproducible: Always
Steps to Reproduce:
1. open the page
2. Click on the link "3D Gallery" on the bottom left
Actual Results:
Firefox prevents the site from opening a popup window
Expected Results:
Open the window because it's user initiated
I also performed the test at http://www.dancesoft.com/browsertest.htm
with the same problem.
Updated•20 years ago
|
Updated•20 years ago
|
Summary: popup blockers blocks user initiated popups → Popup blocker blocks user initiated popup from Flash
Comment 1•20 years ago
|
||
This happens for some Flash pages but not for others. For example, the "3D Gallery" link on http://www.naturevibes.com/index2.html doesn't work, while the "Go" button on http://www.deepfriedlive.com/ does work. What are the two Flash files doing differently?
Reporter | ||
Comment 2•20 years ago
|
||
In the "3D Gallery" link on http://www.naturevibes.com/index2.html the javascript:window.open function is embedded in the flash movie.
The "Go" button on http://www.deepfriedlive.com/ is calling the function do_it in the html page.
The window.open function is working fine if it's coded in the html. If the function is directly called in the flash movie, the popup blocker doesn't allow it.
Reporter | ||
Comment 3•20 years ago
|
||
I did some tests now and found out the problems:
- First, the window.open function has to be done in html instead in flash movie (as mentionned before)
- Second, in Flash actionscript, the action used to open the link has to be "on (release). While I was using the action "on (press)" the popup blocker always blocked the windows, regardless of where the window.open was done$
Comment 4•20 years ago
|
||
Peter Grandmaison, can you help us figure out if this is a bug in Flash or a bug in Firefox?
Comment 5•20 years ago
|
||
(or intended behavior -- Firefox has some of that too, see bug 239403 / bug 304827.)
*** Bug 318298 has been marked as a duplicate of this bug. ***
*** Bug 318042 has been marked as a duplicate of this bug. ***
This is intended, see bug 176079.
This is due to the new privacy.popups.disable_from_plugins pref. Try to change it to 0 or 1. Or whitelisting the site in the popup blocker will work too.
Comment 9•20 years ago
|
||
I don't think this is intentional. Macromedia and we are trying to make user-initiated popups from Flash work, and they do work in some Flash pages.
Comment 10•20 years ago
|
||
This movie demonstrates that popups from WM_LBUTTONDOWN AKA on(press) are blocked, but WM_LBUTTONUP AKA on(release) are not blocked.
Comment 11•20 years ago
|
||
Comment 12•20 years ago
|
||
ActionScript event handler on(release) is invoked in response to WM_LBUTTONUP -- this is working correctly.
ActionScript event handle on(press) is invoked in response to WM_LBUTTONDOWN -- this is not working correctly.
I expect FireFox is calling NPN_PushPopupsEnabledState() before dispatching the WM_LBUTTONUP, but not WM_LBUTTONDOWN. Our expectation is that FireFox wraps all user event dispatch with a push/pop pair.
So I'd say this is a bug with FireFox.
Comment 13•20 years ago
|
||
Comment 14•19 years ago
|
||
I have seen the same problem, trying to click on a macromedia flash banner ad under linux using firefox 1.5.0.1 -- nothing happens, if the popup blocker is enabled. if I disable the popup blocker, I can get a clickthrough from a flash banner ad to the destination url just fine.
Comment 15•19 years ago
|
||
Ere, jst, biesi, do you know who should own this? This breaks a lot of Flash content. See comment 10 through comment 13 for some analysis from Peter Grandmaison at Macromedia.
Blocks: BlockFlashPopup
Flags: blocking1.9a1?
Keywords: regression
Summary: Popup blocker blocks user initiated popup from Flash → Popup blocker blocks user initiated popup from Flash (actionscript onpress)
Updated•19 years ago
|
Component: General → Plug-ins
Product: Firefox → Core
QA Contact: general → plugins
Version: unspecified → 1.8 Branch
Comment 16•19 years ago
|
||
I don't think it's anything I'm too familiar with unless the problem lies in Win32 widget code, which seems unlikely.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.9a1? → blocking1.9+
Comment 17•19 years ago
|
||
I see similar blocking of Macromedia's About link from context click of flash content. You have to allow popups for the site to get the macromedia about page.
Jst will try to talk with the flash people and see if it's possible to get them to use our popup blocker API to fix this in the plugin
Assignee: nobody → jst
Assignee | ||
Comment 20•18 years ago
|
||
(In reply to comment #12)
> ActionScript event handler on(release) is invoked in response to WM_LBUTTONUP
> -- this is working correctly.
>
> ActionScript event handle on(press) is invoked in response to WM_LBUTTONDOWN --
> this is not working correctly.
>
> I expect FireFox is calling NPN_PushPopupsEnabledState() before dispatching the
> WM_LBUTTONUP, but not WM_LBUTTONDOWN. Our expectation is that FireFox wraps all
> user event dispatch with a push/pop pair.
>
> So I'd say this is a bug with FireFox.
Peter, you're right, we enable popups only when handling WM_LBUTTONDOWN, but not when handling WM_LBUTTONUP. While we could relatively easily change that, doing that won't fix the whole problem across platforms. What we have right now in Firefox is a windows specific hack to partially work around this problem. This hack is also furhter complicated by the fact that when sending a WM_LBUTTONDOWN message to the flash player, it doesn't actually act on that right away, do we can't disable popups after having passed that message to the flash player. To get around that we also have code that delays the disabling of popups until we get back to the main event loop again.
That's of course why popups from flash don't work at all on Linux, and there it's non-trivial for the browser to intercept the events that are going to the plugin, so we can't easily add a similar hack for Linux (on Mac we could, but we'd rather not).
This was done some time ago when we didn't have an API for plugins to do this themselves. And this was the reason for adding NPN_PushPopupsEnabledState() and NPN_PopPopupsEnabledState(), so that plugins could do this right, across platforms. And especially given delayed actions to certain messages etc, it really is the plugin that should manage this rather than expecting the browser to do it for them.
Given that, I *really* don't want to change anything in the browser relating to this, except maybe take out our hacks once a flash player exists that manages popup enabled state on its own.
Unmarking the blocking flag, setting this to be nominated as a blocker to track what to do here.
Flags: blocking1.9+ → blocking1.9?
This needs to be fixed on the plugin side. We're in talks with adobe about it.
Flags: blocking1.9? → blocking1.9-
Comment 22•18 years ago
|
||
The Flash Player team will be investigating shortly and will respond back.
Comment 23•18 years ago
|
||
Created bug in Adobe's Flash Player bugbase. Reference #212291
Comment 24•18 years ago
|
||
With Flash Player version 9.0.115.0 installed neither the blue button nor the green button of the attached Test movie open a new window, see bug 414460.
Comment 25•9 years ago
|
||
Hi,
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:49.0) Gecko/20100101 Firefox/49.0
The issue is no longer reproducible on the latest Firefox Release (46.0, Build ID 20160421124000) and the latest Nightly (49.0a1, Build ID 20160427030215). I used the testcase from comment 10 and both buttons work correctly.
Considering this I will mark this issue as RESOLVED-WORKSFORME. If anyone still encounters this issue, feel free to reopen this one or file a new one.
Thanks,
Cipri
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•