Граф коммитов

681350 Коммитов

Автор SHA1 Сообщение Дата
Jan de Mooij d17c300a9d Bug 1567327 - Fix some OOM issues when generating BaselineInterpreter code. r=iain
* Use NonAssertingLabel in BaselineInterpreterHandler, similar to BaselineCodeGen fields.
* Make addDebugInstrumentationOffset report OOM.

No test case because the fuzz test is huge and this patch is based on the stack traces.

Differential Revision: https://phabricator.services.mozilla.com/D53630

--HG--
extra : moz-landing-system : lando
2019-11-18 14:34:59 +00:00
Michal Novotny f155107d8c Bug 1528850 - ws-over-h2 receive seems unreliable, r=dragana
The patch changes InputStreamShim::AsyncWait() so it checks the buffer state and if there is some data available the callback is immediately notified. Without this check the callback would be notified only when new data is delivered from the network.

Differential Revision: https://phabricator.services.mozilla.com/D53972

--HG--
extra : moz-landing-system : lando
2019-11-26 08:20:59 +00:00
Jan de Mooij ab7994b1db Bug 1598784 - Use Maybe<PendingEdgesMap> in IonBuilder instead of calling clearAndCompact(). r=tcampbell
This ensures we properly destruct inline elements too.

Differential Revision: https://phabricator.services.mozilla.com/D54453

--HG--
extra : moz-landing-system : lando
2019-11-25 14:53:46 +00:00
Mu Tao 82e6d98832 Bug 1598289 - MacroAssembler::cmp32LoadPtr not defined on mips{32|64}. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D54127

--HG--
extra : moz-landing-system : lando
2019-11-26 10:25:55 +00:00
Philip Chimento db8f1802f1 Bug 1590907 - Add safeguard when JS_BITS_PER_WORD affects struct layout. r=sfink
This should specifically prevent bug 1553938 from happening in the
future. Unfortunately it won't prevent other similar bugs from
happening.

Differential Revision: https://phabricator.services.mozilla.com/D52463

--HG--
extra : moz-landing-system : lando
2019-11-26 07:26:45 +00:00
Philip Chimento 49d1b6ea2a Bug 1590907 - Revert bug 1553938. r=sfink
It turns out that we don't actually want to install js-confdefs.h
because it contains macro definitions that can conflict when embedders
include JSAPI headers in their Autotools projects.

Differential Revision: https://phabricator.services.mozilla.com/D52462

--HG--
extra : moz-landing-system : lando
2019-11-26 07:25:42 +00:00
Philip Chimento 46313a101e Bug 1590907 - Make ENABLE_INTL_API and ENABLE_TYPED_OBJECTS into js-config macros. r=sfink,firefox-build-system-reviewers,mshal
Whether ENABLE_INTL_API and ENABLE_TYPED_OBJECTS are defined, affects
the behaviour of JS_FOR_PROTOTYPES for the prototypes of Intl and
TypedObject. Therefore, these macros have to be available to embedders.
Rename them to JS_HAS_INTL_API and JS_HAS_TYPED_OBJECTS (in line with
the existing JS_HAS_CTYPES) everywhere they are used, and add them to
js-config.h.in.

Differential Revision: https://phabricator.services.mozilla.com/D52461

--HG--
extra : moz-landing-system : lando
2019-11-26 07:25:35 +00:00
Philip Chimento 60223e4965 Bug 1590907 - Remove preprocessor dependence from size of ContextOptions. r=sfink
Previously, if SpiderMonkey embedders linked to a copy of libmozjs built
with --enable-cranelift, --enable-wasm-gc, or --enable-fuzzing, then the
size of the ContextOptions data structure declared in the header file
would be different than the size of ContextOptions in the library,
likely leading to crashes. This makes all members of ContextOptions
independent of preprocessor macros. Any options not compiled into
SpiderMonkey will still be no-ops.

Differential Revision: https://phabricator.services.mozilla.com/D52460

--HG--
extra : moz-landing-system : lando
2019-11-26 07:25:22 +00:00
Philip Chimento efe8a8c1bf Bug 1590907 - Include JS_FOO macros that influence public API in js-config.h. r=sfink
These are configure macros that start with JS_ and have an effect on the
public API declared in JSAPI header files, so they should be included in
the installed js-config.h header file.

Differential Revision: https://phabricator.services.mozilla.com/D52459

--HG--
extra : moz-landing-system : lando
2019-11-26 07:25:15 +00:00
Philip Chimento a896136d45 Bug 1590907 - Determine 64-bit in public JS header without configure macro. r=froydnj,sfink
If only relying on JS_64BIT to determine whether the system is 64-bits,
then the result will be incorrect when the header is installed as a
public header for use by embedders, and since JS_BITS_PER_WORD affects
the layout of structs in header files, things will go badly wrong.

This uses two other ways of determining pointer width, hopefully
cross-platform enough. __SIZEOF_POINTER__ is a GCC-ism and probably
works in Clang as well. UINTPTR_MAX is hopefully sufficiently
cross-platform as a last resort.

Differential Revision: https://phabricator.services.mozilla.com/D52458

--HG--
extra : moz-landing-system : lando
2019-11-26 07:25:02 +00:00
Philip Chimento dda8b08621 Bug 1590907 - Stop configure macros from masking function prototypes in public JS headers. r=jwalden,sfink
We should have the same public API available whenever possible, and make
it a no-op or make it throw immediately if JS was built without support
for it, instead of showing or hiding the API in header files using
configure macros. Otherwise embedders can easily get mismatches between
a library with functionality and header files without it, or vice versa.

There was no good reason why JS_GetErrorType() was nightly-only API, so
this also enables it unconditionally.

Differential Revision: https://phabricator.services.mozilla.com/D52124

--HG--
extra : moz-landing-system : lando
2019-11-26 10:27:27 +00:00
Jon Coppeard daf691f279 Bug 1515934 - Add jsapi tests for read barriers r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D54553

--HG--
extra : moz-landing-system : lando
2019-11-26 10:07:34 +00:00
Jon Coppeard 0449d764c4 Bug 1515934 - Don't trigger WeakHeapPtr read barrier on comparison r=sfink
This should have been obvious; we didn't end up declaring ElementType on WeakHeapPtr.

Differential Revision: https://phabricator.services.mozilla.com/D54552

--HG--
extra : moz-landing-system : lando
2019-11-26 10:07:25 +00:00
Jon Coppeard b351269776 Bug 1597925 - Add post barrier tests for wrapper types which support move construction and move assignement r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D54551

--HG--
extra : moz-landing-system : lando
2019-11-26 10:24:43 +00:00
Jon Coppeard 616359aa2c Bug 1597925 - Allow moving wrapped pointer types without triggering pre-barriers or asserting that their contents are not gray r=sfink
More use is being made of C++ move semantics recently and this imporves support for moving our GC wrapper types. In this case we don't want to trigger the pre-barrier on the source of the move because we are not modifying the object graph. We also do not want to check that wrapper contents are non gray, because this is valid (it's not valid to *create* a new heap pointer to a GC thing).

The patch adds a release() method to wrappers that returns the original contents of the wrapper after clearing it, without triggering a pre-barrier. Also it adds setUnchecked() methods to set wrapper contents without the gray marking check.

Differential Revision: https://phabricator.services.mozilla.com/D54305

--HG--
extra : moz-landing-system : lando
2019-11-26 10:24:43 +00:00
Jon Coppeard 85570557c2 Bug 1597925 - Refactor GC wrapper comparison tests a little r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D54304

--HG--
rename : js/src/jsapi-tests/testGCHeapPostBarriers.cpp => js/src/jsapi-tests/testGCHeapBarriers.cpp
extra : moz-landing-system : lando
2019-11-26 10:07:06 +00:00
Raymond Liu 152a169cac Bug 1214556 - Add open url MenuItem for links in Web Console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D54418

--HG--
extra : moz-landing-system : lando
2019-11-26 09:04:29 +00:00
Jan Varga 6ba032116d Bug 1592934 - Refactor some storage initialization methods before adding new telemetry probes; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D54307

--HG--
extra : moz-landing-system : lando
2019-11-25 15:04:43 +00:00
Mihai Alexandru Michis 0dc4b7231c Bug 1598971 - Fix spell lint failures. a=lint-fix CLOSED TREE
--HG--
extra : amend_source : 7f3391519a009242cabef46a5ebe50d451aee8b8
2019-11-26 12:21:18 +02:00
Sylvestre Ledru ba488cdc09 Bug 1598971 - codespell: Fix typos in the doc r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,ato
Depends on D54430

Differential Revision: https://phabricator.services.mozilla.com/D54431

--HG--
extra : moz-landing-system : lando
2019-11-25 10:06:12 +00:00
Sylvestre Ledru df4066dd02 Bug 1598971 - Enable codespell on more directories r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D54430

--HG--
extra : moz-landing-system : lando
2019-11-25 20:08:17 +00:00
Csoregi Natalia 0d43b1dd19 Merge mozilla-central to autoland. CLOSED TREE 2019-11-26 11:39:23 +02:00
Csoregi Natalia cce8b90aec Merge autoland to mozilla-central. a=merge 2019-11-26 11:33:06 +02:00
Emilio Cobos Álvarez 008850fba9 Bug 1598968 - Make MediaControlUtils a proper header. r=MeFisto94,alwu
Differential Revision: https://phabricator.services.mozilla.com/D54643

--HG--
rename : dom/media/mediacontrol/MediaControlUtils.h => dom/media/mediacontrol/MediaControlUtils.cpp
extra : moz-landing-system : lando
2019-11-26 09:25:33 +00:00
Masayuki Nakano ab0ac8c7e6 Bug 1581192 - `WidgetEvent::mFlags::mDispatchedAtLeastOnce` needs to be reset before dispatching in content process again r=smaug
The crash occurs when dispatching a user input event which is a default action
of a raw user input event like `click` event caused by `mouseup` event if
the raw event's `isTrusted` is set to `false` accidentally during dispatch.

User input events are fired in the main process first.  Then,
`EventStateManager` sends it to remote process from `PostHandleEvent()` if
necessary.  However, at this time, `WidgetEvent::mFlags::mDispatchedAtLeastOnce`
is never rest, but its only referrer, `EventDispatcher::DispatchDOMEvent()`
assumes that when it's `true`, `WidgetEvent::mFlags:mIsBeingDispatched` is
`false`.  Therefore, only in content process, `mouseup` event's `isTrusted` is
set to `false` by `EventTarget.dispatchEvent()` even while it's being dispatch.
And also the trusted state will be used for creating next event which is part
of the default action.
https://searchfox.org/mozilla-central/rev/6566d92dd46417a2f57e75c515135ebe84c9cef5/dom/events/EventDispatcher.cpp#1121,1126,1130-1131,1135,1138,1143

Therefore, this patch makes `WidgetEvent::mFlags` reset `mDispatchedAtLeastOnce`
when it's copied across process boundary and make
`EventDispatcher::DispatchDOMEvent()` won't modify being dispatched events for
avoiding any odd issues.

Unfortunately, this patch adds "expected: FAIL" to the new WPT test only on
Windows.  The failure reason is still unclear.  I cannot reproduce the failure
on my Windows environment, but on Try Server, it fails permanently since
the driver succeeds to send the mouse click, but the button never receives
`mouseup` nor `click` event.

Differential Revision: https://phabricator.services.mozilla.com/D52988

--HG--
extra : moz-landing-system : lando
2019-11-26 09:08:38 +00:00
Gurzau Raul 5f0c55aacb Backed out changeset 50a04d79f020 (bug 1574285) for causing Bug 1597457 at ANdi's request. a=backout 2019-11-26 08:52:53 +02:00
Gurzau Raul 5ca07ee499 Backed out changeset 2cbc4579e85a (bug 1567929) for causing Bug 1597457 at ANdi's request. a=backout 2019-11-26 08:13:43 +02:00
Glenn Watson 3de96f05de Bug 1599323 - Select small tile sizes for overlay scrollbars on mac. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D54655

--HG--
extra : moz-landing-system : lando
2019-11-26 03:46:53 +00:00
Brindusan Cristian 6c34625fa0 Backed out 4 changesets (bug 1584031) for crashtest failures at crashtests/914521.html.
Backed out changeset 48a289c7226f (bug 1584031)
Backed out changeset cac72426ac2a (bug 1584031)
Backed out changeset bfb6286d68b6 (bug 1584031)
Backed out changeset c94a216693c5 (bug 1584031)
2019-11-26 06:42:14 +02:00
Mirko Brodesser d3e79c4bb0 Bug 1599062: remove `ContentEventHandler::RawRange::IsValidBoundary`. r=masayuki
Doesn't have a definition, hence useless.

Differential Revision: https://phabricator.services.mozilla.com/D54487

--HG--
extra : moz-landing-system : lando
2019-11-26 01:43:45 +00:00
Nicolas Chevobbe f4d39529e3 Bug 1599027 - Remove http inspector doc. r=Honza.
The page was outdated and incorrect, so we remove it.
The architecture diagram of the console is updated to
show TabBoxPanel, and we add a quick summary for the
external components used in the Console.

Differential Revision: https://phabricator.services.mozilla.com/D54463

--HG--
extra : moz-landing-system : lando
2019-11-26 08:43:59 +00:00
Marian Raiciof fd401a7368 Bug 1567122 - Enable Fission for AWSY r=perftest-reviewers,stephendonner,sparky,erahm
Differential Revision: https://phabricator.services.mozilla.com/D48660

--HG--
extra : moz-landing-system : lando
2019-11-26 08:46:24 +00:00
Ruturaj Vartak 1ca199fc6e Bug 1580431 - Start time, end time relative to first request in the Timings Panel. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D54297

--HG--
extra : moz-landing-system : lando
2019-11-26 08:23:47 +00:00
jeffin143 e9711f487b Bug 1598528 : convert NS_STYLE_TEXT_ORIENTATION_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D54252

--HG--
extra : moz-landing-system : lando
2019-11-26 04:50:04 +00:00
J.C. Jones 7d99d834e8 Bug 1592007 - land NSS d64102b76a43 UPGRADE_NSS_RELEASE, r=kjacobs
2019-11-20  Kevin Jacobs  <kjacobs@mozilla.com>

	* lib/ssl/ssl3con.c, lib/ssl/tls13con.c:
	Bug 1590001 - Prevent negotiation of versions lower than 1.3 after
	HelloRetryRequest. r=mt

	This patch prevents negotiation of TLS versions lower than 1.3 after
	an HRR has been sent.

	[d64102b76a43] [tip]

2019-11-22  J.C. Jones  <jjones@mozilla.com>

	* lib/softoken/pkcs11u.c:
	Bug 1596450 - Fixup, coverity CID 1455952 r=kjacobs

	[46b1355d8765]

	* lib/pk11wrap/pk11slot.c:
	Bug 1522203 - Remove Pentium Pro workaround for PK11_GetAllTokens
	r=kjacobs

	The comment indicated the wasted effort was to work around a cache
	issue on the Pentium Pro. I think it has served its purpose.

	[27d9fb4ac69b]

