Closed Bug 1335825 Opened 7 years ago Closed 7 years ago

[e10s] provide full accessible state via xpc in windows

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: eeejay, Assigned: eeejay)

References

Details

Attachments

(1 file)

      No description provided.
Comment on attachment 8832535 [details] [diff] [review]
Provide full state bitfield to xpcom accessibles in Windows r?yzen

Review of attachment 8832535 [details] [diff] [review]:
-----------------------------------------------------------------

looks good, was there a reason to not use the same style as in the original method - setting state variable to 0 in the beginning and returning state (not 0) in 2 places.
Attachment #8832535 - Flags: review?(yzenevich) → review+
I just copied that pattern from another method. No good reason. (but in hindsight, its probably better not to return 'state' after passing it's address to a failing function. No promise that it didn't assign it.
Pushed by eisaacson@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f106e5720eb2
Provide full state bitfield to xpcom accessibles in Windows. r=yzen
(In reply to Eitan Isaacson [:eeejay] from comment #3)
> I just copied that pattern from another method. No good reason. (but in
> hindsight, its probably better not to return 'state' after passing it's
> address to a failing function. No promise that it didn't assign it.

technically I believe COM rules say you should only modify it if you return success.  That said personally I think its clearer to explicitly return 0 where you can so I'd do that anyway.
https://hg.mozilla.org/mozilla-central/rev/f106e5720eb2
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: