WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
174082
Pasting single words copied to UIPasteboard inserts URLs in editable areas
https://bugs.webkit.org/show_bug.cgi?id=174082
Summary
Pasting single words copied to UIPasteboard inserts URLs in editable areas
Wenson Hsieh
Reported
2017-07-02 19:20:56 PDT
<
rdar://problem/33046992
>
Attachments
Patch
(15.98 KB, patch)
2017-07-02 20:17 PDT
,
Wenson Hsieh
thorton
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
(1.15 MB, application/zip)
2017-07-02 21:23 PDT
,
Build Bot
no flags
Details
Patch for landing
(15.91 KB, patch)
2017-07-02 23:25 PDT
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2017-07-02 20:17:47 PDT
Created
attachment 314437
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2017-07-02 20:18:39 PDT
<
rdar://problem/33101038
>
Tim Horton
Comment 3
2017-07-02 20:28:34 PDT
Comment on
attachment 314437
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=314437&action=review
> Source/WebCore/ChangeLog:13 > + be read back as NSURLs for "public.url". This currently causes bugs shipping software: e.g. copying and pasting
Bugs shipping software
Wenson Hsieh
Comment 4
2017-07-02 21:00:26 PDT
Comment on
attachment 314437
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=314437&action=review
Thanks Tim!
>> Source/WebCore/ChangeLog:13 >> + be read back as NSURLs for "public.url". This currently causes bugs shipping software: e.g. copying and pasting > > Bugs shipping software
Good catch -- fixed.
Build Bot
Comment 5
2017-07-02 21:23:49 PDT
Comment on
attachment 314437
[details]
Patch
Attachment 314437
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/4040879
New failing tests: workers/bomb.html
Build Bot
Comment 6
2017-07-02 21:23:50 PDT
Created
attachment 314441
[details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Wenson Hsieh
Comment 7
2017-07-02 23:20:51 PDT
(In reply to Build Bot from
comment #6
)
> Created
attachment 314441
[details]
> Archive of layout-test-results from ews106 for mac-elcapitan-wk2 > > The attached test failures were seen while running run-webkit-tests on the > mac-wk2-ews. > Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Test failure looks unrelated -- this patch only affects iOS-specific code, and this is the Mac bot; also, the failing test doesn't appear to exercise pasting codepaths.
Tim Horton
Comment 8
2017-07-02 23:24:26 PDT
Also, I’ve seen that test failing on other EWS runs.
Wenson Hsieh
Comment 9
2017-07-02 23:25:51 PDT
Created
attachment 314453
[details]
Patch for landing
WebKit Commit Bot
Comment 10
2017-07-03 00:14:08 PDT
The commit-queue encountered the following flaky tests while processing
attachment 314453
[details]
: imported/w3c/web-platform-tests/IndexedDB/idbindex-multientry-big.htm
bug 174090
(author:
youennf@gmail.com
) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 11
2017-07-03 04:26:39 PDT
Comment on
attachment 314453
[details]
Patch for landing Clearing flags on attachment: 314453 Committed
r219070
: <
http://trac.webkit.org/changeset/219070
>
mitz
Comment 12
2017-07-03 06:44:18 PDT
Comment on
attachment 314437
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=314437&action=review
> Tools/TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:38 > +SOFT_LINK_FRAMEWORK(UIKit)
Why is this needed here and not everywhere else TestWebKitAPI uses UIKit?
Wenson Hsieh
Comment 13
2017-07-03 09:50:52 PDT
(In reply to mitz from
comment #12
)
> Comment on
attachment 314437
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=314437&action=review
> > > Tools/TestWebKitAPI/Tests/ios/UIPasteboardTests.mm:38 > > +SOFT_LINK_FRAMEWORK(UIKit) > > Why is this needed here and not everywhere else TestWebKitAPI uses UIKit?
This is here because we want to build for OpenSource and UIApplicationInitialize is SPI, but as you mentioned on IRC, there's a better (more canonical) way to accomplish this by introducing UIKitSPI.h.
Matt Lewis
Comment 14
2017-07-05 08:56:48 PDT
This patch caused an API test failure on iOS consistently with the test: UIPasteboardTests.DoNotPastePlainTextAsURL
https://build.webkit.org/builders/Apple%20iOS%2010%20Simulator%20Release%20WK2%20(Tests)/builds/2741
https://build.webkit.org/builders/Apple%20iOS%2010%20Simulator%20Release%20WK2%20(Tests)/builds/2741/steps/run-api-tests/logs/stdio
Matt Lewis
Comment 15
2017-07-05 08:59:50 PDT
Reverted
r219070
for reason: This revision caused consistent failures of the API test UIPasteboardTests.DoNotPastePlainTextAsURL on iOS. Committed
r219128
: <
http://trac.webkit.org/changeset/219128
>
Wenson Hsieh
Comment 16
2017-07-05 09:07:10 PDT
The new unit test uses a codepath that depends on -[UIPasteboard itemProviders] which is available on iOS 11+, so this isn't going to pass on the OpenSource bots, which are still on iOS 10. Furthermore, this is passing consistently on the internal bots on build-safari. These tests just need to be guarded by iOS 11+.
Matt Lewis
Comment 17
2017-07-05 09:07:31 PDT
Reverted
r219128
for reason: Spoke with engineer who originally submitted, Patch for APi test to follow. Committed
r219129
: <
http://trac.webkit.org/changeset/219129
>
Wenson Hsieh
Comment 18
2017-07-05 09:23:33 PDT
Guarded the failing test in
https://trac.webkit.org/r219131
.
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