Haik Aftandilian
5b6a8c9117
Bug 1444291 - Part 3 - Add read access to the Mac Flash sandbox, support sandbox levels r=Alex_Gaynor
...
Replace the boolean pref "security.sandbox.mac.flash.enabled"
with "dom.ipc.plugins.sandbox-level.flash" to support sandbox
levels and be consistent with the Windows pref name.
Adds filesystem read access to the sandbox using sandbox extensions
granted by the file dialog machinery (level 1).
Add support for level 2 which blocks read access.
Allow the sandbox to be disabled with MOZ_DISABLE_NPAPI_SANDBOX.
MozReview-Commit-ID: 4rfobEoxQpF
2018-03-15 20:23:19 -07:00
Coroiu Cristina
f0e23f51b3
Backed out 3 changesets (bug 1444291) for bustage at build/src/dom/plugins/ipc/PluginProcessChild.cpp
...
Backed out changeset 48a9c2131347 (bug 1444291)
Backed out changeset dfc31b6c9f53 (bug 1444291)
Backed out changeset 8ee3e65465ed (bug 1444291)
2018-03-16 03:07:35 +02:00
Haik Aftandilian
5de9f2ac22
Bug 1444291 - Part 3 - Add read access to the Mac Flash sandbox, support sandbox levels r=Alex_Gaynor
...
Replace the boolean pref "security.sandbox.mac.flash.enabled"
with "dom.ipc.plugins.sandbox-level.flash" to support sandbox
levels and be consistent with the Windows pref name.
Adds filesystem read access to the sandbox using sandbox extensions
granted by the file dialog machinery (level 1).
Add support for level 2 which blocks read access.
Allow the sandbox to be disabled with MOZ_DISABLE_NPAPI_SANDBOX.
MozReview-Commit-ID: 4rfobEoxQpF
2018-03-13 15:38:11 -07:00
Haik Aftandilian
0fdcab2793
Bug 1436566 - [Mac] Land disabled-by-default sandboxing for the Flash NPAPI plugin process. r=Alex_Gaynor,jimm
...
MozReview-Commit-ID: Es0GbMLKvH5
2018-02-12 15:46:31 -08:00
David Parks
5bd2f5e3cf
Bug 1382251: Part 8 - Migrate some previously hooked functions to FunctionHook/Broker; r=jimm,froydnj
...
Moves GetWindowInfo, GetKeyState, SetCursorPos, GetSaveFileNameW and GetOpenFileNameW to the new FunctionHook and FunctionBroker systems.
2017-11-06 11:07:16 -08:00
David Parks
5de1dbff8b
Bug 1382251: Part 6 - Start/stop new top-level brokering actors on their own threads; r=jld
...
The FunctionBroker actors allow the NPAPI process (child) to run methods on the main process (parent). Both the parent and the child run dedicated threads for this task -- this is a top-level protocol.
2017-11-06 10:29:15 -08:00
David Parks
d934bd37cc
Bug 1430586 - Make sure the NPObjectData map still exists before use. r=jimm
...
The shutdown path has a way to free the sObjectMap before all plugin references to it have been executed. It does this by scheduling a DeferNPObjectReleaseRunnable, then shutting down the plugin with PluginInstanceChild::Destroy. This patch keeps the runnable from failing in that case.
2018-01-23 12:56:06 -08:00
Gabriele Svelto
de4cc6a7cf
Bug 1402519 - Remove MOZ_CRASHREPORTER directives from dom; r=peterv
...
MozReview-Commit-ID: 4G2C9y6csvc
2017-10-10 12:43:09 +02:00
shindli
f90a73f3c0
Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
...
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Gabriele Svelto
44aa02b094
Bug 1402519 - Remove MOZ_CRASHREPORTER directives from dom; r=peterv
...
MozReview-Commit-ID: 4G2C9y6csvc
2017-10-10 12:43:09 +02:00
Marco Castelluccio
c66949f9b1
Bug 1413845 - Remove PluginPRLibrary as it is unused. r=jimm
2017-11-02 11:03:24 +01:00
Chris Peterson
4434deda7a
Bug 1412048 - Replace NS_RUNTIMEABORT("...") with MOZ_CRASH("..."). r=froydnj
...
And remove unreachable code after MOZ_CRASH().
MozReview-Commit-ID: 6ShBtPRKYlF
2017-10-24 23:30:31 -07:00
Sylvestre Ledru
d4bc4b1554
Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj
...
MozReview-Commit-ID: DjDkL20wRg0
2017-10-23 20:59:55 +02:00
Tom Ritter
1db989860f
Bug 1406380 Fix -Wreorder warnings r=njn
...
MozReview-Commit-ID: 7Zh2pvAMpXR
2017-10-09 01:36:36 -05:00
Benjamin Smedberg
a65df5cd2e
Bug 1352567 - Remove plugin IPC code to support stream types other than NP_NORMAL (seekable and/or file streams), r=jimm
...
MozReview-Commit-ID: FWl2gcpKy6D
2017-10-02 14:54:22 -07:00
Nicholas Nethercote
0f7417bf0b
Bug 1352573 (part 2) - Remove NPN_PluginThreadAsyncCall() and related machinery. r=bsmedberg.
...
* * *
[mq]: rm-checkGCRace
2017-08-03 22:12:51 +10:00
David Parks
4cfd4d670e
Bug 1388903 - Part 2: Remove PrintDlg Window Parentage in NPAPI Process. r=jimm
...
By intercepting the call to PrintDlgW and zeroing out the parent window privided by the caller, we allow the call to run in the NPAPI sandbox.
2017-08-29 15:59:34 -07:00
Sylvestre Ledru
576cac5ec7
Bug 1381253 - Remove redundant control flow declarations rs=ehsan
...
MozReview-Commit-ID: FFxP4aMCbOL
2017-07-15 19:03:04 +02:00
dan1bh
8f39802a0d
Bug 1352559 - Remove support for plugin-provided streams; NPN_NewStream, PPluginStream and other supporting machinery, r=bsmedberg
...
Removed API List:
* NPN_NewStream
* NPN_Write
* NPN_DestroyStream
* nsNPAPIStreamWrapper
* nsPluginStreamToFile
* PPluginStream.ipdl
MozReview-Commit-ID: 61dKGct3qGW
2017-07-11 14:27:25 -04:00
Nicholas Nethercote
08599f9062
Backed out changeset cb1548354e0c (bug 1352559, part 3) for causing *many* crashes in Nightly. r=backout
2017-07-17 09:41:29 +10:00
dan1bh
1f3097b1cf
Bug 1352559 - Remove support for plugin-provided streams; NPN_NewStream, PPluginStream and other supporting machinery, r=bsmedberg
...
Removed API List:
* NPN_NewStream
* NPN_Write
* NPN_DestroyStream
* nsNPAPIStreamWrapper
* nsPluginStreamToFile
* PPluginStream.ipdl
MozReview-Commit-ID: 61dKGct3qGW
2017-07-11 14:27:25 -04:00
Sebastian Hengst
b087f8692e
Backed out changeset 999aa7b6683d (bug 1352559)
2017-07-12 19:10:50 +02:00
dan1bh
e9cff23d89
Bug 1352559 - Remove support for plugin-provided streams; NPN_NewStream, PPluginStream and other supporting machinery, r=bsmedberg
...
Removed API List:
* NPN_NewStream
* NPN_Write
* NPN_DestroyStream
* nsNPAPIStreamWrapper
* nsPluginStreamToFile
* PPluginStream.ipdl
MozReview-Commit-ID: 61dKGct3qGW
2017-07-11 14:27:25 -04:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Nicholas Nethercote
75c011059c
Bug 1352575 (part 9) - Remove AsyncNP_Initialize. r=jimm.
2017-04-18 16:56:44 +10:00
Nicholas Nethercote
374aa86835
Bug 1352575 (part 6) - Remove AsyncNPP_New. r=jimm.
...
And related code.
2017-04-18 16:56:43 +10:00
Markus Stange
9b5004bdc9
Bug 1330185 - Use a top-level PProfiler protocol to control the profiler in other processes. r=billm,njn
...
MozReview-Commit-ID: EROfGuYQ6a0
2017-05-30 15:06:14 -04:00
David Parks
d257569669
Bug 1367806 - Fix ref counting of tasks for remoted Win32 methods in plugin processes. r=jimm
...
We were using the task after we .forget() it.
2017-05-26 13:19:54 -07:00
David Parks
0114908c11
Bug 1363290 - Part 3: Proxy win32's SetCursorPos for plugins in chrome process. r=jimm, r=jed
...
SetCursorPos is used by Flash's relative cursor motion behavior. It is blocked by the plugin sandbox. This patch allows it to run by proxying it on the main process.
2017-05-16 14:47:09 -07:00
David Parks
4cbe084f55
Bug 1363290 - Part 1: Refactor PluginModuleChild's GetFileNameTask to extract PluginThreadTask. r=jimm
...
The extracted PluginThreadTask will also be used to hook the Win32 SetCursorPos method.
2017-05-16 14:39:59 -07:00
Phil Ringnalda
f13976f44f
Backed out 5 changesets (bug 1330185, bug 1330184) for leaking an nsTArray_base from the plugin process on Win8
...
Backed out changeset e6f368f2d874 (bug 1330185)
Backed out changeset 2b8d50fcb20f (bug 1330184)
Backed out changeset dbe452a9eebb (bug 1330184)
Backed out changeset e13b9e798e16 (bug 1330184)
Backed out changeset 52489c7eadaf (bug 1330184)
MozReview-Commit-ID: 8L20BZ5E3t2
2017-05-22 19:45:35 -07:00
Markus Stange
5775b5cb1b
Bug 1330185 - Use a top-level PProfiler protocol to control the profiler in other processes. r=njn, r=billm
...
MozReview-Commit-ID: EROfGuYQ6a0
2017-05-22 13:47:02 -04:00
Markus Stange
fb5c50b4d5
Back out bug 1330184 and bug 1330185 because of test failures.
...
MozReview-Commit-ID: ILD4mevlSU6
2017-05-21 15:11:15 -04:00
Markus Stange
8baa6164cb
Bug 1330185 - Use a top-level PProfiler protocol to control the profiler in other processes. r=njn, r=billm
...
MozReview-Commit-ID: EROfGuYQ6a0
2017-05-21 14:06:50 -04:00
Lie Ryan
bc851393a1
Bug 1352572 - Return NPERR_GENERIC_ERROR if plugin calls NPN_PostURLNotify(file=true); r=bsmedberg
...
NPN_PostURLNotify(file=true) is no longer supported in NPAPI.
MozReview-Commit-ID: 12JlYduC7R8
2017-05-06 07:27:08 +00:00
Lie Ryan
0356c22731
Bug 1352572 - Return an NPERR_GENERIC_ERROR if plugin tries to call NPN_PostURL(file=true); r=bsmedberg
...
NPN_PostURL(file=true) is no longer supported in NPAPI.
MozReview-Commit-ID: IyLJSj4bKRR
2017-04-08 16:48:47 +00:00
Nicholas Nethercote
a7e5660c91
Bug 1360471 (part 4) - Use a bitfield to represent profiler features. r=mstange.
...
Currently the profiler mostly uses an array of strings to represent which
features are available and in use. This patch changes the profiler core to use
a uint32_t bitfield, which is a much simpler and faster representation.
(nsProfiler and the profiler add-on still use the array of strings, alas.) The
new ProfilerFeature type defines the values in the bitfield.
One side-effect of this change is that profiler_feature_active() now can be
used to query all features. Previously it was just a subset.
Another side-effect is that profiler_get_available_features() no longer incorrectly
indicates support for Java and stack-walking when they aren't supported. (The
handling of task tracer support is unchanged, because the old code handled it
correctly.)
2017-05-01 14:23:34 +10:00
Nicholas Nethercote
da42e4205e
Bug 1360471 (part 3) - Rename various "thread name filters" identifiers as "filters". r=mstange.
...
The new names are more concise and matches common usage elsewhere (e.g.
profiler_start() arguments).
This patch is similar to bug 1358074 part 5.
2017-05-01 13:42:53 +10:00
Petr Sumbera
332c822925
Bug 1357451 - Add OS_SOLARIS ifdefs to various IPC code. r=kchen
2017-04-18 08:53:59 -07:00
Markus Stange
85eb6f4cac
Bug 1321617 - Tell the CrossProcessProfilerController whether a profile is a response to a GatherProfile request or whether it was sent because the process was exiting. r=mconley
...
MozReview-Commit-ID: BLkaeZqtRhv
2017-04-12 16:44:31 -04:00
raouldc
cde2c26b53
Bug 1352576 - Removed all instances of NPN_GetAuthenticationInfo from the codebase r=bsmedberg
...
NPN_GetAuthenticationInfo is an NPAPI API we implemented for Java and since we only support Flash we no longer need it.
MozReview-Commit-ID: HxNn91QeaMB
2017-04-13 23:57:08 +12:00
Kyle Machulis
ceb4bf3e68
Bug 1350940 - Label Runnables in dom/plugins; r=bsmedberg
...
MozReview-Commit-ID: DCxeZUj6CEd
2017-03-27 13:35:25 -07:00
Markus Stange
ba275e84c4
Bug 1321907 - Move cross process profiler controlling code from ContentParent and PluginModuleParent into a new class called CrossProcessProfilerController. r=mconley,njn
...
MozReview-Commit-ID: HY2iWHlDaEy
2017-03-22 21:44:59 -04:00
Benjamin Smedberg
ce54258106
Bug 1338172 part C - Remove support for windowed mode plugins on Linux (GTK). r=jimm
...
MozReview-Commit-ID: 5rnxozEKCwn
2017-02-09 10:05:00 -05:00
Benjamin Smedberg
89b6f2227c
Bug 1342141 part B - Use NP_EMBED as the mode for all plugins, whether they are full-page or not, r=jimm
...
MozReview-Commit-ID: BeB24ux8TEp
2017-02-23 12:37:42 -05:00
David Parks
4784604438
Bug 1284897 - Hook GetSaveFileNameW/GetOpenFileNameW to record and grant a sandboxed process permission to access user-chosen files. r=jimm
2017-02-08 11:38:40 -08:00
Sebastian Hengst
25e6d08981
Backed out changeset c35afe490583 (bug 1284897)
2017-02-21 23:13:20 +01:00
David Parks
f7818b4465
Bug 1284897 - Hook GetSaveFileNameW/GetOpenFileNameW to record and grant a sandboxed process permission to access user-chosen files. r=jimm
2017-02-08 11:38:40 -08:00
David Anderson
fd68763f13
Remove PCrashReporter. (bug 1338310, r=billm)
2017-02-21 11:24:26 -08:00
Phil Ringnalda
f72d4e4b61
Backed out 5 changesets (bug 1284897) for mozilla::SandboxPermissions::RemovePermissionsForProcess crashes
...
Backed out changeset 19b2fcee13a9 (bug 1284897)
Backed out changeset a5171791437f (bug 1284897)
Backed out changeset 3ea8b8a18515 (bug 1284897)
Backed out changeset 21497a4e3bde (bug 1284897)
Backed out changeset 12e17d5f0fa9 (bug 1284897)
2017-02-16 22:14:15 -08:00