WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 139400
[iOS] YouTube plug-in replacement should support partial urls
https://bugs.webkit.org/show_bug.cgi?id=139400
Summary
[iOS] YouTube plug-in replacement should support partial urls
Eric Carlson
Reported
2014-12-08 08:41:10 PST
Some sites use urls that begin with just "//" for YouTube iFrames, so the YouTube plug-in replacement should support them.
Attachments
Proposed patch.
(1.43 KB, patch)
2014-12-08 08:57 PST
,
Eric Carlson
ap
: review-
Details
Formatted Diff
Diff
Updated patch.
(1.50 KB, patch)
2014-12-08 13:45 PST
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2014-12-08 08:57:31 PST
Created
attachment 242816
[details]
Proposed patch.
Alexey Proskuryakov
Comment 2
2014-12-08 09:24:44 PST
Comment on
attachment 242816
[details]
Proposed patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=242816&action=review
> Source/WebCore/Modules/plugins/YouTubePluginReplacement.cpp:289 > + if (srcString.startsWith("//")) > + srcURL = URL(URL(), "http:" + srcString); > + else > + srcURL = URL(URL(), srcString);
This does not look right, because for https pages, it should almost certainly use https, too. I'm only guessing about what and Flash/YouTube do, my instinct is that we should use Document::completeURL to handle any relative URLs, not just those without a scheme.
Eric Carlson
Comment 3
2014-12-08 13:44:20 PST
(In reply to
comment #2
)
> Comment on
attachment 242816
[details]
> Proposed patch. > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=242816&action=review
> > > Source/WebCore/Modules/plugins/YouTubePluginReplacement.cpp:289 > > + if (srcString.startsWith("//")) > > + srcURL = URL(URL(), "http:" + srcString); > > + else > > + srcURL = URL(URL(), srcString); > > This does not look right, because for https pages, it should almost > certainly use https, too. > > I'm only guessing about what and Flash/YouTube do, my instinct is that we > should use Document::completeURL to handle any relative URLs, not just those > without a scheme.
This is an excellent suggestion, thanks!
Eric Carlson
Comment 4
2014-12-08 13:45:11 PST
Created
attachment 242845
[details]
Updated patch.
WebKit Commit Bot
Comment 5
2014-12-08 14:55:31 PST
Comment on
attachment 242845
[details]
Updated patch. Clearing flags on attachment: 242845 Committed
r176977
: <
http://trac.webkit.org/changeset/176977
>
WebKit Commit Bot
Comment 6
2014-12-08 14:55:34 PST
All reviewed patches have been landed. Closing bug.
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