Closed
Bug 1460003
Opened 6 years ago
Closed 6 years ago
nsWindow::UpdateGetWindowInfoCaptionStatus: AddHook on GetWindowInfo should only be invoked once
Categories
(Core :: Widget: Win32, enhancement, P1)
Tracking
()
RESOLVED
FIXED
mozilla62
Tracking | Status | |
---|---|---|
firefox62 | --- | fixed |
People
(Reporter: bugzilla, Assigned: jimm)
References
Details
(Whiteboard: inj+)
Attachments
(1 file, 2 obsolete files)
2.31 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
Otherwise we repeatedly try the hook over and over.
Assignee | ||
Comment 1•6 years ago
|
||
https://searchfox.org/mozilla-central/rev/f30847c12e5fb13791401ed4330ced3e1b9c8d81/widget/windows/nsWindow.cpp#2494
Reporter | ||
Updated•6 years ago
|
Priority: -- → P3
Whiteboard: inj+
Assignee | ||
Updated•6 years ago
|
status-firefox62:
affected → ---
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → jmathies
Priority: P3 → P1
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Attachment #8976211 -
Flags: review?(aklotz)
Assignee | ||
Comment 3•6 years ago
|
||
Since mHookedGetWindowInfo is a member of nsWindow the code will retry AddHook for each window object. Not sure if that's desired behavior.. do we anticipate that one AddHook failure implies all other attempts will also fail?
Reporter | ||
Comment 4•6 years ago
|
||
(In reply to Jim Mathies [:jimm] from comment #3) > Since mHookedGetWindowInfo is a member of nsWindow the code will retry > AddHook for each window object. Not sure if that's desired behavior.. do we > anticipate that one AddHook failure implies all other attempts will also > fail? Typically, yes. If AddHook fails, it is usually because some instructions in the binary are encountered that the interceptor does not understand. That situation is unlikely to improve with subsequent invocations.
Reporter | ||
Comment 5•6 years ago
|
||
Comment on attachment 8976211 [details] [diff] [review] patch LGTM
Attachment #8976211 -
Flags: review?(aklotz) → review+
Reporter | ||
Comment 6•6 years ago
|
||
But yeah, I guess it makes less sense for mHookedGetWindowInfo to be per-nsWindow. There really should only ever be one.
Reporter | ||
Comment 7•6 years ago
|
||
Comment on attachment 8976211 [details] [diff] [review] patch Review of attachment 8976211 [details] [diff] [review]: ----------------------------------------------------------------- Changing my review here to reflect my earlier comments. ::: widget/windows/nsWindow.h @@ +679,5 @@ > // Pointer events processing and management > WinPointerEvents mPointerEvents; > + > + // AddHook success checks > + mozilla::Maybe<bool> mHookedGetWindowInfo; Yeah I think this should be static (or equivalent)
Attachment #8976211 -
Flags: review+
Assignee | ||
Comment 8•6 years ago
|
||
Attachment #8976211 -
Attachment is obsolete: true
Assignee | ||
Comment 9•6 years ago
|
||
Comment on attachment 8976233 [details] [diff] [review] patch v.2 updated
Attachment #8976233 -
Flags: review?(aklotz)
Reporter | ||
Comment 10•6 years ago
|
||
Comment on attachment 8976233 [details] [diff] [review] patch v.2 Review of attachment 8976233 [details] [diff] [review]: ----------------------------------------------------------------- ::: widget/windows/nsWindow.cpp @@ +351,5 @@ > // General purpose user32.dll hook object > static WindowsDllInterceptor sUser32Intercept; > > +// AddHook success checks > +mozilla::Maybe<bool> sHookedGetWindowInfo; Missing static
Attachment #8976233 -
Flags: review?(aklotz) → review+
Assignee | ||
Comment 11•6 years ago
|
||
Attachment #8976233 -
Attachment is obsolete: true
Attachment #8976247 -
Flags: review+
Assignee | ||
Updated•6 years ago
|
Keywords: checkin-needed
Comment 12•6 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/8d8c17bc3145 Only call nsWindow's AddHook for GetWindowInfo once. r=aklotz
Keywords: checkin-needed
Comment 13•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8d8c17bc3145
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in
before you can comment on or make changes to this bug.
Description
•