WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
153600
Should avoid navigation for some data detector urls
https://bugs.webkit.org/show_bug.cgi?id=153600
Summary
Should avoid navigation for some data detector urls
Enrica Casucci
Reported
2016-01-28 10:50:17 PST
Click on some type of data detector links should not trigger a navigation request.
Attachments
Patch
(9.74 KB, patch)
2016-01-28 10:58 PST
,
Enrica Casucci
thorton
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Enrica Casucci
Comment 1
2016-01-28 10:58:20 PST
Created
attachment 270129
[details]
Patch
Tim Horton
Comment 2
2016-01-28 11:03:46 PST
Comment on
attachment 270129
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=270129&action=review
> Source/WebCore/editing/cocoa/DataDetection.mm:66 > +#if PLATFORM(MAC)
None of this code seems iOS specific?
> Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm:682 > + requestPositionInformation(IntPoint((CGPoint)m_potentialTapLocation));
Why are you going FloatPoint->CGPoint->IntPoint? You should probably use one of the FloatPoint->IntPoint conversion functions (roundedIntPoint?)
Enrica Casucci
Comment 3
2016-01-28 11:35:48 PST
(In reply to
comment #2
)
> Comment on
attachment 270129
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=270129&action=review
> > > Source/WebCore/editing/cocoa/DataDetection.mm:66 > > +#if PLATFORM(MAC) > > None of this code seems iOS specific?
It is not, but this behavior is iOS specific. Al least for now.
> > > Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm:682 > > + requestPositionInformation(IntPoint((CGPoint)m_potentialTapLocation)); > > Why are you going FloatPoint->CGPoint->IntPoint? You should probably use one > of the FloatPoint->IntPoint conversion functions (roundedIntPoint?)
Right! I forgot about that. Will fix it.
Enrica Casucci
Comment 4
2016-01-28 11:40:55 PST
Committed revision 195769.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug