Closed
Bug 1446499
Opened 7 years ago
Closed 7 years ago
Interceptor in FunctionHook::HookProtectedMode should be persistent
Categories
(Core Graveyard :: Plug-ins, defect, P1)
Tracking
(firefox-esr52 unaffected, firefox59 unaffected, firefox60 fixed, firefox61 fixed)
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox59 | --- | unaffected |
firefox60 | --- | fixed |
firefox61 | --- | fixed |
People
(Reporter: bugzilla, Assigned: handyman)
Details
Attachments
(1 file)
2.07 KB,
patch
|
bugzilla
:
review+
jcristau
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
The interceptor in FunctionHook::HookProtectedMode is allocated on the stack. When destroyed, that interceptor will fix up its trampolines such that the hooks are effectively inert.
That interceptor needs to live beyond the lifetime of HookProtectedMode's scope.
Reporter | ||
Comment 1•7 years ago
|
||
David, could you take a look at this please?
Flags: needinfo?(davidp99)
Reporter | ||
Updated•7 years ago
|
status-firefox60:
--- → affected
Reporter | ||
Comment 3•7 years ago
|
||
This does break pref-based disabling of Protected Mode in 32-bit flash.
I don't know what the current state of Flash Sandboxing is on 32-bit Windows, but if we intend to override their sandbox by default, this should be high priority. Otherwise it's not too urgent.
Flags: needinfo?(aklotz)
Assignee | ||
Comment 4•7 years ago
|
||
I won't have time this week but should be able to take this later.
Assignee: nobody → davidp99
Flags: needinfo?(davidp99)
Priority: -- → P3
Assignee | ||
Updated•7 years ago
|
Priority: P3 → P1
Assignee | ||
Comment 5•7 years ago
|
||
There was already an nsWindowsDllInterceptor intended for this purpose -- this was essentially a cut-and-paste fail.
Attachment #8965044 -
Flags: review?(aklotz)
Reporter | ||
Updated•7 years ago
|
Attachment #8965044 -
Flags: review?(aklotz) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by btara@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6147dace3d0e
Use static nsWindowsDllInterceptor in plugin's HookProtectedMode r=aklotz
Keywords: checkin-needed
Comment 7•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Assignee | ||
Comment 8•7 years ago
|
||
Comment on attachment 8965044 [details] [diff] [review]
Use static nsWindowsDllInterceptor in plugin's HookProtectedMode
Approval Request Comment
[Feature/Bug causing the regression]:
bug 1382251 refactored the nsWindowsDllInterceptor usage and introduced this regression
[User impact if declined]:
The Adobe Protected Mode sandbox (the 32 bit sandbox for Flash) cannot be disabled in about:addons.
[Is this code covered by automated tests?]:
No
[Has the fix been verified in Nightly?]:
Yes
[Needs manual test from QE? If yes, steps to reproduce]:
No
[List of other uplifts needed for the feature/fix]:
None
[Is the change risky?]:
No
[Why is the change risky/not risky?]:
This small change restores long-standing behavior to the way it existed before the refactor.
[String changes made/needed]:
None
Attachment #8965044 -
Flags: approval-mozilla-beta?
Updated•7 years ago
|
status-firefox59:
--- → unaffected
status-firefox-esr52:
--- → unaffected
Comment 9•7 years ago
|
||
Comment on attachment 8965044 [details] [diff] [review]
Use static nsWindowsDllInterceptor in plugin's HookProtectedMode
flash sandboxing fix, approved for 60.0b12
Attachment #8965044 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 10•7 years ago
|
||
bugherder uplift |
Comment 11•7 years ago
|
||
Setting qe-verify- based on David's assessment on manual testing needs (Comment 8).
Flags: qe-verify-
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•