Bug 13127 - pass Frame context to ChromeClient::createWindow and friends
Summary: pass Frame context to ChromeClient::createWindow and friends
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P2 Minor
Assignee: Darin Fisher (:fishd, Google)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-19 21:19 PDT by Darin Fisher (:fishd, Google)
Modified: 2007-04-11 21:42 PDT (History)
0 users

See Also:


Attachments
patch (9.32 KB, patch)
2007-03-19 22:12 PDT, Darin Fisher (:fishd, Google)
mjs: review-
Details | Formatted Diff | Diff
revised patch (11.73 KB, patch)
2007-03-21 15:30 PDT, Darin Fisher (:fishd, Google)
mjs: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Fisher (:fishd, Google) 2007-03-19 21:19:31 PDT
pass Frame context to ChromeClient::createWindow and friends

currently, it is not possible to know what Frame is trying to open a window.  it would be nice if there were a Frame pointer passed to createWindow and createModalDialog.  runJavaScriptAlert and friends already have such a Frame pointer, so this change would just make the other methods on ChromeClient consistent.
Comment 1 Darin Fisher (:fishd, Google) 2007-03-19 21:24:33 PDT
<ggaren> morganL: what would you use the context for?
<morganL> ggaren: i would like to know which frame wants to open a window
<morganL> ggaren: similar to how runJavaScriptAlert is given a Frame pointer
<ggaren> morganL: that seems reasonable
Comment 2 Darin Fisher (:fishd, Google) 2007-03-19 22:12:19 PDT
Created attachment 13715 [details]
patch

A straightforward little patch.
Comment 3 Maciej Stachowiak 2007-03-21 15:13:34 PDT
Comment on attachment 13715 [details]
patch

- This breaks the Qt build, would be better not to do that.

- Since the Frame argument is currently unused, it would be good to add a comment noting not to remove it, since people otherwise remove apparently dead code.

r- for these two issues, otherwise works fine.
Comment 4 Darin Fisher (:fishd, Google) 2007-03-21 15:30:39 PDT
Created attachment 13750 [details]
revised patch

Revised as requested.  Thanks!
Comment 5 Maciej Stachowiak 2007-03-21 19:41:12 PDT
Comment on attachment 13750 [details]
revised patch

r=me

Committers, please let someone from Apple land this patch.
Comment 6 Mark Rowe (bdash) 2007-04-11 21:42:12 PDT
Landed in r20856.