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

637406 Коммитов

Автор SHA1 Сообщение Дата
Ted Campbell 9a7f077221 Bug 1514682 - Split up AddSlot IC logic r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D18631

--HG--
extra : moz-landing-system : lando
2019-02-16 02:18:06 +00:00
Andy Wingo 4e473dc675 Bug 1528797 - Add BigInt case in JS::InformalValueTypeName r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D20307

--HG--
extra : moz-landing-system : lando
2019-02-19 10:32:24 +00:00
Andy Wingo ef4456533c Bug 1528795 - Add BigInt case in ReportIncompatibleMethod debug assertions r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D20306

--HG--
extra : moz-landing-system : lando
2019-02-19 10:21:45 +00:00
Johann Hofmann 8d58db49b3 Bug 1527917 - Enable cryptomining and fingerprinting blocking options in about:preferences. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D20179

--HG--
extra : moz-landing-system : lando
2019-02-19 13:29:21 +00:00
Matthew Noorenberghe 651a6b1282 Bug 1333264 - Only skip test_master_password.html on platforms with failures.
Differential Revision: https://phabricator.services.mozilla.com/D20324

--HG--
extra : moz-landing-system : lando
2019-02-19 13:29:36 +00:00
Alastor Wu 90b4fbdde3 Bug 1528420 - part2 : enable testing/web-platform/tests/webvtt/api/VTTCue/constructor.html. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D20039

--HG--
extra : moz-landing-system : lando
2019-02-19 10:50:06 +00:00
Alastor Wu 21c604d2f7 Bug 1528420 - part1 : set positionAlign to `auto` by default. r=jya
According to spec [1], By default, the position alignment is set to auto

[1] https://www.w3.org/TR/webvtt1/#webvtt-cue-position-automatic-alignment

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

--HG--
extra : moz-landing-system : lando
2019-02-19 12:59:27 +00:00
Mark Banner 5b24b600be Bug 1528255 - In browser_UsageTelemetry*, correct the checks for the urlbar navigation scalar to only look at the specific scalar to avoid intermittents. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D20198

--HG--
extra : moz-landing-system : lando
2019-02-19 09:46:44 +00:00
Florin Strugariu 9096d62bdf Bug 1523973 Review and update the raptor-tp6m-1 recordings r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D20309

--HG--
extra : moz-landing-system : lando
2019-02-19 12:22:32 +00:00
Ciure Andrei 965d533ca4 Backed out 2 changesets (bug 1528712) for Linux spcshell and reftest failures (test_ext_browserSettings.js, 1022481-1.html) CLOSED TREE
Backed out changeset 2d5c4e71e258 (bug 1528712)
Backed out changeset d981515b874b (bug 1528712)
2019-02-19 14:25:57 +02:00
Jan de Mooij 8100905f55 Bug 1521906 part 2 - Replace remaining CheckedUnwrap calls in js/src. r=luke
This uses CheckedUnwrapStatic in places where we don't expect WindowProxy/Location
objects to show up or where we will throw an exception in that case anyway. I also
used this in the more complicated cases (the compartment situation in PromiseObject
for example is very complicated).

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

--HG--
extra : moz-landing-system : lando
2019-02-19 11:22:55 +00:00
Emilio Cobos Álvarez f97a9f50a2 Bug 1528712 - Remove nsFont::featureValueLookup. r=jfkthame
It's a global object, it doesn't have to be stored in nsFont. Pass it from the
caller like the user font set and co.

Depends on D20141

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

--HG--
extra : moz-landing-system : lando
2019-02-18 14:03:47 +00:00
Emilio Cobos Álvarez 522e6c9366 Bug 1528712 - Remove a couple trivial dependencies on nsPresContext. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D20141

--HG--
extra : moz-landing-system : lando
2019-02-19 11:17:28 +00:00
Jan de Mooij f0d43beec0 Bug 1527592 - Preserve callable/constructor flags when returning a dead object proxy from Compartment::wrap. r=evilpie,jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D19945

--HG--
extra : moz-landing-system : lando
2019-02-19 10:11:27 +00:00
Jan de Mooij 095c9d9c6f Bug 1527850 - Null out CompartmentPrivate's scope pointer when moving XPCWrappedNativeScope to the dying scopes list. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D19772

