Closed
Bug 1018125
Opened 11 years ago
Closed 11 years ago
test_closing_connections.html is broken after bug 868439
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: jwwang, Assigned: jwwang)
Details
Attachments
(1 file)
|
1.25 KB,
patch
|
kinetik
:
review+
|
Details | Diff | Splinter Review |
http://hg.mozilla.org/mozilla-central/file/38c5e21a80fa/content/media/test/test_closing_connections.html#l38
beginTest could be called after window.onload which will break the purpose of this test case.
| Assignee | ||
Comment 1•11 years ago
|
||
Is it necessary to change the pref value of "media.cache_size"?
Flags: needinfo?(martijn.martijn)
Comment 2•11 years ago
|
||
Yes, it must be small enough to force the cache to close connections for the test to be valid.
| Assignee | ||
Comment 3•11 years ago
|
||
http://hg.mozilla.org/mozilla-central/file/38c5e21a80fa/content/media/test/test_closing_connections.html#l27
Is the "per-domain HTTP connection limit" imposed by the media cache? It appears to me that we should pass the test no matter what the media cache size is.
Flags: needinfo?(martijn.martijn)
| Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Matthew Gregan [:kinetik] from comment #2)
> Yes, it must be small enough to force the cache to close connections for the
> test to be valid.
http://hg.mozilla.org/mozilla-central/file/38c5e21a80fa/content/media/test/test_closing_connections.html#l38
IIRC, 40000 means 40MB which is a big size. I think we can remove the pref change and set 'preload' to 'metadata' (which means downloading enough data for decoding metadata, but no more) to test if we can close connections after downloading just enough data.
Flags: needinfo?(kinetik)
Comment 5•11 years ago
|
||
(In reply to JW Wang [:jwwang] from comment #4)
> IIRC, 40000 means 40MB which is a big size.
Sorry, you're right. The default media cache sizes for tests was small, this test was explicitly making it large.
> I think we can remove the pref change and set 'preload' to 'metadata' (which means downloading
> enough data for decoding metadata, but no more) to test if we can close connections
> after downloading just enough data.
That seems reasonable. I think that's effectively what the test did originally, when it was added with the autobuffer functionality in bug 479863. The element's default, then, was the equivalent of preload=metadata now, if I understand correctly.
Flags: needinfo?(kinetik)
| Assignee | ||
Comment 6•11 years ago
|
||
Remove SpecialPowers.pushPrefEnv() which delays loading media resources and breaks the purpose of this test.
Try: https://tbpl.mozilla.org/?tree=Try&rev=dd78cbabb01f
https://tbpl.mozilla.org/?tree=Try&rev=1d9a9d1b8a00
All pass on test_closing_connections.html.
Updated•11 years ago
|
Attachment #8495657 -
Flags: review?(kinetik) → review+
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 7•11 years ago
|
||
Keywords: checkin-needed
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Updated•11 years ago
|
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•