2019-11-21  Franziskus Kiefer  <franziskuskiefer@gmail.com>

	* tests/gtests/gtests.sh:
	Bug 1592557 - fix prng kat tests, r=jcj

	fix for prng kat tests

	[474334bb790b]

2019-11-20  Robert Relyea  <rrelyea@redhat.com>

	* lib/softoken/pkcs11c.c, lib/softoken/pkcs11i.h,
	lib/softoken/sftkhmac.c:
	Bug 1596450 - softoken: unified MAC implementation patch by Alex
	Scheel review by rrelyea
	[3147585149f0]

Differential Revision: https://phabricator.services.mozilla.com/D54637

--HG--
extra : moz-landing-system : lando
2019-11-25 23:48:46 +00:00
Mark Hammond 818e5a5c52 Bug 1598997 - Mock profile fetching function in xpcshell tests. r=eoger
Differential Revision: https://phabricator.services.mozilla.com/D54450

--HG--
extra : moz-landing-system : lando
2019-11-25 21:21:46 +00:00
Brindusan Cristian 3e0cb96b6e Backed out 7 changesets (bug 1590907) for build bustages at jsfriendapi.cpp. CLOSED TREE
Backed out changeset d6ac9325cb2c (bug 1590907)
Backed out changeset fc85ee5e144c (bug 1590907)
Backed out changeset 1b5b40dcaac4 (bug 1590907)
Backed out changeset 1b2d91f00be2 (bug 1590907)
Backed out changeset 67f939760329 (bug 1590907)
Backed out changeset 4d5818a72b46 (bug 1590907)
Backed out changeset 308b42f3a99c (bug 1590907)

--HG--
extra : rebase_source : 47578231d4749f023c3d206c479ee532dbf6fc6c
extra : histedit_source : 9e7427349342272e7fbe02fee29cb87cda45f75d
2019-11-26 05:23:11 +02:00
Matt Woodrow a4c0f4ca76 Bug 1584031 - Pass load flags to NS_NewChannelInternal in ContentChild in the same way we do in DocumentChannelChild. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D54222

--HG--
extra : moz-landing-system : lando
2019-11-26 03:19:13 +00:00
Matt Woodrow 176a1755ea Bug 1584031 - Fix test_ext_redirect_jar.html to handle OOP extension pages. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D54221

--HG--
extra : moz-landing-system : lando
2019-11-26 03:18:53 +00:00
Matt Woodrow 9497ec8582 Bug 1584031 - Add a pref to put data URIs in their own process when using fission. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D53894

--HG--
extra : moz-landing-system : lando
2019-11-26 03:18:38 +00:00
Matt Woodrow c5ae95e1b1 Bug 1584031 - Allow non-http channels into on-may-change-process. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D53893

--HG--
extra : moz-landing-system : lando
2019-11-26 03:18:26 +00:00
Philip Chimento da9351f561 Bug 1590907 - Add safeguard when JS_BITS_PER_WORD affects struct layout. r=sfink
This should specifically prevent bug 1553938 from happening in the
future. Unfortunately it won't prevent other similar bugs from
happening.

Differential Revision: https://phabricator.services.mozilla.com/D52463

--HG--
extra : moz-landing-system : lando
2019-11-26 02:02:58 +00:00
Philip Chimento b36ef7794f Bug 1590907 - Revert bug 1553938. r=sfink
It turns out that we don't actually want to install js-confdefs.h
because it contains macro definitions that can conflict when embedders
include JSAPI headers in their Autotools projects.

Differential Revision: https://phabricator.services.mozilla.com/D52462

--HG--
extra : moz-landing-system : lando
2019-11-26 02:02:41 +00:00
Philip Chimento a710bbae5d Bug 1590907 - Make ENABLE_INTL_API and ENABLE_TYPED_OBJECTS into js-config macros. r=sfink,firefox-build-system-reviewers,mshal
Whether ENABLE_INTL_API and ENABLE_TYPED_OBJECTS are defined, affects
the behaviour of JS_FOR_PROTOTYPES for the prototypes of Intl and
TypedObject. Therefore, these macros have to be available to embedders.
Rename them to JS_HAS_INTL_API and JS_HAS_TYPED_OBJECTS (in line with
the existing JS_HAS_CTYPES) everywhere they are used, and add them to
js-config.h.in.

