Commit Graph

576363 Commits

Author SHA1 Message Date
Andrew Sutherland
6684613c61 Bug 1416879 - Part 2: Allow for diversion cancellation and trigger for intercepted channels. r=bkelly, r=mayhemer
The diversion mechanism never expected to be dealing with data sourced
from the content process, but that's exactly what happens with
ServiceWorker-intercepted channels with the current child-intercept
situation (which is being fixed).

In order to allow timely cancellation of diverted intercepted
channels, there needs to be a way to relay to the HttpChannelChild
that it needs to be canceled so that the synthesized pump can be
canceled and diversion can be marked as complete.  This patch adds
such a mechanism to ADivertableParentChannel and PHttpChannel for the
exclusive use of InterceptedHttpChannel and then uses it.

--HG--
extra : rebase_source : db71e927bd1837c6a67f6d56df52cfbb7294df73
extra : source : d156f6b687e1cd8717bf813ab1b944e87b67ed5d
2018-01-04 18:38:07 -05:00
Andrew Sutherland
1b42d677f3 Bug 1416879 - Part 1: DivertComplete should only be sent at OnStopRequest for synthesized responses. r=bkelly
Diversion for intercepted channels with a synthesized response is a
special case.  It is not appropriate to send DivertComplete when
mEventQ has been drained, because we are not dealing with the usual
mEventQ-enqueued OnDataAvailable payloads that had been received over
the network and sent down to the child.  In this case, all the data
originates in the child and does not go through mEventQ.  As such,
the correct place to send DivertComplete is at OnStopComplete for the
synthesized response.

--HG--
extra : rebase_source : a4e1593d38629173b829014a3c316ad156094580
extra : source : 714d3942fb10a96e60e14c475e24e640b9ddd8cc
2018-01-04 18:56:46 -05:00
Myk Melez
c38886f551 Bug 1428093 - remove unnecessary dialog-button-box padding; r=dao
MozReview-Commit-ID: JncFbnSIpIy
2018-01-11 10:43:54 -08:00
Myk Melez
ef991271e1 Bug 1429544 - remove obsolete rule that disables scrolling in pref subdialogs; r=dao
MozReview-Commit-ID: 8i4yID6YdLZ
2018-01-11 10:43:53 -08:00
Jon Coppeard
20b2d0162c Bug 1429535 - Split up ScriptLoader::ProcessScriptElement method r=baku 2018-01-11 12:05:26 +00:00
Steve Fink
682636463a Bug 903519 - Allocate strings in the nursery, r=flagflip
--HG--
extra : rebase_source : b56175eae41f4027a6128dc87927c40a063f0cf6
extra : amend_source : 991ffa0af2bec35ad66442135984ac44a9b00cde
2017-07-28 16:46:43 -07:00
Jan de Mooij
8ad784a629 Bug 903519 - Disable nursery strings in a Zone if too many get tenured, r=sfink
--HG--
extra : rebase_source : 5f8a19cf5ea3b893be0306c188e957460db69117
2017-10-02 16:42:38 -07:00
Steve Fink
f2388d0c73 Bug 903519 - Split out string nursery pointers from object nursery, r=jonco
--HG--
extra : rebase_source : 6556829e86494d715eed8da1faabd06f48d5e49b
2017-08-14 22:08:49 -07:00
Steve Fink
cf8e0f399f Bug 903519 - Strings in the nursery: JIT, r=jandem
--HG--
extra : rebase_source : 5a63d6424a2d4a593e2d45beb8dd287278d3a6b0
2018-01-04 15:49:14 -08:00
Steve Fink
ec8ccba7e9 Bug 903519 - Tenure strings that are checked for in about:memory test, r=njn
--HG--
extra : rebase_source : c1864a51269818de7b70c276b53464e6daa48f2a
2017-12-22 14:27:26 -08:00
Steve Fink
294ff2a8f0 Bug 903519 - Default nursery strings to off, add ability to enable, r=jonco
--HG--
extra : rebase_source : 17eb8dcee3ec3b1245e88fb672c8d9ef0180205c
2017-11-03 14:00:14 -07:00
Steve Fink
1510c0fff7 Bug 903519 - Change Relocated marker to not confuse string vs object bit, r=jonco
--HG--
extra : rebase_source : 20e3e3d984b4a523abb6f3e2e0383a110d50ab53
2017-11-03 12:27:52 -07:00
Steve Fink
5ba91d3650 Bug 903519 - Strings in the nursery: MIR node, r=jandem
--HG--
extra : rebase_source : 7b8fe45352cb2f3d85fe849a2f1087f3f1fcd09c
2017-10-02 16:35:46 -07:00
Steve Fink
ada1935fff Bug 903519 - Strings in the nursery: allow any thread to access zone of permanent atoms, r=jonco
--HG--
extra : rebase_source : b2ad4f1518f4dfb56dca2efbf22aaf173f09a2a3
2017-07-30 13:21:53 -07:00
Steve Fink
184038bf04 Bug 903519 - Discard nursery keys from EvalCache, r=jonco
--HG--
extra : rebase_source : 6a7439d25669331d665b70b10b48cd296dc447e6
2017-08-03 16:18:47 -07:00
Steve Fink
0c8e914a3b Bug 903519 - Strings in the nursery: barriers, r=jonco
--HG--
extra : rebase_source : e28ddcc4b57d7498f27f4d6c3cfa5fdacf3c56f4
2017-07-28 16:46:38 -07:00
Steve Fink
673f0156f8 Bug 903519 - Strings in the nursery: tracing and tenuring, r=jonco
--HG--
extra : rebase_source : 72f87a1a3457d3cae8e71378ae4463e79c81590d
2017-10-17 12:35:06 -07:00
Steve Fink
5803364e20 Bug 903519 - Remove verifier assumption that only objects are in the nursery, r=jonco
--HG--
extra : rebase_source : 297efd5cf44c9703e7266d1cac59a417bd9aebd8
2017-07-27 17:31:21 -07:00
Steve Fink
a64d5e92da Bug 903519 - External strings can morph into plain ones while still in EXTERNAL_STRING arena, r=jonco
--HG--
extra : rebase_source : 61755a019b2cdcece1b617fa11ab160f968a16aa
2017-07-28 09:54:25 -07:00
Steve Fink
75666146ac Bug 903519 - Strings in the nursery: allocation, r=jonco
--HG--
extra : rebase_source : 7d0a46a7ed0bcf2c818ea25f1f1da2a996312288
2017-11-13 16:57:27 -08:00
Steve Fink
9095d027ba Bug 903519 - Avoid atomization for string size tests, r=jimb
Strings appearing as literals in the source text are atomized, so this test wasn't testing what it was supposed to be testing.

