CoAllowSetForegroundWindow returns E_ACCESSDENIED when the caller is not in foreground
Categories
(Core :: Widget: Win32, defect, P3)
Tracking
()
People
(Reporter: toshi, Assigned: toshi)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr68-
|
Details |
Bug 1570845 added MOZ_ASSERT
for the return value from CoAllowSetForegroundWindow
. We noticed this API fails with E_ACCESSDENIED
when the caller process is not in foreground. This case should be valid and we should not trigger an assert.
Comment 1•5 years ago
|
||
Is this another "user is running without UAC" issue?
Assignee | ||
Comment 2•5 years ago
|
||
(In reply to Aaron Klotz [:aklotz] from comment #1)
Is this another "user is running without UAC" issue?
No, this is the soft assert issue in Thunderbird's test (Bug 1588500) we discussed yesterday. There is no user impact.
Comment 3•5 years ago
|
||
Oh, I see, we're not in the foreground. Is there anything we can do about that? I mean, the function is working as intended; we can't pass foreground that we don't have...
Assignee | ||
Comment 4•5 years ago
|
||
I'm thinking simply to exclude E_ACCESSDENIED
from MOZ_ASSERT
because it's likely that automated tests hit this issue.
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Bug 1588500 reported some of Thunderbird's tests failed because
CoAllowSetForegroundWindow
failed. In that case, those tests should not launch
a default browser of the system, but we should allow E_ACCESSDENIED
because
it legitimately happens if the window is not in the foreground.
Comment 7•5 years ago
|
||
bugherder |
Comment 8•5 years ago
|
||
Is there a real-world user impact for this bug which would justify uplift consideration or can this fix ride Fx72 to release?
Comment 10•5 years ago
|
||
Comment on attachment 9108012 [details]
Bug 1592444 - Allow E_ACCESSDENIED from CoAllowSetForegroundWindow in debug build. r=aklotz
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Crashes TB debug tests on ESR 68. We could uplift to our branch.
- User impact if declined: None.
- Fix Landed on Version: 72
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Zero risk, just fixes an over-zealous assert.
- String or UUID changes made by this patch: None.
Comment 11•5 years ago
|
||
Comment on attachment 9108012 [details]
Bug 1592444 - Allow E_ACCESSDENIED from CoAllowSetForegroundWindow in debug build. r=aklotz
Go ahead and land it on your branch, Jorg.
Updated•3 years ago
|
Description
•