--HG--
extra : moz-landing-system : lando
2019-02-14 15:59:42 +00:00
Ciure Andrei bdd1cad961 Backed out changeset d33544f0d8e6 (bug 1528451) for Assertion failure: IsResolved ...nsStyleStruct.h failures CLOSED TREE
--HG--
extra : rebase_source : 7cb6575b90f503100bbe1b5d07a9f072b8f350d4
2019-02-19 12:44:44 +02:00
Glenn Watson 9214b9fd29 Bug 1528866 - Specify device pixel ratio per render task. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D20245

--HG--
extra : moz-landing-system : lando
2019-02-19 09:11:09 +00:00
Emilio Cobos Álvarez 39d3da7fd5 Bug 1528644 - Internal value changes shouldn't change validity state. r=masayuki
Even less so on reframe, where it's just unsound to do so. I had to give a value
to eSetValue_Internal, since otherwise I cannot check for its presence. I can
further special-case the reframe case if you prefer.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 09:25:55 +00:00
Julian Descottes c1b4ec1075 Bug 1527966 - Update browserLoader baseURL for performance-new panel;r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D19824

--HG--
extra : moz-landing-system : lando
2019-02-19 09:45:45 +00:00
Ciure Andrei fe3f244555 Backed out 3 changesets (bug 1487113) for perma failing test_alt-data_stream_wrap.js CLOSED TREE
Backed out changeset 831ac8c662c0 (bug 1487113)
Backed out changeset a8406df01e95 (bug 1487113)
Backed out changeset 1e97c3573ce6 (bug 1487113)
2019-02-19 11:43:13 +02:00
Marco Bonardo c0dcb8818d Bug 1526069 - Port drag and drop code to QuantumBar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20194

--HG--
extra : moz-landing-system : lando
2019-02-19 09:02:03 +00:00
Razvan Caliman 584bbd922b Bug 1527924 - (Part 3) Account for new selectors structure when generating stylesheets with changes r=pbro.
Updates the Redux selector that generates styleesheets with changes to account for the new array structure for the history of the CSS Rule selector. Also fixes the xpcshell mock to account for the same thing.

With this change, selector renames also get captured in the output stylesheet (they weren't in the previous implementation)

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

--HG--
extra : moz-landing-system : lando
2019-02-19 09:05:53 +00:00
Razvan Caliman 146fa6af12 Bug 1527924 - (Part 2) Show selector diffs in the Changes panel. r=pbro
Depends on D19828

Updates the React component of the Changes panel to show the diff of
a rule's selector if it has changed.

The previous implementation assumed that a selector rename meant a whole
rule removal (with the old selector) followed by a whole rule addition
(with the new selector).

This new implementation tracks the changes to the selector atomically.
The main benefit is that if the selector is renamed, the diff in the
Changes panel shows only this action and not the unchanged declarations.

The test was re-enabled and adjusted to account for this difference in behaviour.

This refactor was required in order to be compatible with Bug 1525238
which lays the ground work for matching rules from the client with rules
from the server. This is necessary in order to have consistent behaviour
for export options, like Copy Rule, which need to match the rule on the
server even if its selector was changed.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 13:14:29 +00:00
Razvan Caliman 0fb39bdffe Bug 1527924 - (Part 1) Use array of selectors for the rule in Redux structure for Changes. r=pbro
Refactors the Redux state for the Changes panel so that rules have
a `selectors` array instead of just a single `selector` string.

The `selectors` array represents the **history** of selector text the
rule has over time, not the actual list of multiple selectors it has
(multiple selectors are collapsed into a single comma-separated string
regardless of how many they are).

When the server logs changes, the rule's selector text is checked
against the history of previously logged selectors.

If the incoming selector is different than the _first_ item in
the tracked rule's `selectors` array, it means the selector was renamed
so it is pushed onto the array (added to the history).

If it's the same, the whole array can be reduced to the original value
because it means that either:
- the selector didn't change between operations (ex: after declaration changes)
- the selector reverted back to its original name.

This `selectors` array is used in the React component in Part 2 of this
series to render any necessary diff view of the selector.

The old approach (whole rule removal + whole rule addition) is replaced
by this refactor. The introduction of the StyleRyleActor actor id from
the server as the rule id on the client in Bug 1525238 means that the
selector change can no longer behave like two distinct rules.
The actorID/rule id are preserved after selector renames. This necessary
for the some export options to work consistently (like Copy Rule with changes applied).

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

--HG--
extra : moz-landing-system : lando
2019-02-15 16:58:58 +00:00
Emilio Cobos Álvarez 6560e5525b Bug 1528451 - Move code that starts image loads to DidSetComputedStyle. r=heycam
This is more consistent with all the other image request code, and handles
pseudo-elements properly without having to add more out-of-band calls to
UpdateStyleOfOwnedChildFrame and such.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 00:40:10 +00:00
Masayuki Nakano e9c01bb3dc Bug 998941 - Update web platform tests for InputEvent.data and InputEvent.dataTransfer r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D19299

--HG--
extra : moz-landing-system : lando
2019-02-19 06:34:21 +00:00
Masayuki Nakano f8a317eb9a Bug 998941 - part 2-3: Create new constructors of DataTransfer to set only plain text or nsITransferable r=smaug
DataTransfer should have more 2 constructors.  One takes |const nsAString&| and
sets its data to the string.  The other takes |nsITransferable*| and stores only
its data with DataTransferItem.

If given data is external resource like the case of `HTMLEditor::PasteTransferable()`,
we should copy its data to each DataTransferItem because nsITransferable is not
cycle-collectable, but DataTransfer may be grabbed by JS.  Unfortunately, adding
new path to initialize DataTransfer with nsITransferable instance is too risky
because DataTransfer and DataTransferItem work together to initialize each of
them if DataTransfer is in external mode. Therefore, this patch makes the
new constructor temporarily sets it to in external mode, then, cache usable types
first, then, call `FillAllExternalData()` to  make each DataTransferItem initializes
its data by itself, finally, make the constructor set it to internal mode and release
nsITransferable instance.  This is ugly implementation but the most reasonable
way for now because:

- We don't need to change DataTransfer nor DataTransferItem a lot in this bug.
- We don't need to duplicate any code like a loop in `CacheExternalData()`.

In another bug, we should redesign DataTransfer and DataTransferItem to
make DataTransferable easier to be added new constructors.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 07:13:20 +00:00
Masayuki Nakano 474225038e Bug 998941 - part 2-2: Make HTMLEditor set InputEvent.dataTransfer when InputEvent.inputType is "insertFromPaste", "insertFromDrop" or "insertReplacementText" r=smaug,m_kato
InputEvent.dataTransfer should be set to non-null when InputEvent.inputType
is "insertFromPaste", "insertFromDrop" or "insertReplacementText" and
editor is an HTMLEditor instance:
https://rawgit.com/w3c/input-events/v1/index.html#dfn-data
https://w3c.github.io/input-events/#dfn-data

("insertTranspose" and "insertFromYank" are not currently supported on Gecko.)

This patch makes nsContentUtils::DispatchInputEvent() take dataTransfer value
and EditorBase set it via AutoEditActionDataSetter like data value.

However, we need to create other constructors of DataTransfer to create its
read-only instances initialized with nsITransferable or nsAString.  This will
be implemented by the following patch.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:33:42 +00:00
Masayuki Nakano 6eadee9e6c Bug 998941 - part 2-1: Implement InputEvent.dataTransfer declared by Input Events r=smaug
InputEvent.dataTransfer is declared by Input Events Level 1 and Level 2 (i.e.,
not UI Events).  It's necessary for "beforeinput" event on contenteditable
elements because of with some InputEvent.inputType values on contenteditable,
InputEvent.dataTransfer is used instead of InputEvent.data.

According to the Chrome's behavior, if InputEvent.dataTransfer is created by
web apps, the DataTransfer object is mutable.  Otherwise, i.e., the event
represents user input, the DataTransfer object is read only.  We should follow
this behavior.

This is enabled by default.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:32:11 +00:00
Masayuki Nakano 551de121c1 Bug 998941 - part 1-7: Make HTMLEditor set InputEvent.data to serialized color value when InputEvent.inputType is "formatBackColor" or "formatForeColor" r=smaug,m_kato,emilio
Although neither Chrome nor Safari does not set InputEvent.data when the event
is caused by `document.execCommand()` with `backColor`, `foreColor` nor
`hiliteColor`, Safari supports styling color with touchbar and in that case,
Safari sets it (*1).

Additionally, currently Safari uses `rgb()` to represents a color value and
using same rule to serializing color value for CSS OM matches Safari's behavior
and can represent any valid color values.

This patch makes given color value parsed and then serialized with same code
in style system.  If the value is `currentcolor`, `inherit`, `initial` or `reset`, sets
the value as-is for now.  Additionally, when given value is invalid, sets the value
as-is for forward compatibility.

Note that automated tests will be added into input-events-exec-command.html
by the last patch.

1. https://github.com/w3c/input-events/issues/94#issuecomment-461061517

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:31:28 +00:00
Masayuki Nakano 135f048bdf Bug 998941 - part 1-6: Make HTMLEditor set InputEvent.data when InputEvent.inputType is "fontName" r=smaug,m_kato
Although neither Chrome nor Safari does not set InputEvent.data value when
InputEvent.inputType is "fontName", but it's easy to implement. Therefore, this
patch implements it as declaration of Input Events.

This patch uses given value as-is.  Perhaps, this shouldn't cause any problems
because such value can be set to Element.style.fontFamily without any changes.

Note that automated test will be added into WPT later.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:30:50 +00:00
Masayuki Nakano 0d571915df Bug 998941 - part 1-5: Make HTMLEditor set InputEvent.data when InputEvent.inputType is "insertLink" r=smaug,m_kato
Although neither Chrome nor Safari does not set InputEvent.data value when
InputEvent.inputType is "insertLink", but it's easy to implement.  Therefore,
this patch implements it as declaration of Input Events.

This patch sets the value to raw href attribute value because we create
<a> element without absolute URI when web apps call execCommand("createLink")
with relative URI.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:30:12 +00:00
Masayuki Nakano 122ab2691a Bug 998941 - part 1-4: Make editor set InputEvent.data to "ltr" or "rtl" when InputEvent.inputType is "formatSetBlockTextDirection" r=smaug,m_kato
When InputEvent.inputType is "formatSetBlockTextDirection" or
"formatSetInlineTextDirection", InputEvent.data value should be one of
"ltr", "rtl", "auto" or "null".
https://rawgit.com/w3c/input-events/v1/index.html#dfn-data
https://w3c.github.io/input-events/#dfn-data

We only supports "ltr" and "rtl" when user switches the direction with
Accel + Shift + X.  Therefore this patch makes EditorBase set the data
to "ltr" or "rtl".

Oddly, with synthesizing the shortcut keys, the command is not executed
properly in the automated test.  Therefore, this patch dispatches the
command directly.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:29:38 +00:00
Masayuki Nakano 2eaf64e594 Bug 998941 - part 1-3: Make TextEditor (only when not HTMLEditor instance) set InputEvent.data to inserting string when InputEvent.inputType is "insertFromPaste", "insertFromDrop" or "insertReplacementText" r=smaug,m_kato
https://rawgit.com/w3c/input-events/v1/index.html#dfn-data
https://w3c.github.io/input-events/#dfn-data

Both Input Events Level 1 and Level 2 declare that InputEvent.data should be
set to inserting string only on TextEditor when InputEvent.inputType is
"insertFromPaste", "insertFromPasteAsQuotation", "insertFromDrop",
"insertTranspose", "insertReplacementText" or "insertFromYank".

Currently, we support only "insertFromPaste", "insertFromDrop",
"insertReplacementText".  Therefore, this patch makes TextEditor set
EditorBase::mEditActionData::mData only for them (and the instance is not
HTMLEditor's).

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:28:57 +00:00
Masayuki Nakano a3484e40c0 Bug 998941 - part 1-2: Make editor set InputEvent.data to inserting text when it sets InputEvent.inputType to "insertText" or "insertCompositionText" r=smaug,m_kato
This patch makes nsContentUtils::DispatchInputEvent() support to set
InputEvent.data.  Whether the its value should be null or DOMString depends
on InputEvent.inputType value.

- https://rawgit.com/w3c/input-events/v1/index.html#overview
- https://rawgit.com/w3c/input-events/v1/index.html#dfn-data
- https://w3c.github.io/input-events/#overview
- https://w3c.github.io/input-events/#dfn-data

According to the draft specs, InputEvent.data should be always inserting text
when inputType is "insertText" or "insertCompositionText" (or
"insertFromCompoition" if Level 2 support is enabled).

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:28:19 +00:00
Masayuki Nakano 0f145fc8e5 Bug 998941 - part 1-1: Implement InputEvent.data of UI Events r=smaug
InputEvent.data notifies web apps of inserting/inserted text with "beforeinput"
and "input" events.  So, this is important especially for "beforeinput" event
listeners.  That's the reason why we need to support this before implementing
"beforeinput" event.

This patch adds it into InputEvent and make it enabled by default.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:27:41 +00:00
Julian Descottes 5851f87196 Bug 1528896 - Fix about:debugging-new unavailable in local & nightly builds;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D20287

--HG--
extra : moz-landing-system : lando
2019-02-19 08:03:42 +00:00
Dão Gottwald 8eafac62d0 Bug 1522536 - Remove redundant address bar UI tests. r=whimboo
Differential Revision: https://phabricator.services.mozilla.com/D20269

--HG--
extra : moz-landing-system : lando
2019-02-19 07:45:46 +00:00
Andrea Marchesini aff51ab9f6 Bug 1487113 - nsICacheInfoChannel.preferAlternativeDataType() should expose alt-data as optional if required - tests, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20201

--HG--
extra : moz-landing-system : lando
2019-02-19 07:38:44 +00:00
Andrea Marchesini 52efd15b05 Bug 1487113 - nsICacheInfoChannel.preferAlternativeDataType() should expose alt-data as optional if required, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20200

--HG--
extra : moz-landing-system : lando
2019-02-19 07:38:31 +00:00
Andrea Marchesini 47dbd397fc Bug 1487113 - Expose nsICacheInfoChannel in Respose object for wasm content-type, r=valentin,nbp
Differential Revision: https://phabricator.services.mozilla.com/D19823

--HG--
extra : moz-landing-system : lando
2019-02-19 07:38:03 +00:00
Daisuke Akatsuka 93905b660f Bug 1500350: Add a test for extension debug setting. r=jdescottes,ladybenko
Depends on D18199

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

--HG--
extra : moz-landing-system : lando
2019-02-19 01:18:05 +00:00
Daisuke Akatsuka d5c0d59aa6 Bug 1500350: Disable 'Inspect' button for extension when extension debug setting was disabled. r=jdescottes,ladybenko
Depends on D18198

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

--HG--
extra : moz-landing-system : lando
2019-02-19 01:13:48 +00:00
Daisuke Akatsuka b2664e6cb3 Bug 1500350: Re-layout for runtime controllers. r=ladybenko,jdescottes
Depends on D18196

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

--HG--
extra : moz-landing-system : lando
2019-02-19 01:12:19 +00:00
Daisuke Akatsuka f466d60db3 Bug 1500350: Add a checkbox to enable addon debugging on this-firefox. r=jdescottes,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D18196

--HG--
extra : moz-landing-system : lando
2019-02-19 01:10:54 +00:00
Mike Hommey e11bbe3cb1 Bug 1528149 - Enable ffvpx on artifact builds. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D19913

--HG--
extra : moz-landing-system : lando
2019-02-19 05:48:27 +00:00
Brindusan Cristian 4110a9b524 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-19 06:41:04 +02:00
Brindusan Cristian 0709795ffe Merge inbound to mozilla-central. a=merge 2019-02-19 06:38:36 +02:00
sotaro e7cc92c95a Bug 1516834 - Check if CopyData succeeded r=nical
When CopyData failed, an image does not have valid data. It should not be used.

Differential Revision: https://phabricator.services.mozilla.com/D19746
2019-02-19 09:12:47 +09:00
Luke Wagner e8a5e4dfbc Bug 1520931 - Baldr: fix implicit constructor warning (r=me) 2019-02-18 17:55:43 -06:00