Closed Bug 1855518 Opened 1 year ago Closed 1 year ago

Failures in dom/tests/mochitest/geolocation/test_native_provider.html in M-xorig

Categories

(GeckoView Graveyard :: Sandboxing, defect, P2)

All
Android

Tracking

(firefox121 wontfix, firefox122 fixed)

RESOLVED FIXED
122 Branch
Tracking Status
firefox121 --- wontfix
firefox122 --- fixed

People

(Reporter: owlish, Assigned: m_kato)

References

Details

(Whiteboard: [fission:android][fxdroid])

Attachments

(2 files)

This test fails on all Android builds with both isolateEverything and isolateHighValue isolation strategies (fission.webContentIsolationStrategy set to 1 or 2 respectively).

Failures:

[task 2023-09-26T00:09:44.481Z] 00:09:44  WARNING -  TEST-UNEXPECTED-FAIL | dom/tests/mochitest/geolocation/test_native_provider.html | error callback should not have been called
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  SimpleTest.ok@https://example.org/tests/SimpleTest/SimpleTest.js:426:16
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  test_maximumAge/</<@https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:28:9
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  PositionErrorCallback*test_maximumAge/<@https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:24:27
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  test_maximumAge@https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:23:9
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  async*nextTick/<@https://example.org/tests/SimpleTest/SimpleTest.js:2189:34
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  nextTick@https://example.org/tests/SimpleTest/SimpleTest.js:2233:11
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  setTimeout handler*SimpleTest_setTimeoutShim@https://example.org/tests/SimpleTest/SimpleTest.js:922:41
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  add_task@https://example.org/tests/SimpleTest/SimpleTest.js:2137:17
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  @https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:18:9
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  add_task | Leaving test_maximumAge
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  add_task | Entering test_highAccuracy
[task 2023-09-26T00:09:44.481Z] 00:09:44  WARNING -  TEST-UNEXPECTED-FAIL | dom/tests/mochitest/geolocation/test_native_provider.html | error callback should not have been called on low accuracy call
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  SimpleTest.ok@https://example.org/tests/SimpleTest/SimpleTest.js:426:16
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  test_highAccuracy/lowAccuracy</<@https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:44:9
[task 2023-09-26T00:09:44.481Z] 00:09:44     INFO -  PositionErrorCallback*test_highAccuracy/lowAccuracy<@https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:41:27
[task 2023-09-26T00:09:44.482Z] 00:09:44     INFO -  test_highAccuracy@https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:40:29
[task 2023-09-26T00:09:44.482Z] 00:09:44     INFO -  async*nextTick/<@https://example.org/tests/SimpleTest/SimpleTest.js:2189:34
[task 2023-09-26T00:09:44.482Z] 00:09:44     INFO -  async*nextTick@https://example.org/tests/SimpleTest/SimpleTest.js:2233:11
[task 2023-09-26T00:09:44.482Z] 00:09:44     INFO -  setTimeout handler*SimpleTest_setTimeoutShim@https://example.org/tests/SimpleTest/SimpleTest.js:922:41
[task 2023-09-26T00:09:44.482Z] 00:09:44     INFO -  add_task@https://example.org/tests/SimpleTest/SimpleTest.js:2137:17
[task 2023-09-26T00:09:44.483Z] 00:09:44     INFO -  @https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:18:9
[task 2023-09-26T00:09:44.483Z] 00:09:44  WARNING -  TEST-UNEXPECTED-FAIL | dom/tests/mochitest/geolocation/test_native_provider.html | error callback should not have been called on high accuracy call
[task 2023-09-26T00:09:44.483Z] 00:09:44     INFO -  SimpleTest.ok@https://example.org/tests/SimpleTest/SimpleTest.js:426:16
[task 2023-09-26T00:09:44.483Z] 00:09:44     INFO -  test_highAccuracy/highAccuracy</<@https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:54:9
[task 2023-09-26T00:09:44.484Z] 00:09:44     INFO -  PositionErrorCallback*test_highAccuracy/highAccuracy<@https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:51:27
[task 2023-09-26T00:09:44.484Z] 00:09:44     INFO -  test_highAccuracy@https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:50:30
[task 2023-09-26T00:09:44.484Z] 00:09:44     INFO -  async*nextTick/<@https://example.org/tests/SimpleTest/SimpleTest.js:2189:34
[task 2023-09-26T00:09:44.484Z] 00:09:44     INFO -  async*nextTick@https://example.org/tests/SimpleTest/SimpleTest.js:2233:11
[task 2023-09-26T00:09:44.484Z] 00:09:44     INFO -  setTimeout handler*SimpleTest_setTimeoutShim@https://example.org/tests/SimpleTest/SimpleTest.js:922:41
[task 2023-09-26T00:09:44.484Z] 00:09:44     INFO -  add_task@https://example.org/tests/SimpleTest/SimpleTest.js:2137:17
[task 2023-09-26T00:09:44.485Z] 00:09:44     INFO -  @https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:18:9
[task 2023-09-26T00:09:44.485Z] 00:09:44  WARNING -  TEST-UNEXPECTED-FAIL | dom/tests/mochitest/geolocation/test_native_provider.html | lower accuracy calls should not out perform high accuracy calls
[task 2023-09-26T00:09:44.485Z] 00:09:44     INFO -  SimpleTest.ok@https://example.org/tests/SimpleTest/SimpleTest.js:426:16
[task 2023-09-26T00:09:44.485Z] 00:09:44     INFO -  test_highAccuracy@https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:65:7
[task 2023-09-26T00:09:44.485Z] 00:09:44     INFO -  async*nextTick/<@https://example.org/tests/SimpleTest/SimpleTest.js:2189:34
[task 2023-09-26T00:09:44.485Z] 00:09:44     INFO -  async*nextTick@https://example.org/tests/SimpleTest/SimpleTest.js:2233:11
[task 2023-09-26T00:09:44.485Z] 00:09:44     INFO -  setTimeout handler*SimpleTest_setTimeoutShim@https://example.org/tests/SimpleTest/SimpleTest.js:922:41
[task 2023-09-26T00:09:44.485Z] 00:09:44     INFO -  add_task@https://example.org/tests/SimpleTest/SimpleTest.js:2137:17
[task 2023-09-26T00:09:44.486Z] 00:09:44     INFO -  @https://example.org/tests/dom/tests/mochitest/geolocation/test_native_provider.html?currentTestURL=dom%2Ftests%2Fmochitest%2Fgeolocation%2Ftest_native_provider.html&closeWhenDone=1&showTestReport=false&expected=pass:18:9

