Changeset 66217 in webkit


Ignore:
Timestamp:
Aug 27, 2010 6:45:03 AM (14 years ago)
Author:
tonikitoo@webkit.org
Message:

2010-08-26 Antonio Gomes <tonikitoo@webkit.org>

Reviewed by Simon Hausmann.

[Qt] Add support for automatically creating new windows in QWebView
https://bugs.webkit.org/show_bug.cgi?id=29847

Improved the documentation of createWindow methods of both QWebView and
QWebPage by mentioning that for any of them be called, QWebSettings'
JavaScriptCanOpenWindows must be set to true.

  • Api/qwebpage.cpp:
  • Api/qwebview.cpp:
Location:
trunk/WebKit/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebpage.cpp

    r65771 r66217  
    21322132    If \a type is WebModalDialog, the application must call setWindowModality(Qt::ApplicationModal) on the new window.
    21332133
    2134     \sa acceptNavigationRequest()
     2134    \note In the cases when the window creation is being triggered by JavaScript, apart from
     2135    reimplementing this method application must also set the JavaScriptCanOpenWindows attribute
     2136    of QWebSettings to true in order to get it called.
     2137
     2138    \sa acceptNavigationRequest(), QWebView::createWindow()
    21352139*/
    21362140QWebPage *QWebPage::createWindow(WebWindowType type)
  • trunk/WebKit/qt/Api/qwebview.cpp

    r65789 r66217  
    954954    method is not called, unless explicitly done so in the reimplementation.
    955955
    956     \sa QWebPage::createWindow()
     956    \note In the cases when the window creation is being triggered by JavaScript, apart from
     957    reimplementing this method application must also set the JavaScriptCanOpenWindows attribute
     958    of QWebSettings to true in order to get it called..
     959
     960    \sa QWebPage::createWindow(), QWebPage::acceptNavigationRequest()
    957961*/
    958962QWebView *QWebView::createWindow(QWebPage::WebWindowType type)
  • trunk/WebKit/qt/ChangeLog

    r66198 r66217  
     12010-08-26  Antonio Gomes  <tonikitoo@webkit.org>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Add support for automatically creating new windows in QWebView
     6        https://bugs.webkit.org/show_bug.cgi?id=29847
     7
     8        Improved the documentation of createWindow methods of both QWebView and
     9        QWebPage by mentioning that for any of them be called, QWebSettings'
     10        JavaScriptCanOpenWindows attribute must be set to true.
     11
     12        * Api/qwebpage.cpp:
     13        * Api/qwebview.cpp:
     14
    1152010-08-27  Yury Semikhatsky  <yurys@chromium.org>
    216
Note: See TracChangeset for help on using the changeset viewer.