Bug 81197 - [BlackBerry] Can not open certain links from bridge applications
Summary: [BlackBerry] Can not open certain links from bridge applications
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: 2012-03-15 00:47 PDT by Robin Cao
Modified: 2012-03-16 06:36 PDT (History)
5 users (show)

See Also:


Attachments
patch (5.12 KB, patch)
2012-03-15 03:34 PDT, Robin Cao
no flags Details | Formatted Diff | Diff
updated patch (4.96 KB, patch)
2012-03-16 00:19 PDT, Robin Cao
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Cao 2012-03-15 00:47:25 PDT
Can not open certain links (e.g., target="_blank") from bridge applications. Patch coming up to fix this problem.
Comment 1 Robin Cao 2012-03-15 03:34:33 PDT
Created attachment 132009 [details]
patch
Comment 2 Rob Buis 2012-03-15 04:38:11 PDT
Comment on attachment 132009 [details]
patch

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

> Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp:1068
> +    // how to handle patterns such as 'mailto:'.

Where are we giving that chance iafter this patch? I thought the disabled block did that.

> Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp:1075
> +    // }

I think putting this in a #if 0 block would make this look less messy.
Comment 3 Robin Cao 2012-03-16 00:11:02 PDT
(In reply to comment #2)
> (From update of attachment 132009 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=132009&action=review
> 
> > Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp:1068
> > +    // how to handle patterns such as 'mailto:'.
> 
> Where are we giving that chance iafter this patch? I thought the disabled block did that.
> 

The following is the updated comments, hope this explains things better.

    // FIXME: Enable these commented out when WebPageClient::handleStringPattern is implemented
    // and exposed to client. Before that, don't return PolicyIgnore so we can continue to
    // create new window and get to dispatchDecidePolicyForNavigationAction() where the client
    // is given a chance to decide how to handle patterns such as 'mailto:'.

> > Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp:1075
> > +    // }
> 
> I think putting this in a #if 0 block would make this look less messy.
Will use "#if 0" in the updated patch.
Comment 4 Robin Cao 2012-03-16 00:19:35 PDT
Created attachment 132216 [details]
updated patch
Comment 5 Build Bot 2012-03-16 00:44:11 PDT
Comment on attachment 132216 [details]
updated patch

Attachment 132216 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/11966017
Comment 6 Charles Wei 2012-03-16 01:07:55 PDT
Comment on attachment 132216 [details]
updated patch

LGTM.

We need to implement "handleExternalLoad" and "handleStringPattern" sometime.
Comment 7 WebKit Review Bot 2012-03-16 01:08:59 PDT
Comment on attachment 132216 [details]
updated patch

Rejecting attachment 132216 [details] from review queue.

charles.wei@torchmobile.com.cn does not have reviewer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have reviewer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your reviewer rights.
Comment 8 Charles Wei 2012-03-16 01:13:14 PDT
Comment on attachment 132216 [details]
updated patch

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

> Source/WebKit/blackberry/WebCoreSupport/FrameLoaderClientBlackBerry.cpp:1077
> +#endif

Yes,  we didn't implement handleStringPattern yet, so we should never reach here until that's been implemented.
Comment 9 Rob Buis 2012-03-16 04:16:28 PDT
Comment on attachment 132216 [details]
updated patch

LGTM.
Comment 10 WebKit Review Bot 2012-03-16 06:35:56 PDT
Comment on attachment 132216 [details]
updated patch

Clearing flags on attachment: 132216

Committed r111000: <http://trac.webkit.org/changeset/111000>
Comment 11 WebKit Review Bot 2012-03-16 06:36:01 PDT
All reviewed patches have been landed.  Closing bug.