Bug 55102 - A user gesture should not be required to open the file chooser dialog if the pop-up blocker is disabled.
Summary: A user gesture should not be required to open the file chooser dialog if the ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Johnny(Jianning) Ding
URL:
Keywords:
Depends on: 56383 47593
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-23 16:35 PST by Andy Estes
Modified: 2011-04-26 15:58 PDT (History)
4 users (show)

See Also:


Attachments
patch v1 (7.87 KB, patch)
2011-03-15 09:15 PDT, Johnny(Jianning) Ding
adele: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Estes 2011-02-23 16:35:36 PST
This matches Firefox 4's behavior. Users should be able to opt out of our protections if they so choose.
Comment 1 Johnny(Jianning) Ding 2011-03-15 09:15:55 PDT
Created attachment 85815 [details]
patch v1
Comment 2 Adele Peterson 2011-04-26 15:47:54 PDT
I'm not sure this is a good idea.  Even if a user turns off pop-up blocking, then might not expect that script can open the file chooser dialog.
Comment 3 Andy Estes 2011-04-26 15:56:13 PDT
This bug was based on a discussion I had with jnd about improving how we block file dialogs. This probably isn't as important to fix since we landed <http://trac.webkit.org/changeset/81057>, as that patch allows apps that rely on opening file choosers via setTimeout() to continue to work without changing the pop-up blocker pref.
Comment 4 Adele Peterson 2011-04-26 15:58:26 PDT
Comment on attachment 85815 [details]
patch v1

ok, then r-'ing for now.  If someone wants to argue for this, I'll reconsider.