uriloader/exthandler/tests/unit/test_filename_sanitize.js fails on android 14 emulator
Categories
(Firefox :: File Handling, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: jmaher, Assigned: Gijs)
References
Details
Attachments
(1 file)
on this try push, I see a perma fail for uriloader/exthandler/tests/unit/test_filename_sanitize.js on opt and debugbuilds.
you can see in the log file, an error like this:
[task 2025-08-12T14:29:43.281+00:00] 14:29:43 INFO - TEST-PASS | uriloader/exthandler/tests/unit/test_filename_sanitize.js | validate_filename_method - [validate_filename_method : 236] Should get video.ogv or video.ogm for video.ogt, got video.ogv - true == true
[task 2025-08-12T14:29:43.282+00:00] 14:29:43 INFO - TEST-PASS | uriloader/exthandler/tests/unit/test_filename_sanitize.js | validate_filename_method - [validate_filename_method : 241] audio.mp3 - "audio.mp3" == "audio.mp3"
[task 2025-08-12T14:29:43.282+00:00] 14:29:43 INFO - TEST-PASS | uriloader/exthandler/tests/unit/test_filename_sanitize.js | validate_filename_method - [validate_filename_method : 246] audio.mpega - "audio.mpega" == "audio.mpega"
[task 2025-08-12T14:29:43.282+00:00] 14:29:43 INFO - TEST-PASS | uriloader/exthandler/tests/unit/test_filename_sanitize.js | validate_filename_method - [validate_filename_method : 251] audio.mp2 - "audio.mp2" == "audio.mp2"
[task 2025-08-12T14:29:43.282+00:00] 14:29:43 INFO - TEST-PASS | uriloader/exthandler/tests/unit/test_filename_sanitize.js | validate_filename_method - [validate_filename_method : 257] audio.mp4 - "audio.mp4" == "audio.mp4"
[task 2025-08-12T14:29:43.282+00:00] 14:29:43 INFO - TEST-PASS | uriloader/exthandler/tests/unit/test_filename_sanitize.js | validate_filename_method - [validate_filename_method : 263] sound.m4a - "sound.m4a" == "sound.m4a"
[task 2025-08-12T14:29:43.282+00:00] 14:29:43 WARNING - TEST-UNEXPECTED-FAIL | uriloader/exthandler/tests/unit/test_filename_sanitize.js | validate_filename_method - [validate_filename_method : 268] sound.m4b - "sound.m4b" == "sound.m4a"
[task 2025-08-12T14:29:43.282+00:00] 14:29:43 INFO - test_filename_sanitize.js:validate_filename_method:268
[task 2025-08-12T14:29:43.283+00:00] 14:29:43 INFO - /data/local/tmp/test_root/xpc/head.js:_run_next_test/<:1847
I am planning to disable this test on android 14 in bug 1982952.
Comment 1•10 months ago
|
||
there is a platofm conditional there already https://searchfox.org/firefox-main/rev/60308bc3792ef201b82377682de068a5a1c72575/uriloader/exthandler/tests/unit/test_filename_sanitize.js#270
I think Android 14 added native support for .m4b and then the conditional should take that into account
Comment 2•10 months ago
|
||
Do you know how complicate would it be to pass down the android version info to xpcshell? I see it's in mozinfo and it's used for manifest parsing, but I don't think it's available from xpcshell code? (though maybe I missed it)
| Reporter | ||
Comment 3•10 months ago
|
||
the platform is in appconstants which comes from https://searchfox.org/firefox-main/source/testing/xpcshell/head.js#46
I think this simplest way is to pass mozinfo in as a pref and parse that (reftest example)
Are you thinking of adjusting a specific check based on os_version?
Comment 4•10 months ago
|
||
Yeah, since Android 14 has a different behavior, it may be worth also for the future to be able to adapt tests to different versions.
Comment 5•10 months ago
|
||
The severity field is not set for this bug.
:Gijs, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 6•10 months ago
|
||
I think we can use something like:
Services.vc.compare("14", Services.sysinfo.get("release_version"))
which will return 0 on 14, and -1 on newer versions.
Comment 7•10 months ago
|
||
Gijs also found isPlatformAndVersionAtLeast and isPlatformAndVersionAtMost, for Android it will use the api level, that is kind of mapped to android versions
| Assignee | ||
Comment 8•10 months ago
|
||
Updated•10 months ago
|
| Assignee | ||
Updated•10 months ago
|
Comment 10•10 months ago
|
||
| bugherder | ||
Updated•9 months ago
|
Description
•