Commit Graph

708105 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
f0953195ce Bug 1636998 - Make ::-moz-focus-outer a no-op, and remove it on Nightly. r=jwatt
See https://bugzilla.mozilla.org/show_bug.cgi?id=932410#c2 for the
context for which this pseudo-element was added.

In the previous patch, I had to special-case range appearance because of
this pseudo-class, but that patch makes this pseudo-class completely
redundant, as now all form controls, themed and unthemed, display
outlines, unless the native theme displays a focus indicator on its own.

Remove the special case, and make ranges use outlines like everything
else rather than this bespoke pseudo-element.

Differential Revision: https://phabricator.services.mozilla.com/D74734
2020-05-18 10:54:16 +00:00
Emilio Cobos Álvarez
78e77439c9 Bug 1637459 - Make nsXULElement::HasMenu flush frames. r=tnikkel
The UITour code assumes that it will return the up-to-date value, which
doesn't happen with lazy frame construction.

This is used sparingly in the front end code, so it doesn't quite
warrant more optimization.

Differential Revision: https://phabricator.services.mozilla.com/D75710
2020-05-18 10:43:23 +00:00
Xidorn Quan
583e647fb1 Bug 1638263 - Full screen window after getting focus in test_bug665540. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D75662
2020-05-18 10:10:35 +00:00
Magnus Melin
96a75d8f03 Bug 1638288 - don't use nsIPrincipal->GetURI for Thunderbird. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75535
2020-05-18 09:23:25 +00:00
James Graham
0a67e9982c Bug 1636118 - Use agressive prefetch in mixed-content tests, r=smaug
This makes the tests which expect link rel=prefetch to always occur pass

Differential Revision: https://phabricator.services.mozilla.com/D75500
2020-05-18 11:04:55 +00:00
Emilio Cobos Álvarez
16af962c7e Bug 1638127 - Make Linux focus ring behavior match Windows, rather than Mac. r=karlt
The Mac focus model is a bit different (mouse doesn't focus form
controls for example).

This matches GTK3 to my knowledge, where outlines are not shown until
you've navigated with the keyboard.

We should maybe consider changing Android as well (and maybe all
platforms, actually), but that's a bit of a bigger endeavour.

Differential Revision: https://phabricator.services.mozilla.com/D75505
2020-05-18 10:33:14 +00:00
Emilio Cobos Álvarez
550f714f0e Bug 1638127 - Make focus rings not always shown on Linux. r=stransky
This makes us closer to the GTK behavior (not showing outlines until
we've navigated with the keyboard).

Differential Revision: https://phabricator.services.mozilla.com/D75501
2020-05-18 10:33:14 +00:00
Timothy Nikkel
c3fc615ca6 Bug 1636911. Add mochitest. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D75665
2020-05-18 10:26:28 +00:00
Timothy Nikkel
c910c877a9 Bug 1636911. In ScrollFrameHelper::RestrictToRootDisplayPort don't adjust the root display port by the root scroll frame apz callback transform because it already factors that in. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D75526
2020-05-18 10:26:16 +00:00
Mihai Alexandru Michis
19a4744fcc Backed out 2 changesets (bug 1620679) for causing failures in nsDocShell.cpp
CLOSED TREE

Backed out changeset 2957142243c5 (bug 1620679)
Backed out changeset 60df74b03f34 (bug 1620679)
2020-05-18 14:47:37 +03:00
Csoregi Natalia
88ab085eff Backed out 5 changesets (bug 1624269) for browser-chrome failures on browser_storageAccessWithHeuristics.js. CLOSED TREE
Backed out changeset 59cdba115447 (bug 1624269)
Backed out changeset 23b5c53f4be8 (bug 1624269)
Backed out changeset be697a5bc0fd (bug 1624269)
Backed out changeset 81420bca683c (bug 1624269)
Backed out changeset 599db5acefe1 (bug 1624269)
2020-05-18 13:59:44 +03:00
Csoregi Natalia
2cafee9690 Backed out changeset 5358bc2ae595 (bug 1637873) for assertion failures on RenderThread.cpp. CLOSED TREE 2020-05-18 13:57:55 +03:00
Csoregi Natalia
08fa2d05ed Backed out 2 changesets (bug 1546394) for devtools failures with getBlockedUrls. CLOSED TREE
Backed out changeset 0365ee129bc0 (bug 1546394)
Backed out changeset 1b05fad0314a (bug 1546394)
2020-05-18 13:33:42 +03:00
Csoregi Natalia
f6ee95862e Backed out changeset 62ad26fbfaf8 (bug 1636998) for reftest failures on 1174332-1.html. CLOSED TREE 2020-05-18 13:31:56 +03:00
Csoregi Natalia
5162f86676 Backed out 2 changesets (bug 1613609) for failures on nsXPConnect.cpp. CLOSED TREE
Backed out changeset c593a7296df4 (bug 1613609)
Backed out changeset 72199fc4ea2b (bug 1613609)
2020-05-18 13:05:12 +03:00
Sebastian Hengst
cd6b71e9a0 Bug 1637813 - Set move secure-contexts wpt tests as passing with fission. r=ckerschb DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D75598
2020-05-18 09:33:23 +00:00
Frederik Braun
7bb9748003 Bug 1613609 - prototype patch with whitelist for sysrequest r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75064
2020-05-18 09:19:28 +00:00
Frederik Braun
3b0d63cd07 Bug 1613609 - Add required loadinfo flag requests initiated with SystemPrincipal r=necko-reviewers,dragana
Adding the flag to existing channel/loadinfo object for:
- PushServices HTTP, WebSocket
- NetworkGeolocationProvider
- NetUtil.jsm's NewChannel
- NetworkConnectivityService
- OCSP
- Portal Detection
- ProductAddonChecker.jsm
- URLClassifier

Differential Revision: https://phabricator.services.mozilla.com/D75063
2020-05-18 09:19:17 +00:00
Matt Woodrow
a8977d6e64 Bug 1620679 - Use web progress listener for detecting load end in reftest-content.js. r=kmag,tnikkel
The previous patch stops us from firing the load event if we abort a load. We have a few crashtests that abort loads (either by directly calling stop(), or by starting a new navigation before load completes).

This switches the reftest harness to use web progress to determine when we've finished loading a test.

Differential Revision: https://phabricator.services.mozilla.com/D73995
2020-05-18 07:30:27 +00:00
Matt Woodrow
2f95a6ac80 Bug 1620679 - Don't fire load event from within Stop(). r=smaug
This matches what the spec says, and what blink does.

Differential Revision: https://phabricator.services.mozilla.com/D73994
2020-05-18 07:30:14 +00:00
Dimi Lee
1fdb9a573f Bug 1624269 - P5. Testcase r=timhuang,baku
Differential Revision: https://phabricator.services.mozilla.com/D74322
2020-05-18 09:10:16 +00:00
Dimi Lee
76cd40637d Bug 1624269 - P4. Not using permission manager to sync HasStorageAccess. r=timhuang,baku
We already have an architecture to sync the storage access granted
result to all 3rd-party frames with the same tracking origin.
We use the same way to sync HasStorageAccess flag instead of relying
on permission manager update permissions to child processes.

Differential Revision: https://phabricator.services.mozilla.com/D73711
2020-05-18 09:14:09 +00:00
Dimi Lee
1f96287d53 Bug 1624269 - P3. Inform all the windows whose storage permission is granted. r=timhuang,baku
Before this patch, we only call StorageAccessGranted on windows that
triggers the storage heuristics. So even if we sync storage permission to the
other frames, their data will not be refreshed. For example, if a document
has a worker, we don't propagate the permission to the worker.

In this patch, we call ::StorageAccessGranted as long as we update
the window's storage permission.

Differential Revision: https://phabricator.services.mozilla.com/D74321
2020-05-18 09:09:57 +00:00
Dimi Lee
6960df4b88 Bug 1624269 - P2. Cache access granted result in the 3rd-party window instead of top-level window in fission mode. r=timhuang,baku
Before this patch, in non-fission mode, we cache storage access granted result
in the top-level window so we don't have to iterate all the browsing contexts
in the same tree while syncing the storage permission granted decision.

However, since we plan to rely on the current update mechanism to sync
mHasStorageAccess flag for different documents in the same tab (instead of using
the syncing mechanism of permission manager), we will eventually need to iterate
the browsing context tree to find all the documents to sync. Base on this,
we no longer have to maintain different method for fission and non-fission.

In this patch, we store the permission granted result in the inner
window instead of using permission key and store the key in the top-level
window.

Differential Revision: https://phabricator.services.mozilla.com/D73710
2020-05-18 09:14:09 +00:00
Dimi Lee
46dc387c8a Bug 1624269 - P1. Only get CookieBehavior once r=timhuang,baku
CookieBehavior should be the same for all the frames in the same tab,
we don't have to get its value for every browsing context in the same
browsing context tree.

Differential Revision: https://phabricator.services.mozilla.com/D73709
2020-05-18 09:09:37 +00:00
Samarjeet
e4cce8b4ad Bug 1546394: Netmonitor load blockedurls r=nchevobbe,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D72669
2020-05-18 09:10:09 +00:00
Samarjeet
bf742a9699 Bug 1546394 Adds :block <url> command similar to netmonitor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D69803
2020-05-15 10:58:38 +00:00
Thomas Duellmann
5123bc5ab2 Bug 1638576 - Correct spelling of "deprecated" (follow-up to bug 1611160). r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D75714
2020-05-17 20:20:38 +00:00
Emilio Cobos Álvarez
36b46408b8 Bug 1636998 - Make ::-moz-focus-outer a no-op, and remove it on Nightly. r=jwatt
See https://bugzilla.mozilla.org/show_bug.cgi?id=932410#c2 for the
context for which this pseudo-element was added.

In the previous patch, I had to special-case range appearance because of
this pseudo-class, but that patch makes this pseudo-class completely
redundant, as now all form controls, themed and unthemed, display
outlines, unless the native theme displays a focus indicator on its own.

Remove the special case, and make ranges use outlines like everything
else rather than this bespoke pseudo-element.

Differential Revision: https://phabricator.services.mozilla.com/D74734
2020-05-18 07:59:32 +00:00
Nicolas Chevobbe
5a8027aef4 Bug 1631775 - Make the structure of cached messages the same as live ones. r=Honza.
There was no benefit of having cached messages being different from the "live" ones,
so in this patch we make the message packet consistent.
A few tests had to be modified, and we still handle old-style cached
messages for backward compatibility.

Differential Revision: https://phabricator.services.mozilla.com/D75089
2020-05-18 07:32:02 +00:00
Nicolas Chevobbe
7893beb674 Bug 1637969 - Fix React key error in Error rep. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D75304
2020-05-18 07:19:55 +00:00
Lars T Hansen
86333056c4 Bug 1637328 - Make stack copies in stubs handle v128 data. r=rhunt
We can't MOZ_CRASH for the v128 cases of the stack copies in
SetupABIArguments and StackCopy.  In the former case we can emit a
breakpoint instruction because the code should never be executed.  In
the latter case we just copy the data.

Adds test cases that triggered the MOZ_CRASHes, and other test cases
that are related but left out of the test cases when SIMD for baseline
first landed.

Differential Revision: https://phabricator.services.mozilla.com/D74934
2020-05-18 08:41:42 +00:00
Martin Stransky
9b1a136632 Bug 1637992 [Linux] Remove gtk2xtbin as it's not used, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D75323
2020-05-18 08:12:16 +00:00
sotaro
43b78a9781 Bug 1637873 - Destroy RenderTextureHost in TextureHost::Finalize() r=nical
RenderTextureHost is destroyed in WebRenderTextureHost::~WebRenderTextureHost() on current gecko. But It is better to destroy it by TextureHost that created the RenderTextureHost. GPUVideoTextureHost is an exception for now.

And it is a preparation for Bug 1636868.

Differential Revision: https://phabricator.services.mozilla.com/D75255
2020-05-18 08:25:36 +00:00
Daisuke Akatsuka
af95b72695 Bug 1637561: Introduce dictionary argument to 'watch' function. r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D75482
2020-05-18 08:31:30 +00:00
sotaro
8cdc3c8f18 Bug 1638742 - Remove unnecessary mFeatureWrPartial->UserEnable(Enabled) call r=nical
Since Bug 1625474 fix, it is not necessary anymore.

Differential Revision: https://phabricator.services.mozilla.com/D75738
2020-05-18 08:25:00 +00:00
Dão Gottwald
7dcb084be3 Bug 1636968 - Stop focusing the view-source content window on load. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D75071
2020-05-18 07:23:54 +00:00
Simon Giesecke
35ff93b006 Bug 1638151 - Add support for nullable sequence types in Event classes. r=fabrice
Differential Revision: https://phabricator.services.mozilla.com/D75491
2020-05-15 18:33:45 +00:00
Noemi Erli
5e76ba7334 Backed out 2 changesets (bug 1636911) for mochitest failures in test_group_checkerboarding.html CLOSED TREE
Backed out changeset 37e68bff6c62 (bug 1636911)
Backed out changeset 74a83c249231 (bug 1636911)
2020-05-18 11:03:18 +03:00
Botond Ballo
c66f677427 Bug 1638655 - When hit testing in layout coordinates, transform the composition bounds clip to layout coordinates. r=tnikkel
Previously, we were only performing part of this transform
(scaling by the resolution) and not the other part
(translating by the offset between the two viewports).

Differential Revision: https://phabricator.services.mozilla.com/D75739
2020-05-18 06:53:35 +00:00
Eden Chuang
86a73dc9a7 Bug 1631618 - Make SharedWorkerService be alive until shutdown r=dom-workers-and-storage-reviewers,asuth
Using StaticRefPtr instead of a raw pointer for sSharedWorkerService in SharedWorkerService.cpp, and keeping sSharedWorkerService be alive until shutdown by registering sSharedWorkerService to ClearOnShutdown.

Since sSharedWorkerService is not raw pointer anymore, SharedWorkerService needs not to inherit from SupportsCheckedUnsafePtr<CheckIf<DiagnosticAssertEnabled>>

Differential Revision: https://phabricator.services.mozilla.com/D72379
2020-05-15 13:49:39 +00:00
Jan de Mooij
26b5e252bc Bug 1637946 - Fold MUnbox(MBox(x), Double) to MToDouble if possible. r=evilpie
This pattern is very common in MIR transpiled from CacheIR.

Differential Revision: https://phabricator.services.mozilla.com/D75296
2020-05-18 07:32:49 +00:00
Mihai Alexandru Michis
f762733bac Backed out 2 changesets (bug 651482) for causing bitmap reftest failures.
CLOSED TREE

Backed out changeset 734c4f395eba (bug 651482)
Backed out changeset d8cc480c563c (bug 651482)
2020-05-18 10:31:53 +03:00
Hubert Boma Manilla
e33974fa12 Bug 1636769 - Make sure code mirror instance exists for the update r=Honza
Lets mke sure the code mirror instance exists before trying to update the
 mode or the text

Differential Revision: https://phabricator.services.mozilla.com/D75677
2020-05-18 07:04:30 +00:00
Masayuki Nakano
c7249ef506 Bug 1637856 - part 2: Get rid of WSRunScanner::mNodeArray r=m_kato
`WSRunScanner` scans around given point in `GetWSNodes()` at construction with
using `HTMLEditUtils` methods and caches editable text nodes between
`mStartReasonContent` and `mEndReasonContent`.  However, it's used only by
`GetNextCharPoint()` and `GetPreviousCharPoint()`, and they shouldn't be
referred after changing the DOM tree.  Therefore, we can scan it directly
only when it needs to scan.

The patch rewrites `GetNextCharPoint()` and `GetPreviousCharPoint()` without
`mNodeArray` and removes `mNodeArray` from its member.  This may increase the
cost of scanning next/previous text node, but improves the scan performance
when it does not treat so wide range and they are called with a point whose
container is not a text node.

This patch unexpectedly changes the behavior of them, that causes the fix of
2 failures in `insertlinebreak.html` and `insertparagraph.html`.  According to
debugger, previously GetNextCharPoint()` in
`ScanNextVisibleNodeOrBlockBoundaryFrom()` called point at `<br>` element
returned no next char, then, `ScanNextVisibleNodeOrBlockBoundaryFrom()` returned
end point which is block boundary of `<listing>` element (it is legacy HTML2
element and treated as `<pre>` element internally).  Therefore, the inserted
`<br>` element was misunderstood as invisible `<br>` at end of a block and
inserted another `<br>` element for making it visible.  However, the redesigned
one fixed this bug with searching correct text node.  Therefore, I cannot
keep the buggy behavior in the new designed methods.

Depends on D75470

Differential Revision: https://phabricator.services.mozilla.com/D75471
2020-05-18 06:46:00 +00:00
Masayuki Nakano
714518769f Bug 1637856 - part 1: Move WSRunObject::DeleteRange() to HTMLEditor r=m_kato
`WSRunObject::DeleteRange()` removes only text nodes which are stored when
`WSRunObject` is created.  Although it removes text nodes if it's removed,
this patch does not take care about it in the new method.  The reason is
the following patch will remove `mNodeArray` and anyway DOM tree modifiers
can check whether they are in proper position before access if it's needed.

Differential Revision: https://phabricator.services.mozilla.com/D75470
2020-05-18 05:12:16 +00:00
wesj
465e7d393b Bug 651482 - Update documentation. r=tnikkel
Depends on D75467

Differential Revision: https://phabricator.services.mozilla.com/D75703
2020-05-18 06:15:25 +00:00
wesj
85450013c7 Bug 651482 - Allow decoding bitmaps with 52 and 56 byte info headers. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D75467
2020-05-18 06:41:28 +00:00
Timothy Nikkel
be0074a4d3 Bug 1636911. Add mochitest. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D75665
2020-05-18 06:32:34 +00:00
Timothy Nikkel
f4338779c4 Bug 1636911. In ScrollFrameHelper::RestrictToRootDisplayPort don't adjust the root display port by the root scroll frame apz callback transform because it already factors that in. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D75526
2020-05-18 06:32:34 +00:00