Bug 116448 - [BlackBerry] Make PagePopup implementation independent from WebCore
Summary: [BlackBerry] Make PagePopup implementation independent from WebCore
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit BlackBerry (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-20 11:02 PDT by Carlos Garcia Campos
Modified: 2013-05-21 03:55 PDT (History)
4 users (show)

See Also:


Attachments
Patch (42.56 KB, patch)
2013-05-20 11:14 PDT, Carlos Garcia Campos
andersca: review+
Details | Formatted Diff | Diff
Patch for landing (42.54 KB, patch)
2013-05-21 03:09 PDT, Carlos Garcia Campos
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2013-05-20 11:02:26 PDT
PAGE_POPUP feature will be removed and the whole implementation in BlackBerry can be made independent from WebCore.
Comment 1 Carlos Garcia Campos 2013-05-20 11:14:42 PDT
Created attachment 202295 [details]
Patch

The pickers are now in the  BB::WebKit namespace instead of WebCore, maybe we could move all those files (pickers, pagePopup and pagePopupClient) to WebKitSupport, but I've left them for now in WebCoreSupport to make it easier to review. If you think this should be in WebKitSupport I'll move them in a follow up patch.
Comment 2 Anders Carlsson 2013-05-20 11:18:26 PDT
Comment on attachment 202295 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=202295&action=review

> Source/WebKit/blackberry/ChangeLog:14
> +        (BlackBerry::WebKit::WebPagePrivate::~WebPagePrivate): Destriy the

Typo, “Destriy"

> Source/WebKit/blackberry/ChangeLog:22
> +        (BlackBerry::WebKit::WebPagePrivate::hasOpenedPopup): Whether

Return whether?
Comment 3 Arvid Nilsson 2013-05-21 02:40:22 PDT
Comment on attachment 202295 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=202295&action=review

> Source/WebKit/blackberry/Api/WebPage.cpp:468
> +    // Destroy popup if we have.

If we have one? I think this is self-explanatory, and doesn't need any comment.

> Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp:-153
> -    // Destroy popup if we have.

Now I see where you got that comment from =)

> Source/WebKit/blackberry/WebCoreSupport/PagePopupBlackBerryClient.h:36
> +class PagePopupBlackBerryClient {

The "BlackBerry" in the name seems redundant, since we're in the BlackBerry::WebKit namespace. However, perhaps you can rename the classes to just PagePopup/PagePopupClient once the cross platform ones have been removed.

> Source/WebKit/blackberry/WebCoreSupport/PagePopupBlackBerryClient.h:44
> +    //  - window.setValueAndClosePopup(number, string).

Does it really support this, if we dont define ENABLE(PAGE_POPUP)? Don't you need to inject some native function into JavaScript that does this?
Comment 4 Arvid Nilsson 2013-05-21 02:46:01 PDT
Comment on attachment 202295 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=202295&action=review

>> Source/WebKit/blackberry/WebCoreSupport/PagePopupBlackBerryClient.h:44
>> +    //  - window.setValueAndClosePopup(number, string).
> 
> Does it really support this, if we dont define ENABLE(PAGE_POPUP)? Don't you need to inject some native function into JavaScript that does this?

I found it, PagePopupBlackBerry::installDOMFunction(Frame* frame)
Comment 5 Carlos Garcia Campos 2013-05-21 03:02:29 PDT
(In reply to comment #3)
> (From update of attachment 202295 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=202295&action=review
> 
> > Source/WebKit/blackberry/Api/WebPage.cpp:468
> > +    // Destroy popup if we have.
> 
> If we have one? I think this is self-explanatory, and doesn't need any comment.
> 
> > Source/WebKit/blackberry/WebCoreSupport/ChromeClientBlackBerry.cpp:-153
> > -    // Destroy popup if we have.
> 
> Now I see where you got that comment from =)

:-) I'll remove it anyway.

> > Source/WebKit/blackberry/WebCoreSupport/PagePopupBlackBerryClient.h:36
> > +class PagePopupBlackBerryClient {
> 
> The "BlackBerry" in the name seems redundant, since we're in the BlackBerry::WebKit namespace. However, perhaps you can rename the classes to just PagePopup/PagePopupClient once the cross platform ones have been removed.

Exactly, that was my idea. At the moment we would need to use a different #ifndef #define block for the PagePopupClient header if we use the same name. I think it will be easier to rename it when we move the files to WebKitSupport, making this patch as simple as possible.
Comment 6 Carlos Garcia Campos 2013-05-21 03:09:32 PDT
Created attachment 202401 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2013-05-21 03:54:15 PDT
The commit-queue encountered the following flaky tests while processing attachment 202401 [details]:

svg/batik/text/smallFonts.svg bug 115040 (author: oliver@apple.com)
svg/batik/text/textEffect2.svg bug 116286 (authors: darin@apple.com and zimmermann@kde.org)
svg/batik/paints/patternRegions.svg bug 116380 (author: zimmermann@kde.org)
The commit-queue is continuing to process your patch.
Comment 8 WebKit Commit Bot 2013-05-21 03:55:34 PDT
Comment on attachment 202401 [details]
Patch for landing

Clearing flags on attachment: 202401

Committed r150434: <http://trac.webkit.org/changeset/150434>
Comment 9 WebKit Commit Bot 2013-05-21 03:55:36 PDT
All reviewed patches have been landed.  Closing bug.