Differential Revision: https://phabricator.services.mozilla.com/D52461

--HG--
extra : moz-landing-system : lando
2019-11-26 02:02:23 +00:00
Philip Chimento 28a552a99b Bug 1590907 - Remove preprocessor dependence from size of ContextOptions. r=sfink
Previously, if SpiderMonkey embedders linked to a copy of libmozjs built
with --enable-cranelift, --enable-wasm-gc, or --enable-fuzzing, then the
size of the ContextOptions data structure declared in the header file
would be different than the size of ContextOptions in the library,
likely leading to crashes. This makes all members of ContextOptions
independent of preprocessor macros. Any options not compiled into
SpiderMonkey will still be no-ops.

Differential Revision: https://phabricator.services.mozilla.com/D52460

--HG--
extra : moz-landing-system : lando
2019-11-26 02:01:46 +00:00
Philip Chimento 20c2be51e8 Bug 1590907 - Include JS_FOO macros that influence public API in js-config.h. r=sfink
These are configure macros that start with JS_ and have an effect on the
public API declared in JSAPI header files, so they should be included in
the installed js-config.h header file.

Differential Revision: https://phabricator.services.mozilla.com/D52459

--HG--
extra : moz-landing-system : lando
2019-11-26 02:01:33 +00:00
Philip Chimento 78efb9da0a Bug 1590907 - Determine 64-bit in public JS header without configure macro. r=froydnj,sfink
If only relying on JS_64BIT to determine whether the system is 64-bits,
then the result will be incorrect when the header is installed as a
public header for use by embedders, and since JS_BITS_PER_WORD affects
the layout of structs in header files, things will go badly wrong.

This uses two other ways of determining pointer width, hopefully
cross-platform enough. __SIZEOF_POINTER__ is a GCC-ism and probably
works in Clang as well. UINTPTR_MAX is hopefully sufficiently
cross-platform as a last resort.

Differential Revision: https://phabricator.services.mozilla.com/D52458

--HG--
extra : moz-landing-system : lando
2019-11-26 02:01:16 +00:00
Philip Chimento 1ccf7df721 Bug 1590907 - Stop configure macros from masking function prototypes in public JS headers. r=jwalden,sfink
We should have the same public API available whenever possible, and make
it a no-op or make it throw immediately if JS was built without support
for it, instead of showing or hiding the API in header files using
configure macros. Otherwise embedders can easily get mismatches between
a library with functionality and header files without it, or vice versa.

There was no good reason why JS_GetErrorType() was nightly-only API, so
this also enables it unconditionally.

Differential Revision: https://phabricator.services.mozilla.com/D52124

--HG--
extra : moz-landing-system : lando
2019-11-26 02:00:58 +00:00
Jean-Yves Avenard 7198477b2c Bug 1596665 - P5. Pass last site information from the parent and remove DCC's nsHashPropertyBag inheritance. r=mayhemer,kmag
The previous site URI is now only written on the parent and sent back to the child once all redirects have completed.

In a follow up we will also transfer this information when a process switch occur as it's currently broken.

Differential Revision: https://phabricator.services.mozilla.com/D53926

--HG--
extra : moz-landing-system : lando
2019-11-26 01:47:48 +00:00
Jean-Yves Avenard 6f3787fd8c Bug 1596665 - P4. Expose some nsDocShell utility methods. r=kmag
And use the new methods where we can.

Differential Revision: https://phabricator.services.mozilla.com/D53925

--HG--
extra : moz-landing-system : lando
2019-11-26 01:24:42 +00:00