--HG--
extra : rebase_source : b52c41f50571074821de5657915b59c1a83423c7
2017-06-21 10:07:32 -07:00
Steve Fink
e1137bf1c6 Bug 903519 - Force non-atom strings to have their low flag bit set in order to distinguish them from JSObjects in the nursery, r=jandem
Atoms will not be nursery-allocated, so if a cell is in the nursery and its low bit is set, we can be sure it's a string.

--HG--
extra : rebase_source : c54ca139594fe3babb41f23cb29190c65969c419
2017-07-11 18:20:03 -07:00
Steve Fink
049e6c3f1c Bug 903519 - Make js::Allocate cast strings to requested type, r=jonco
Note that this patch passes in a dummy gc::InitialHeap parameter that is required to be TenuredHeap, since strings cannot yet be nursery-allocated. This restriction will be lifted in a later patch.

--HG--
extra : rebase_source : bab68e1e875163e388824151c3037c35931b606f
2017-06-13 15:15:48 -07:00
Steve Fink
3d817d4c2b Bug 903519 - Reparent JSString from TenuredCell to Cell, r=jonco
--HG--
extra : rebase_source : da89cf0791fa67991efc6798dc3ae2afbc720c1a
2017-06-12 15:38:51 -07:00
Steve Fink
27763b8753 Bug 903519 - Separate out AllocKinds for nursery-allocatable strings, r=jonco
--HG--
extra : rebase_source : d8b8d481be945ec506941e1887795f0e48c32946
2017-11-13 16:57:17 -08:00
Andreea Pavel
5967533f02 Backed out 4 changesets (bug 1428538, bug 1420060) for mochitest mass failures UPGRADE_NSS_RELEASE on a CLOSED TREE
Backed out changeset 7604bcd50b63 (bug 1420060)
Backed out changeset 7ce1e0ca10e1 (bug 1420060)
Backed out changeset 617446a093ba (bug 1428538)
Backed out changeset fb3c27bdee46 (bug 1420060)
2018-01-11 17:35:54 +02:00
Andreea Pavel
800e10df0b Backed out 11 changesets (bug 1382251) for failing mochitest at /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/RefPtr.h:318 r=backout a=backout on a CLOSED TREE
Backed out changeset cc3ec37e0dbe (bug 1382251)
Backed out changeset e9cce5779674 (bug 1382251)
Backed out changeset 5bf011fc507d (bug 1382251)
Backed out changeset 77ccb100a258 (bug 1382251)
Backed out changeset e63fa691fa34 (bug 1382251)
Backed out changeset 7936c75851a2 (bug 1382251)
Backed out changeset e6056433a119 (bug 1382251)
Backed out changeset e8262c37dfac (bug 1382251)
Backed out changeset 5dc95b140fd7 (bug 1382251)
Backed out changeset a1ca7804d848 (bug 1382251)
Backed out changeset 56a6f6bcc5c5 (bug 1382251)
2018-01-11 17:20:36 +02:00
Dragana Damjanovic dd.mozilla@gmail.com
88d0518368 Bug 1429426 - Disable TFO if pmls64.dll and rlls64.dll are detected. r=valentin 2018-01-11 15:10:12 +01:00
Dylan Roeh
eeb2405042 Bug 1429188 - Change close icon in custom tabs to remove mediarouter dependency. r=walkingice 2018-01-09 13:36:26 -06:00
Kai Engert
ec3151d097 Bug 1420060, additional bustage fix as suggested by Masatoshi Kimura, r=kaie, CLOSED TREE 2018-01-11 15:04:17 +01:00
Andrew Osmond
a0be88332d Bug 1428946 - Part 2. Make ApplyBlending_SIMD and ApplyArithmeticCombine_SIMD support the same surface for both inputs. r=bas 2018-01-11 08:48:46 -05:00
Andrew Osmond
7cc5611e47 Bug 1428946 - Part 1. Make comparing and mapping DataSourceSurfaceWrapper objects work consistently. r=bas 2018-01-11 08:48:46 -05:00
Kai Engert
69aae135c3 Bug 1420060, trivial bustage fix, export new NSS APIs in Firefox' specific API export list 2018-01-11 14:42:09 +01:00
David Parks
f933a65f8d Bug 1382251: Part 11 - Update moz.build with new files r=jimm
Includes the build changes made by the earlier patches in this series.  Also adds some #includes required by other files when these are added to the unified build.

--HG--
extra : rebase_source : 0a7ea51fe46c2c0c919a03b7dd7cccc637e7b515
extra : histedit_source : a70277a4d8d0b37f983e6d97b8b54d54fba01ba6
2017-11-06 10:47:01 -08:00
David Parks
ac10cd5d45 Bug 1382251: Part 10 - Add nsWindowsDllInterceptor tests for the new functions r=aklotz
Adds tests for the DLL interception of the SSL APIs included in the previous patch.

--HG--
extra : rebase_source : 6bcf68b8a688d06c0851132cb791312856eef4ac
extra : histedit_source : b3fe197acb2a2b20b2bf70eff12d754d4f1bb67a
2017-11-06 10:45:13 -08:00
David Parks
532ec8cea3 Bug 1382251: Part 9 - Hook functions needed for SSL communication in NPAPI process r=jimm
Adds Win32 networking APIs to the function broker so that we can run SSL communications outside of the sandbox.

--HG--
extra : rebase_source : 9a5ec38dd9f8a4f1f7bbada461e97513c7db0ab7
extra : histedit_source : f9460155a84f734fa0663bca9f4d18963c07cef5
2017-11-06 10:41:21 -08:00
David Parks
3faeb8e38f Bug 1382251: Part 8 - Migrate some previously hooked functions to FunctionHook/Broker r=froydnj
Moves GetWindowInfo, GetKeyState, SetCursorPos, GetSaveFileNameW and GetOpenFileNameW to the new FunctionHook and FunctionBroker systems.

--HG--
extra : rebase_source : faa4a5a343d3c7c9310241ad361e563a0221d2d7
extra : histedit_source : 1d06fc0480f03506e188efc834e35561bb6b07d1
2017-11-06 11:07:16 -08:00
David Parks
8828da3873 Bug 1382251: Part 7 - Add mechanism for automatically brokering DLL functions r=jimm
The FunctionBroker is a special kind of FunctionHook that brokers the hooked function on another process.  In the child process, it uses the FunctionBrokerChild to request that the FunctionBrokerParent run a function and return the response.  It handles most cases of parameter, return value and error marshaling on its own.  It also guarantees that requests are issued from the proper thread.

--HG--
extra : rebase_source : 99e4864f3e6396695eae0ff9aec75aa3c69f082f
2017-11-06 10:34:47 -08:00
David Parks
e58ba522f2 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.

--HG--
extra : rebase_source : 38c02140f364f32c4ea16cac79d80facf168c2f9
2017-11-06 10:29:15 -08:00
David Parks
d0d0e5ba2f Bug 1382251: Part 5 - Add IpdlTuple for type-safely marshaling tuples r=jld
IpdlTuple is an array of Variants that is accessed by type and that reports an error if there is a type error.  This is used for safe and easy communication of IPDL objects, validated at run time since IPC data is untrusted.

--HG--
extra : rebase_source : ee113d501d5372cfd01f0be9a58e2db50ab539b3
2017-11-06 10:17:15 -08:00
David Parks
c6a908099a Bug 1382251: Part 4 - Init/Shutdown parts of XPCOM needed in plugin process r=erahm
We have not been initializing or shutting down XPCOM in the plugin process.  We need the nsThreadManager for this bug but, more importantly, we need to properly shut down XPCOM in order to get things like handlers connected to the ShutdownPhases (e.g. ClearOnShutdown, used to free resources at process end).

This patch includes some work to make services that are uninitialized in the plugin process to handle Shutdown calls without failing.

--HG--
extra : rebase_source : 837eddd8f8cf956b248c81cb26ca183bf13d1b46
2017-11-06 10:10:43 -08:00
David Parks
12b3918c16 Bug 1382251: Part 3 - Add mechanism for automatically hooking DLL functions r=jimm
FunctionHook uses the DLL interceptor to redirect Win32 calls to a user-supplied function.

--HG--
extra : rebase_source : 27c2ee94e1f2993bfd871a559b7d45c5bd45e510
2017-11-06 10:04:19 -08:00
David Parks
1f1b0a3880 Bug 1382251: Part 2 - Allow constructing nsWindowsDllInterceptor from module name r=aklotz
Allow constructor to behave like Init().

--HG--
extra : rebase_source : 405badf3e629b087e9acd666ae151511300905c3
2017-11-06 09:51:06 -08:00
David Parks
01fcfb948e Bug 1382251: Part 1 - Add x64 opcodes to nsWindowsDllInterceptor needed for plugin process SSL brokering r=aklotz
Adds "LEA reg, opcode", "mov word ptr [reg+disp8], reg", "and [reg+disp8], imm8" and "MOV r/m8, imm8" to DLLInterceptor.

--HG--
extra : rebase_source : e5fd9d01c71398b0a349a53058f70817709025a4
2017-07-19 09:12:12 -07:00
Andrew Osmond
89c5ff6db9 Bug 1429413 - Ensure Factory::CreateDataSourceSurface allocation failures are gracefully handled. r=bas 2018-01-11 08:26:42 -05:00
Jon Coppeard
2219c13082 Backed out changeset ef258af45592 (bug 1429535) for test_bug704320_preload.html timeouts 2018-01-11 13:14:23 +00:00
Masatoshi Kimura
3f30371b5a Bug 1428538 - Use UTF-8 file paths for NSS database. r=keeler 2017-12-28 20:56:33 +09:00
Kai Engert
d0abca54ea Bug 1420060, NSS_3_35_BETA1, r=franziskus
UPGRADE_NSS_RELEASE
2018-01-11 14:09:34 +01:00
Andreea Pavel
d37fa86e02 Merge mozilla-central to mozilla-inbound. r=merge a=merge 2018-01-11 14:58:50 +02:00
sotaro
dc5b2742bf Bug 1429291 - Add gfxCriticalNote to WebRenderBridgeParent::AddExternalImage() r=nical 2018-01-11 21:44:00 +09:00