example try push
logcat from that try push

Severity: -- → S3
Priority: -- → P2
Whiteboard: [fission:android][fxdroid]
Blocks: 1855525
No longer blocks: 1855525

Hey Olivia, I think you are familiar with this area - is this something for our team to fix?

Flags: needinfo?(ohall)

I think we probably will need to do the initial investigation to see if it is in DOM or in Android.

It could also be something going on with the test mock location provided by geo.provider.testing in Fission too.

In junit tests, we mock the location provider, while in mochitest we use this one: geo.provider.testing.

I slightly think the issue might be in the geo.provider.testing testing harness or mochitest setup because I'd also expect the junit geolocation tests to have issues too in Fission if it was a deeper issue.

Flags: needinfo?(ohall)

I guess that this issue is mochitest framework.

Most mochitests for geo location API are failure with fission+xorigin since iframe doesn't have allow attribute.

Assignee: nobody → m_kato

When running fission+xorigin mochitests, all mochitests for GeoLocation
API are failed. We should allow this API in mochitest's iframe like
fullscreen API.

When running fission+xorigin mochitest, URL will be example.org.
Since this is cross origin test, we should use another URL.

Depends on D193752

Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/ccebd8424590 Add allow attribute to allow geolocation API with xorigin tests. r=ahal https://hg.mozilla.org/integration/autoland/rev/40164cef1755 Use different URL for GeoLocation xorigin test. r=dom-core,mccr8
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Product: GeckoView → GeckoView Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: