Closed Bug 1018125 Opened 10 years ago Closed 10 years ago

test_closing_connections.html is broken after bug 868439

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35

People

(Reporter: jwwang, Assigned: jwwang)

Details

Attachments

(1 file)

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.
Is it necessary to change the pref value of "media.cache_size"?
Flags: needinfo?(martijn.martijn)
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#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)
(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)
(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)
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.
Assignee: nobody → jwwang
Status: NEW → ASSIGNED
Attachment #8495657 - Flags: review?(kinetik)
Attachment #8495657 - Flags: review?(kinetik) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/63cbbdbc8e76
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: