659403 Commits

Author SHA1 Message Date
Olli Pettay
97ef8e2325 Bug 1559523 - Fix a crash in Thunderbird, [@ mozilla::dom::Document::EndLoad]. r=kaie 2019-07-05 14:54:53 +02:00
Victor Porof
726678d4e7 Bug 1563300 - Add a js-format git commit hook, r=sylvestre, CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D36816

--HG--
extra : source : 53377e8c3200b2f25ec6f3471632353d7d5f7d88
extra : amend_source : c16d0b9dcced844fa50095e04bad9519713854b3
extra : intermediate-source : 01f1c9d343947743bfd033bcfbb344dcee4b76fc
2019-07-04 14:50:06 +02:00
Victor Porof
9415e00e9b Bug 1563763 - Ignore reformatting m-c using Prettier (bug 1561435) in in blame/annotate, r=standard8, CLOSED TREE, DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D37073

--HG--
extra : amend_source : 1585c77544020339696d153ece5ae177afea408e
2019-07-05 17:53:06 +02:00
Victor Porof
b8157dfaaf Bug 1561435 - Format remaining devtools/, a=automatic-formatting, CLOSED TREE
# ignore-this-changeset

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

--HG--
extra : source : 4722b924e08478f5337ab509718bd66906bf472f
extra : amend_source : a5baa1aab21639fdba44537e3a10b179b0073cb4
2019-07-05 11:29:32 +02:00
Robert Mader
46c9b36d04 Bug 1563035 - Webrender assumes that an EGL context uses GLES (but it can be GL, too). r=jgilbert 2019-07-03 16:38:00 +03:00
Agi Sferro
d28d2f70e2 Bug 1553515 - Don't use reflection in ContentDelegateTest. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D32573

--HG--
extra : moz-landing-system : lando
2019-06-27 21:21:15 +00:00
Brindusan Cristian
d8c1441d3e Backed out changeset 07d42b08b863 (bug 1551232) for bc failures at browser_action_searchengine.js. 2019-07-09 06:06:45 +03:00
Marcos Cáceres
1118e89526 Bug 1563460 - Collect console messages generated by processing manifest for Dev Tools r=baku
This gets rid  of the sending warnings to the browser console. Instead, when the processor is explicitly asked to do so, it now collects spec violations into a `moz_validation` member.

To access the new manifest member, you can now pass a second argument to `ManifestObtainer.contentObtainManifest()` like so:

```
const manifest = await ManifestObtainer.contentObtainManifest(
      this.targetActor.window,
      { checkConformance: true }
);
manifest. moz_validation; // 🎉
```

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

--HG--
extra : moz-landing-system : lando
2019-07-09 02:33:39 +00:00
Dzmitry Malyshau
e7e86f1bd8 Bug 1563993 - WR chase into clips r=jrmuizel
it's very helpful to see the list of clips and the way they affect a chased primitive
Example:
```
    building clip chain instance with local rect TypedRect(1561.0×1968.0 at (-300.0,-300.0))
        clip Rectangle(3840.0×1874.0, Clip) at (0.0,0.0) in space SpatialNodeIndex(1)
        flags (empty), resulted in Partial
        clip Rectangle(3840.0×1874.0, Clip) at (0.0,0.0) in space SpatialNodeIndex(2)
        flags (empty), resulted in Partial
```

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

--HG--
extra : moz-landing-system : lando
2019-07-08 13:09:38 +00:00
Hiroyuki Ikezoe
e1744fe34b Bug 1564021 - Use the default desktop width (980px) in the case where we have any viewport meta element but no valid content there. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D37329

--HG--
extra : moz-landing-system : lando
2019-07-09 01:56:34 +00:00
alwu
ae4242d665 Bug 1305732 - part7 : remove duplicated declaration. r=heycam
We have declared `supportPseudo`, remove the duplicated declaration.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 04:47:46 +00:00
alwu
10c0d48c5a Bug 1305732 - part6 : modify wpts. r=heycam
In this patch, we do the following changes.

1. using Ahem and using it as recommanded font size and line height.
2. reduce the cue text length in `align_center_position_lt_50.vtt` and `align_center_position_gt_50.vtt` in order to prevent text wrapping to multiple lines
3. wrapping to mulitple lines would be tested in `align_center_position_lt_50_size_gt_maximum_size.html` and `align_center_position_gt_50_size_gt_maximum_size-ref.html`

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

--HG--
extra : moz-landing-system : lando
2019-07-08 03:05:16 +00:00
alwu
c2ca57258b Bug 1305732 - part5 : set CSS properties directly on '::cue'. r=heycam,emilio
According to the spec [1], we have to set those CSS properties on the root node, and then this root node would have a child node, background box [2], which would contain all other child nodes.

In our case, the background box is `cueDiv` [3].

In theory, all those properties set on the root node should be inherited by the background box. However, when the background box is a pseudo element `::cue`, they won't be directly inherit from the the background box's parent, inherited styles would acutally come from video instead.

Therefore, we have to directly set these properties on the pseudo element and mark them as `!important` to avoid being overrided by user style script.

[1] https://www.w3.org/TR/webvtt1/#ref-for-list-of-webvtt-node-objects-9
[2] https://www.w3.org/TR/webvtt1/#webvtt-cue-background-box
[3] https://searchfox.org/mozilla-central/rev/11712bd3ce7454923e5931fa92eaf9c01ef35a0a/dom/media/webvtt/vtt.jsm#533-534

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

--HG--
extra : moz-landing-system : lando
2019-07-09 01:42:45 +00:00
alwu
fdde30fdd6 Bug 1305732 - part4 : background box should be a inline node. r=heycam
According to the spec [1], the background box should be `display:inline`.

Therefore, we should create a `<span>`, which already is an inline element, for the background box, not a `<div>`, which is a block element.

In addition, when the pseudo element is enabled, even though the element is currently a `div`, it doesn't match the div `{ display: block; }` rule from the UA style sheet because the pseudo element only matches `::cue` rules. It also has the initial value of display which is `inline`.

[1] https://www.w3.org/TR/webvtt1/#webvtt-cue-background-box

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

--HG--
extra : moz-landing-system : lando
2019-07-08 18:02:53 +00:00
alwu
044a87f6e8 Bug 1305732 - part3 : remove redundent properties setting on non-pseudo background node. r=heycam
If the background node is not a pseudo element, these properties would actually be inherited, so we have no need to set them again.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 04:45:01 +00:00
alwu
85d9f025b6 Bug 1305732 - part2 : list all properties set on the root node in one place to make them clear. r=heycam
In order to clearly see what properties are applied on the root node, create a function to list all of them together.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 04:44:47 +00:00
Alastor Wu
540674f2db Bug 1305732 - part1 : don't show the box with zero width or height. r=heycam
Setting cue's position would also affect cue box's size which would be determined by cue's position alignment as well. If the cue box's width or height is zero, it means that this box should not be display on the screen and we should clear cue's display state as well.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 23:07:43 +00:00
harry
d705204f7f Bug 1551232 - Removes legacy-urlbar binding, simplifies gURLBarHandler, and removes ini file with legacy-urlbar tests. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D36231

--HG--
extra : moz-landing-system : lando
2019-07-08 18:46:47 +00:00
Cameron McCormack
b8f227ec6f Bug 1555851 - Detect motion path measurement failures. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D37337

--HG--
extra : moz-landing-system : lando
2019-07-09 01:26:52 +00:00
James Teh
43f890d3a4 Bug 1562208: Don't assume that a child DocAccessibleParent is for a different process to its parent because there is a BrowserBridgeParent. r=yzen
Previously, DocAccessibleParent::AddChildDoc used the presence of a BrowserBridgeParent to determine whether the child document was in a different process to the parent document.
While this is normally the case, there can be a point while the embedded document is loading where there is a temporary document in the same (embedder) process.
In this case, we tried to get the COM proxy for the child document.
For a child document in the same process, this isn't available yet, so this caused infinite recursion (stack overflow) in ProxyAccessible::GetCOMInterface.

Instead of using the presence of BrowserBridgeParent, first check whether the child document is at the top level of its content process.
If it isn't, the document is in the same process as its parent.

Also, add a DIAGNOSTIC_ASSERT to ProxyAccessible::GetCOMInterface which will fire if no COM proxy or MSAA child id has been set.
Previously, we just recursed infinitely and overflowed the stack in this case, which is painful to debug.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 00:56:56 +00:00
Daosheng Mu
5b5df637b1 Bug 1564203 - Clear VR external shared memory when recreating a new VR process. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D37332

--HG--
extra : moz-landing-system : lando
2019-07-08 23:07:42 +00:00
Mike Hommey
280a850db7 Bug 1561821 - Enable frame pointers in Rust code when building with --enable-frame-pointers. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D37021

--HG--
extra : moz-landing-system : lando
2019-07-05 00:08:32 +00:00
Mike Hommey
3ea251d03f Bug 1561821 - Bump toolkit/crashreporter's minimum supported rust version. r=dmajor
As it turns out, the version the minidump-stackwalk tasks use (1.31), is
the first version that actually builds the project: 1.30 and earlier
fail because for some reason, cargo wants to read all Cargo.toml files
in the workspace, including unrelated ones, and barfs on features that
weren't supported until 1.31.

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

--HG--
extra : moz-landing-system : lando
2019-07-05 22:01:23 +00:00
Hiroyuki Ikezoe
dcfdeea7f1 Bug 1556275 - Handle unknown values for width and height as 'Auto' in viewport meta tag. r=botond
Without the change a green rectangle in each reftest in this commit covers whole
screen.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 00:02:48 +00:00
Paul Bone
546bfbc874 Bug 1561506 - Make startOrRunIfIdle safe when threads are disabled r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D36326

--HG--
extra : moz-landing-system : lando
2019-07-05 13:18:27 +00:00
Paul Bone
c31fd2d225 Bug 1506733 - (part 4) Decommit unused portion of Nursery chunks r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D35591

--HG--
extra : moz-landing-system : lando
2019-07-05 13:18:17 +00:00
Paul Bone
08d45f17bc Bug 1506733 - (part 3) Re-initalise memory regions when growing the nursery r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D36863

--HG--
extra : moz-landing-system : lando
2019-07-05 15:56:53 +00:00
Paul Bone
112005db9e Bug 1506733 - (part 2) Refactor how the NurseryDecomitter finishes r=jonco
This refactoring is required for the next change.

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

--HG--
extra : moz-landing-system : lando
2019-07-05 13:18:09 +00:00
Paul Bone
070151d46c Bug 1506733 - (part 1) Rename NurseryDecommitChunkTask r=jonco
This class will not just decommit whole chunks, so rename it to not imply
that as much.

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

--HG--
extra : moz-landing-system : lando
2019-07-05 13:18:05 +00:00
Alvina Waseem
627ccdaaa3 Bug 1558372 - Fixed Crash Reporter on Mac. r=snorp,froydnj,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D35877

--HG--
extra : moz-landing-system : lando
2019-06-27 19:51:04 +00:00
Charlie Marlow
1e64f27aad Bug 1561657: fixed text-underline-offset so that positive lengths represent movement outwards from the text r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D36669

--HG--
extra : moz-landing-system : lando
2019-07-08 20:15:54 +00:00
Charlie Marlow
dd89a93a34 Bug 1562704: fixed text-underline-offset for Japanese and Korean text, where underlines appear to the right of text r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D36519

--HG--
extra : moz-landing-system : lando
2019-07-08 20:15:56 +00:00
fluks
10c442b350 Bug 1498188 - Show graphically relative energy impacts of tabs. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D35652

--HG--
extra : moz-landing-system : lando
2019-07-08 17:05:50 +00:00
Alastor Wu
3a3f6a61b1 Bug 1544455 - part3 : consider the result of computed position alignment to return correct computed position. r=heycam
In the spec [1], it only considers text's alignment when computing the `position`. However, the text alignment `start` and `end` can make the same result of what `left` and `right` make, depending on what direction the text uses.

For example, setting text alignment `left` is equal to `start` for the LTR text. Therefore, we could check the result of `ComputedPositionAlign`, which would return correctly direction automatically accoding to the text's base direction.

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

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

--HG--
extra : moz-landing-system : lando
2019-07-02 23:02:19 +00:00
Alastor Wu
7df6fd26b7 Bug 1544455 - part2 : modify test 'test_webvtt_positionalign.html'. r=heycam
Add new test cases for alignment `start` and `end` for both LTR and RTL text.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 17:51:29 +00:00
Alastor Wu
d5695bf69c Bug 1544455 - part1 : check the base direction of cue text in 'ComputedPositionAlign()'. r=heycam
According to the spec [1], when text alignment is `start` or `end`, we have to check the base direction of the cue text in order to decide the position alignment.

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

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

--HG--
extra : moz-landing-system : lando
2019-07-03 00:39:50 +00:00
Brindusan Cristian
88dcb17147 Backed out changeset 8e741ae8dcab (bug 1559975) as requested by ahal on irc. CLOSED TREE 2019-07-08 23:40:47 +03:00
shindli
2c12986a7f Backed out 5 changesets (bug 1421938) for causing a bustage in /builds/worker/workspace/build/src/intl/locale/cldr-quotes.inc:21:448 CLOSED TREE
Backed out changeset 3958f2af0e34 (bug 1421938)
Backed out changeset 89a0866d1aa0 (bug 1421938)
Backed out changeset f150702af11f (bug 1421938)
Backed out changeset b8ebd4d241e0 (bug 1421938)
Backed out changeset 1d38eb5eff6e (bug 1421938)
2019-07-08 23:09:34 +03:00
shindli
3836f557ea Backed out 3 changesets (bug 1561657, bug 1557857, bug 1562704) for causing Wr permafailures in z:/build/build/src/layout/base/nsCSSFrameConstructor.cpp:3962 CLOSED TREE
Backed out changeset 3fd103a9fce8 (bug 1557857)
Backed out changeset c4ffd7ba0442 (bug 1561657)
Backed out changeset 4b67dff062c6 (bug 1562704)
2019-07-08 22:56:35 +03:00
Gregory Mierzwinski
89a3cf398b Bug 1561729 - Add unit tests for android power measurement parsing. r=perftest-reviewers,rwood
This patch adds three unit tests (in one file) to the set of the raptor tests. The tests include (i) an Android 8 power parsing test, (ii) an android 7 power parsing test, and (iii) a test for android OS baseline parsing (tested using android 8 data).

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

