Closed Bug 1748981 Opened 2 years ago Closed 2 years ago

hal::LockScreenOrientation in content process never returns rejected promise even if platform's implementation returns rejected promise

Categories

(Core :: Hardware Abstraction Layer (HAL), defect)

Unspecified
All
defect

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Here. IPC's promise returns resolved promise when IPC connection is successful. So even if platform implementations such as android returns rejected promise, it is converted to resolved promise by SandboxHal.cpp.

IPC's promise returns resolved promise when IPC connection is successful. So
even if platform implementations such as android returns rejected promise, it
is converted to resolved promise by SandboxHal.cpp unfortunately.

So we should check return value when RecvLockScreenOrientation returns false.

Assignee: nobody → m_kato
Status: NEW → ASSIGNED
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/86c9c78b8664
hal::LockScreenOrientation in content process never returns rejected promise even if platform's implementation returns rejected promise. r=calu

Backed out changeset 86c9c78b8664 (Bug 1748981) for causing geckoview test failures.
Backout link
Push with failures
Failure Log

Flags: needinfo?(m_kato)

ah, GV-junit has a bug then we should use delegateDuringNextWait when returning value. I will fix it

When looking test failure, I found that onOrientationLock always returned
null in geckoview-junit since default method is called.

We should use use delegateDuringNextWait instead of waitUntilCalled.

Flags: needinfo?(m_kato)
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/4df658fcf42d
hal::LockScreenOrientation in content process never returns rejected promise even if platform's implementation returns rejected promise. r=calu
https://hg.mozilla.org/integration/autoland/rev/5e151bd74f2a
Use delegateDuringNextWait when returning GeckoResult. r=calu
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch

Backed out 2 changesets (Bug 1748981) for causing high freq geckoview test failures.
Backout link
Push with failures
Failure Log

Flags: needinfo?(m_kato)

(In reply to Marian-Vasile Laza from comment #8)

Backed out 2 changesets (Bug 1748981) for causing high freq geckoview test failures.
Backout link
Push with failures
Failure Log

This is another bug. After landing bug 1747039, I will land this.

Flags: needinfo?(m_kato)
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/autoland/rev/882e17b0cc21
hal::LockScreenOrientation in content process never returns rejected promise even if platform's implementation returns rejected promise. r=calu
https://hg.mozilla.org/integration/autoland/rev/6a2fd520e84f
Use delegateDuringNextWait when returning GeckoResult. r=calu
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: