Changeset 150628 in webkit


Ignore:
Timestamp:
May 23, 2013 11:23:20 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Need to forward the opener frame url to client when creating a new window
https://bugs.webkit.org/show_bug.cgi?id=116566

Patch by Andy Chen <andchen@blackberry.com> on 2013-05-23
Reviewed by Rob Buis.

PR 337935
Internally reviewed by Arvid Nilsson.
When creating a new window, forward the opener frame url to client.

  • Api/WebPageClient.h:
  • WebCoreSupport/ChromeClientBlackBerry.cpp:

(WebCore::ChromeClientBlackBerry::createWindow):

  • WebCoreSupport/FrameLoaderClientBlackBerry.cpp:

(WebCore::FrameLoaderClientBlackBerry::dispatchCreatePage):

Location:
trunk/Source/WebKit/blackberry
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/WebPageClient.h

    r149820 r150628  
    172172    virtual bool chooseFilenames(bool allowMultiple, const SharedArray<BlackBerry::Platform::String>& acceptTypes, const SharedArray<BlackBerry::Platform::String>& initialFiles, const BlackBerry::Platform::String& capture, SharedArray<BlackBerry::Platform::String>& chosenFiles) = 0;
    173173
    174     virtual WebPage* createWindow(int x, int y, int width, int height, unsigned flags, const BlackBerry::Platform::String& url, const BlackBerry::Platform::String& windowName, bool userGesture) = 0;
     174    virtual WebPage* createWindow(int x, int y, int width, int height, unsigned flags, const BlackBerry::Platform::String& url, const BlackBerry::Platform::String& windowName, const BlackBerry::Platform::String& openerFrameUrl, bool userGesture) = 0;
    175175
    176176    virtual void scheduleCloseWindow() = 0;
  • trunk/Source/WebKit/blackberry/ChangeLog

    r150625 r150628  
     12013-05-23  Andy Chen  <andchen@blackberry.com>
     2
     3        [BlackBerry] Need to forward the opener frame url to client when creating a new window
     4        https://bugs.webkit.org/show_bug.cgi?id=116566
     5
     6        Reviewed by Rob Buis.
     7
     8        PR 337935
     9        Internally reviewed by Arvid Nilsson.
     10        When creating a new window, forward the opener frame url to client.
     11
     12        * Api/WebPageClient.h:
     13        * WebCoreSupport/ChromeClientBlackBerry.cpp:
     14        (WebCore::ChromeClientBlackBerry::createWindow):
     15        * WebCoreSupport/FrameLoaderClientBlackBerry.cpp:
     16        (WebCore::FrameLoaderClientBlackBerry::dispatchCreatePage):
     17
    1182013-05-23  Jakob Petsovits  <jpetsovits@blackberry.com>
    219
  • trunk/Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp

    r150434 r150628  
    257257        flags |= WebPageClient::FlagWindowIsDialog;
    258258
    259     WebPage* webPage = m_webPagePrivate->m_client->createWindow(x, y, width, height, flags, url.string(), request.frameName(), ScriptController::processingUserGesture());
     259    WebPage* webPage = m_webPagePrivate->m_client->createWindow(x, y, width, height, flags, url.string(), request.frameName(), frame->document()->url().string(), ScriptController::processingUserGesture());
    260260    if (!webPage)
    261261        return 0;
  • trunk/Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp

    r150585 r150628  
    943943Frame* FrameLoaderClientBlackBerry::dispatchCreatePage(const NavigationAction& navigation)
    944944{
    945     WebPage* webPage = m_webPagePrivate->m_client->createWindow(0, 0, -1, -1, WebPageClient::FlagWindowDefault, navigation.url().string(), BlackBerry::Platform::String::emptyString(), ScriptController::processingUserGesture());
     945    WebPage* webPage = m_webPagePrivate->m_client->createWindow(0, 0, -1, -1, WebPageClient::FlagWindowDefault, navigation.url().string(), BlackBerry::Platform::String::emptyString(), m_frame->document()->url().string(), ScriptController::processingUserGesture());
    946946    if (!webPage)
    947947        return 0;
Note: See TracChangeset for help on using the changeset viewer.