--HG--
extra : moz-landing-system : lando
2019-07-08 18:30:00 +00:00
Jonathan Kew
da0f34be06 Bug 1554208 - patch 6 - Add PSName and FullName support to gfxFT2FontList shared font-list initialization, so that src:local() lookups will work. r=jwatt
And with this, all tests pass on tryserver when the shared list is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:47:17 +00:00
Jonathan Kew
d45e85e785 Bug 1554208 - patch 5 - Implement shared-fontlist support in the gfxFT2FontList backend. r=jwatt
This is the main part of the implementation, except that it doesn't handle populating the
local names table (for @font-face src:local() lookups) with Full and PostScript names;
that follows in the next patch.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:47:03 +00:00
Jonathan Kew
7a6bb0577c Bug 1554208 - patch 4 - Make the FontNameCache that we use to store the font list in the startupCache use a more robust and extensible serialization. r=jwatt
I'll need to add a couple of extra fields to the cache records, and realized that the current format
looks really fragile; in theory, it'd break if a font name ever contained a comma or semicolon
(unlikely though that may be). So let's fix it to be a bit more robust before we add to it further.
Using control characters from the C0 range to delimit fields/records, instead of ASCII punctuation,
removes the (tiny) risk of conflict with characters that actually occur in a name, and using
distinct field and record separators means that we can better check that the records we're loading
from the cache actually match the expected format.

(Given that the startup cache gets re-created when the build ID is updated, a change in the format
between versions wasn't going to cause problems for users; their old cache just gets blown away
when upgrading. Still, a little more robustness seems like a good thing.)

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:44 +00:00
Jonathan Kew
920998b64e Bug 1554208 - patch 3 - Rearrange gfxFT2Fonts code so that FindFonts() does just what it says, and other work is handled by the caller. r=jwatt
This makes the functional structure a bit cleaner, so that it'll be easier to slip in the alternative
codepath for the shared font-list.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:30 +00:00
Jonathan Kew
8b058ab5a1 Bug 1554208 - patch 2 - Remove redundant member-reset code from gfxFT2FontList::FindFonts (already handled by gfxPlatformFontList before this is called). r=jwatt
A bit of cleanup of the existing code, before we start actually implementing new stuff.

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:16 +00:00
Jonathan Kew
192c1d4cb4 Bug 1554208 - patch 1 - Add missing checks for shared charmap. r=jwatt
This isn't really specific to the FT2 fontlist, it's a general fixup that I noticed while
working on this. (The missing checks aren't crucial, but mean that we might re-read a cmap
when we shouldn't need to.)

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

--HG--
extra : moz-landing-system : lando
2019-07-08 19:46:01 +00:00
Jonathan Kew
1e08aef182 Bug 1560437 - Ignore font.system.whitelist if no whitelisted fonts are found. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D35499

--HG--
extra : moz-landing-system : lando
2019-06-30 01:35:29 +00:00
Jonathan Kew
4650cbd942 Bug 1559044 - Improve criteria for deciding whether to kick off download of a @font-face resource, so that we don't defer resources that will actually be needed. r=heycam
The original patch in bug 1422530 checked whether we're currently hiding a given piece of text
because we're waiting for a resource to download, and used this as a signal that we should not
initiate another download.

However, that's not really a good criterion to use when we're doing font selection for a given
character, both because it's an indirect signal -- whether painting the text is suppressed will
depend on timing and the font-display property -- and because it doesn't consider whether any
resource that's already being downloaded will actually be relevant for the specific character
we're trying to display.

So this patch instead checks for a relevant in-progress load earlier in the font list during
the specific FindFontForChar call, so that when unicode-range is used to split a font across
multiple subsets, an in-progress load for one subset won't make us defer the downloads of other
subsets if they are also needed for the characters present in the text.

With this, the repeated blinking no longer happens on the site here, as loading of all the
required font subsets is initiated early.

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

--HG--
extra : moz-landing-system : lando
2019-07-03 15:14:24 +00:00
Jonathan Kew
be09c8f61c Bug 1421938 - Add WPT reftests for nested quotes and 'auto' behavior. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D37158

--HG--
extra : moz-landing-system : lando
2019-07-08 12:13:28 +00:00
Jonathan Kew
e5f479f588 Bug 1421938 - Add an 'auto' value for the CSS 'quotes' property, and make it use language-dependent quote marks. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D36429

--HG--
extra : moz-landing-system : lando
2019-07-08 12:13:28 +00:00