WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
REOPENED
88423
REGRESSION: Setting invalid media "src" does not cause "error" event
https://bugs.webkit.org/show_bug.cgi?id=88423
Summary
REGRESSION: Setting invalid media "src" does not cause "error" event
Jer Noble
Reported
2012-06-06 09:37:51 PDT
REGRESSION: Setting invalid media "src" does not cause "error" event
Attachments
Patch
(8.45 KB, patch)
2012-06-06 09:47 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(8.35 KB, patch)
2012-06-06 11:01 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ec2-cr-linux-01
(492.66 KB, application/zip)
2012-06-07 08:37 PDT
,
WebKit Review Bot
no flags
Details
Patch
(8.64 KB, patch)
2012-06-07 13:01 PDT
,
Jer Noble
eric.carlson
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Jer Noble
Comment 1
2012-06-06 09:47:53 PDT
Created
attachment 146048
[details]
Patch
Eric Carlson
Comment 2
2012-06-06 10:09:24 PDT
Comment on
attachment 146048
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=146048&action=review
> Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm:85 > +SOFT_LINK_POINTER(QTKit, QTMovieOpenAsyncRequiredAttribute, NSString *)
This is will ASSERT if run on Leopard or older. Do we care?
> LayoutTests/http/tests/media/video-src-invalid-error.html:5 > + > +
Nit: you have an extra blank line here.
> LayoutTests/http/tests/media/video-src-invalid-error.html:9 > + failTest("stalled but should not" );
Nit: you have an extra space before the closing brace.
> LayoutTests/http/tests/media/video-src-invalid-error.html:24 > + run("video.setAttribute('src', 'bogus.mp4')");
This will only work on ports that support MPEG-4. You should use findMediaFile() and not log the file name.
Jer Noble
Comment 3
2012-06-06 10:33:44 PDT
(In reply to
comment #2
)
> (From update of
attachment 146048
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=146048&action=review
> > > Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm:85 > > +SOFT_LINK_POINTER(QTKit, QTMovieOpenAsyncRequiredAttribute, NSString *) > > This is will ASSERT if run on Leopard or older. Do we care?
Gah, that's annoying. SOFT_LINK_POINTER_OPTIONAL then?
> > LayoutTests/http/tests/media/video-src-invalid-error.html:5 > > + > > + > > Nit: you have an extra blank line here.
Removed.
> > LayoutTests/http/tests/media/video-src-invalid-error.html:9 > > + failTest("stalled but should not" ); > > Nit: you have an extra space before the closing brace.
Removed.
> > LayoutTests/http/tests/media/video-src-invalid-error.html:24 > > + run("video.setAttribute('src', 'bogus.mp4')"); > > This will only work on ports that support MPEG-4. You should use findMediaFile() and not log the file name.
The whole point is to find an invalid URL. So I could just leave off the .mp4 part entirely. ;)
Eric Carlson
Comment 4
2012-06-06 10:39:34 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 146048
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=146048&action=review
> > > > > Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm:85 > > > +SOFT_LINK_POINTER(QTKit, QTMovieOpenAsyncRequiredAttribute, NSString *) > > > > This is will ASSERT if run on Leopard or older. Do we care? > > Gah, that's annoying. SOFT_LINK_POINTER_OPTIONAL then? >
Or just use the name like we do for QTMovieAllowPersistentCacheAttribute.
> > > > LayoutTests/http/tests/media/video-src-invalid-error.html:24 > > > + run("video.setAttribute('src', 'bogus.mp4')"); > > > > This will only work on ports that support MPEG-4. You should use findMediaFile() and not log the file name. > > The whole point is to find an invalid URL. So I could just leave off the .mp4 part entirely. ;)
> That won't work if a platform checks the type internally (though I don't know if any do or not).
Jer Noble
Comment 5
2012-06-06 10:48:06 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > (In reply to
comment #2
) > > > (From update of
attachment 146048
[details]
[details] [details]) > > > View in context:
https://bugs.webkit.org/attachment.cgi?id=146048&action=review
> > > > > > > Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm:85 > > > > +SOFT_LINK_POINTER(QTKit, QTMovieOpenAsyncRequiredAttribute, NSString *) > > > > > > This is will ASSERT if run on Leopard or older. Do we care? > > > > Gah, that's annoying. SOFT_LINK_POINTER_OPTIONAL then? > > > Or just use the name like we do for QTMovieAllowPersistentCacheAttribute.
Eh. That seems to be what SOFT_LINK_POINTER_OPTIONAL is for.
> > > > LayoutTests/http/tests/media/video-src-invalid-error.html:24 > > > > + run("video.setAttribute('src', 'bogus.mp4')"); > > > > > > This will only work on ports that support MPEG-4. You should use findMediaFile() and not log the file name. > > > > The whole point is to find an invalid URL. So I could just leave off the .mp4 part entirely. ;) > > > That won't work if a platform checks the type internally (though I don't know if any do or not).
Because ports have to be able to load ".php" or ".aspx" URLs, I doubt any reject URLs with strange extensions without fetching them first.
Jer Noble
Comment 6
2012-06-06 11:01:39 PDT
Created
attachment 146062
[details]
Patch
WebKit Review Bot
Comment 7
2012-06-07 08:37:37 PDT
Comment on
attachment 146062
[details]
Patch
Attachment 146062
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/12908366
New failing tests: media/track/track-cue-nothing-to-render.html media/track/track-cue-mutable-text.html media/track/track-cue-mutable-fragment.html
WebKit Review Bot
Comment 8
2012-06-07 08:37:40 PDT
Created
attachment 146293
[details]
Archive of layout-test-results from ec2-cr-linux-01 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: ec2-cr-linux-01 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Jer Noble
Comment 9
2012-06-07 13:01:12 PDT
Created
attachment 146364
[details]
Patch Fixes the failing text track tests.
Jer Noble
Comment 10
2012-06-10 12:42:20 PDT
Committed
r119940
: <
http://trac.webkit.org/changeset/119940
>
mitz
Comment 11
2012-06-11 07:02:50 PDT
(In reply to
comment #10
)
> Committed
r119940
: <
http://trac.webkit.org/changeset/119940
>
This caused ~10 media tests to start failing. See for example <
http://build.webkit.org/results/Lion%20Release%20(Tests)/r119940%20(9220)/results.html
>.
mitz
Comment 12
2012-06-11 07:33:23 PDT
(In reply to
comment #11
)
> (In reply to
comment #10
) > > Committed
r119940
: <
http://trac.webkit.org/changeset/119940
> > > This caused ~10 media tests to start failing. See for example <
http://build.webkit.org/results/Lion%20Release%20(Tests)/r119940%20(9220)/results.html
>.
I reverted the change in <
http://trac.webkit.org/r119978
>.
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