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

706589 Коммитов

Автор SHA1 Сообщение Дата
Gian-Carlo Pascutto b37cb7e592 Bug 1455498 - Whitelist directories passed in LD_LIBRARY_PATH. r=jld
Differential Revision: https://phabricator.services.mozilla.com/D70554
2020-05-07 15:40:42 +00:00
Sylvestre Ledru 5cea4f4d3c Bug 1635826 - Fix mozlint codespell. r=fix CLOSED TREE 2020-05-08 14:39:10 +03:00
Jan de Mooij 9ade539b4a Bug 1635717 follow-up - Don't try to snapshot JSOp::InitElemArray. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D74373
2020-05-08 09:19:55 +00:00
Sylvestre Ledru 135afb8ea4 Bug 1635826 - docs: Override some default values in the table to improve the rendering r=marco,ahal
Ride along: document the other changes

Differential Revision: https://phabricator.services.mozilla.com/D74275
2020-05-08 11:10:29 +00:00
Sylvestre Ledru 4d135ea624 Bug 1635826 - Document all platforms, who" owns" it and why we run it r=marco
Differential Revision: https://phabricator.services.mozilla.com/D74116
2020-05-08 11:20:43 +00:00
Jan Varga 6caab074de Bug 1624802 - Refactor tests in dom/quota/test; r=dom-workers-and-storage-reviewers,ttung
The refactoring consists of:
- moving tests into dedicated directories for given test type
  (browser, mochitest, xpcshell)
- replacing add_test with addTest in browser tests to share common setup code
- adding a way to synchronously load scripts in all test types by providing a
  path relative to the top level directory
- adding a way to explicitely run a mochitest inside a worker context
  (loadWorkerScript)
- removing the need to declare testGenerator in tests
- removing the need to set some common preferences in individual tests
- sharing common functions for:
  - system context (system.js)
  - content context (content.js)
  - browser tests (browser.js)
  - mochitest tests (mochitest.js)
  - xpcshell tests (xpcshell.js)
  - nested content test inside a browser test (nestedtest.js)
  - buffer/view/blob/file (file.js)

Differential Revision: https://phabricator.services.mozilla.com/D73149
2020-05-08 09:49:52 +00:00
Lee Salzman d94331c3ca Bug 1635661 - lower interpolant usage in SWGL. r=jrmuizel
Depends on D74000

Differential Revision: https://phabricator.services.mozilla.com/D74001
2020-05-07 03:45:28 +00:00
Lee Salzman fbab072082 Bug 1635661 - store WR YUV shader layers in flat varying to reduce interpolant usage. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D74000
2020-05-07 04:09:40 +00:00
Lee Salzman c864b9fc4f Bug 1635649 - optimize texture(sampler2DArray) for same layer in SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D73993
2020-05-07 04:08:41 +00:00
Lee Salzman f4e2895339 Bug 1635616 - shuffling optimizations for SWGL x86 bilinear filtering code. r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D73979
2020-05-08 09:58:23 +00:00
Tom Schuster aee6f9ad93 Bug 1635958 - Remove unused GuardIsNotNullOrUndefined. r=jandem
Depends on D74345

Differential Revision: https://phabricator.services.mozilla.com/D74346
2020-05-08 08:00:45 +00:00
Tom Schuster b142b2123c Bug 1635958 - Warp: Transpile LoadBooleanResult. r=jandem
Depends on D74344

Differential Revision: https://phabricator.services.mozilla.com/D74345
2020-05-08 07:58:30 +00:00
Tom Schuster e11d3555f7 Bug 1635958 - Warp: Transpile GuardIsNullOrUndefined. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D74344
2020-05-08 08:05:38 +00:00
Mihai Alexandru Michis 4b10161251 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2020-05-08 12:38:33 +03:00
Mihai Alexandru Michis e9131060a0 Merge autoland to mozilla-central. a=merge 2020-05-08 12:34:44 +03:00
Emma Humphries 90110c694f Bug 1635654 - Update in-tree docs for new triage process. r=sylvestre
This changeset covers the new, severity-based triage process

Fix linting errors

Fix links and language

Fix headings and broken link

Add missing newline to labels.rst

Differential Revision: https://phabricator.services.mozilla.com/D73999
2020-05-08 09:28:35 +00:00
Jonathan Kew f7f1b28b77 Bug 1634670 - Fonts bundled with the application should be treated as part of the base font set, not as user-installed fonts. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D73437
2020-05-08 09:25:37 +00:00
Masayuki Nakano 5f4a29365e Bug 1627175 - part 14: Create `HTMLEditUtils::GetLastLeafChild()` instead of `EditorBase::GetRightmostChild()` r=m_kato
Depends on D74204

Differential Revision: https://phabricator.services.mozilla.com/D74361
2020-05-08 04:18:54 +00:00
Andreea Pavel dbd1462996 Backed out changeset b76e3e988fdd (bug 1577110) for breaking geckodriver signin toolchains a=backout 2020-05-08 06:51:23 +03:00
Masayuki Nakano f358298706 Bug 1627175 - part 13: Get rid of `EditorBase::CreateRange()` r=m_kato
It's currently enough simple and there is only one user.  So, we can get rid
of it.

Differential Revision: https://phabricator.services.mozilla.com/D74204
2020-05-08 01:55:53 +00:00
Csoregi Natalia 8ff8af6a82 Backed out changeset 892ab673d138 (bug 1599722) for build bustage on MoveResolver.h:. CLOSED TREE 2020-05-08 12:07:27 +03:00
Jonathan Kew c4e8c700da Bug 1634677 - patch 3 - Collect telemetry for cases where platform font fallback wanted to use a font that is blocked from visibility to CSS. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D74043
2020-05-08 08:58:08 +00:00
Masayuki Nakano 8c3ba237c6 Bug 503838 - part 1: Remove following `<br>` element for empty line when it becomes unnecessary with inserting text r=m_kato
`HTMLEditor` does not remove padding `<br>` element for last empty line when
it becomes unnecessary.

This patch removes it when inserting some text into a text node and it's
followed by a padding <br> element.

Differential Revision: https://phabricator.services.mozilla.com/D74203
2020-05-08 01:55:31 +00:00
Emilio Cobos Álvarez 12644d52bc Bug 1634569 - Remove hackaround for bug that can no longer happen. r=masayuki
This seems to come from bug 618907, which seems to be a hack-around code
that went away in bug 1595435.

If we open a window on mousedown such as it gains focus before this code
runs, we just steal the focus from it, which is undesired.

Also remove the test for bug 799299. It doesn't work anyways if the
browser is remote (this test only runs on non-e10s mode), and this
unifies the behavior with e10s and with content (see attached test-case,
which doesn't change behavior with and without my patch).

Differential Revision: https://phabricator.services.mozilla.com/D73901
2020-05-08 03:57:23 +00:00
Gerald Squelart 4e88697b5d Bug 1632750 - Tweak about:profiling default buffer sizes - r=gregtatum
Presets used 16Mi entries (128MiB) by default, but these numbers were a limit per process.
Now that the limit is for the whole Firefox app, we would record a lot less information, because there are typically around 8 or more processes.
So the default are now 8 times larger to roughly record a similar amount of profiling data.

Also the custom buffer maximum size has been increased from 1GiB to 2GiB.

Differential Revision: https://phabricator.services.mozilla.com/D73216
2020-05-08 03:36:33 +00:00
Gerald Squelart 3b34acf6e6 Bug 1632750 - Tweak MOZ_PROFILER_STARTUP_ENTRIES default values - r=canaltinova
These defaults were per process and there are usually around 8 processes.
Now these sizes apply to all processes, so they can be 8 times as big (but less on Android where memory may be more limited.)

Not changing Base Profiler defaults, as its buffer is not cross-process controlled.

Differential Revision: https://phabricator.services.mozilla.com/D73215
2020-05-08 03:36:10 +00:00
Gerald Squelart 668492b4ef Bug 1632750 - Recycle chunks that are destroyed through DestroyChunksAtOrBefore or the local limit - r=canaltinova
Whenever chunks are about to be destroyed, we try to keep one or two alive, to hopefully fulfill the next request, thereby avoiding a deallocation+allocation pair.

Differential Revision: https://phabricator.services.mozilla.com/D72370
2020-05-08 03:35:57 +00:00
Gerald Squelart a36880438c Bug 1632750 - ProfilerChild handling update and destruction requests - r=canaltinova
This implement the child side:
When the first request for update arrives, it connects to the local chunk manager, to receive its updates.
If multiple updates are received, they are folded into one.
If there are both an update and a pending request, the request is fulfilled with the update and local data is reset.
And ProfilerChild handles "destroy" instructions to destroy local chunks.

At this point, the whole machinery is in place, and all combined profile buffers used in all processes should use around the maximum amount allowed.
A bit more memory may still be used, e.g., due to IPC delays, and because of recycling which keeps some unused chunks alive for later reuse. But overall that should be a small amount compared to the usual user-requested limit.

Differential Revision: https://phabricator.services.mozilla.com/D72369
2020-05-08 03:35:42 +00:00
Gerald Squelart 9456ec87dd Bug 1632750 - ProfileBufferGlobalController::HandleChunkManagerUpdate logic - r=canaltinova
The logic part of the controller receives all updates, and makes decisions to destroy old chunks when the memory limit is reached.

Differential Revision: https://phabricator.services.mozilla.com/D72368
2020-05-08 03:35:25 +00:00
Gerald Squelart 80fd31a8c3 Bug 1632750 - ProfileBufferGlobalController - r=canaltinova
When there is at least one ProfilerParent (i.e., we are interacting with at least one child process) AND the parent profiler is running, the ProfilerParentTracker sets up the ProfileBufferGlobalController that will manage all chunks.
As a first step, it connects with the local chunk manager (to receive chunk updates), and sends update requests to all children.

(The actual controller logic is not implemented in this patch, nor is the ProfilerChild side, see following patches.)

Differential Revision: https://phabricator.services.mozilla.com/D72367
2020-05-08 03:35:12 +00:00
Gerald Squelart 811ee56c78 Bug 1632750 - New profiler IPDL functions to manage chunks across processes - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D72366
2020-05-08 03:34:55 +00:00
Gerald Squelart ddf7f185a4 Bug 1632750 - ProfilerParent::ProfilerWillStopIfStarted - r=canaltinova
The Gecko Profiler can notify the ProfilerParent when it's about to stop (if it was started, but the notification will happen even when it's not started).

Differential Revision: https://phabricator.services.mozilla.com/D72365
2020-05-08 03:34:32 +00:00
Gerald Squelart f1439fbad0 Bug 1632750 - profiler_get_controlled_chunk_manager - r=canaltinova
The Gecko Profiler can provide its current controlled chunk manager.
It is the responsibility of the caller to keep track of the state of the profiler, to avoid using the chunk manager after it's discarded.

Differential Revision: https://phabricator.services.mozilla.com/D72364
2020-05-08 03:34:30 +00:00
Gerald Squelart 3292ac76d9 Bug 1632750 - Make ProfileBufferChunkManagerWithLocalLimit a ProfileBufferControlledChunkManager - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D72363
2020-05-08 03:34:28 +00:00
Gerald Squelart 2cf1bef331 Bug 1632750 - ProfileBufferChunkManagerWithLocalLimit doesn't need to track chunk metadata sizes - r=canaltinova
The chunk metadata size is tiny (less than 100 bytes) compared to the buffer size (1MB by default), so it's fine to ignore it while dealing with cross-Firefox limits.

Differential Revision: https://phabricator.services.mozilla.com/D72558
2020-05-08 03:33:29 +00:00
Gerald Squelart a09a699a12 Bug 1632750 - ProfileBufferControlledChunkManager - r=canaltinova
Interface class for a chunk manager that can be controlled: It will provide updates about chunks, and release chunks on command.

Differential Revision: https://phabricator.services.mozilla.com/D72362
2020-05-08 03:44:34 +00:00
Emilio Cobos Álvarez e3519d3aa1 Bug 1636226 - Flush frames in nsFrameLoader::SwapWithOtherLoader. r=mattwoodrow
This fixes various tab-dragging tests with LazyFC enabled.

Depends on D74280

Differential Revision: https://phabricator.services.mozilla.com/D74281
2020-05-08 03:21:24 +00:00
Dan Glastonbury d35dd7a81d Bug 1624550 - P5: Fix racy check for SessionHistory update. r=kmag
This code was relying on SessionHistory update having completed when
GlobalHistory is update. Moving GlobalHistory update to the parent process with
DocumentChannel means that it's possible for the GlobalHistory event to fire
before the SessionHistory is updated in nsDocShell.

Switch to using tab loading complete to signal when it's OK to check
SessionHistory.

Differential Revision: https://phabricator.services.mozilla.com/D72280
2020-05-08 03:28:46 +00:00
Dan Glastonbury 7699520bf5 Bug 1624550 - P4: Cleanup APIs for setting BrowsingContext::UseGlobalHistory. r=farre
This value is determined in Parent process and passed down to nsDocShell. Delete
the messages to pass the setting down and set it on the BrowsingContext in the
Parent process.

Refactor the code that determines to opt-out of using global history. Code
inspection determines that windowless browsing contexts want to opt-out as well
as any frame with `disableglobalhistory` attribute set on it.

Differential Revision: https://phabricator.services.mozilla.com/D72279
2020-05-08 03:28:44 +00:00
Dan Glastonbury 39c9e7dd94 Bug 1624550 - P3: Update Global History from DocumentLoadListener in Parent process. r=mak,farre,mattwoodrow
Avoid round-trip Parent->Content->Parent to add visited URI to browsing history.

Differential Revision: https://phabricator.services.mozilla.com/D72278
2020-05-08 03:28:42 +00:00
Dan Glastonbury e46c2905db Bug 1624550 - P2: Extract AddURIVisit internals into a helper. r=mak,farre
For use by both nsDocShell and DocumentLoadListener.

Differential Revision: https://phabricator.services.mozilla.com/D72277
2020-05-08 03:28:40 +00:00
Dan Glastonbury 63cf313ca2 Bug 1624550 - P1: Move nsDocShell::mUseGlobalHistory to BrowsingContext. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D72276
2020-05-08 03:28:38 +00:00
Matt Woodrow 3d6e4f24c6 Bug 1635995 - Allow CSP service to do redirect checks on documents in the parent, rather than doing it manually. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D74170
2020-05-08 02:53:57 +00:00
Matt Woodrow 66e1e333d1 Bug 1635992 - Use LoadInfo and WindowContext in nsMixedContentBlocker instead of the docshell and Document. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D74169
2020-05-08 02:53:44 +00:00
Matt Woodrow fce5746949 Bug 1635992 - Pass LoadInfo into nsMixedContentBlocker::ShouldLoad. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D74168
2020-05-08 02:53:42 +00:00
Nika Layzell 050e87dc2c Bug 1631332 - Block attempts to open windows from remote tabs without useRemoteTabs, r=kmag
This is an initial step. In the future it may be nice to avoid loading remote
tabs within windows without `useRemoteTabs` in general.

Differential Revision: https://phabricator.services.mozilla.com/D72936
2020-05-08 02:36:17 +00:00
Daniel Holbert 481774503b Bug 1635941 followup: Drop some more debugging printfs. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D74342
2020-05-07 23:13:51 +00:00
Bianca Danforth b8f42de998 Bug 1634819 - Existence check element.parentElement and element.previousElementSibling in new password heuristics; r=MattN
The element.parentNode.nodeName approach also handled the error, but when I ran the updated model through the training, validation and testing samples, our false positive rate (FPR) went up from 2.2% to 4.5% (referencing the most recent update to NewPasswordModel.jsm in bug 1629132) with a confidence threshold of 0.75. Unfortunately, that is well above our target FPR of 2-3%.
* I am not surprised by this difference: the diff I had tested with `parentNode.nodeName` replaced `parentElement` with `parentNode` and `tagName` with `nodeName` everywhere in this rule. Since `Node.ELEMENT_NODE` is only one of [several other `Node.nodeType`](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType)'s, I can imagine that for some of the sites in the corpus, `element.parentElement` was not the same node as `element.parentNode`. Therefore the downstream return value could also be different; i.e. the modified rule may then return `false` instead of `true` or vice versa for some or all of these affected pages, and the model would consequently reach a different (and potentially worse) optimization.

Returning `false` for this rule in these cases will leave the model's performance unchanged on pages that don't use the Shadow DOM at all or in this specific way.

Also add some existence checks further downstream in the same rule where the values could also be `null`.

Differential Revision: https://phabricator.services.mozilla.com/D74164
2020-05-07 23:12:47 +00:00
Jonathan Watt c6c74ac1f0 Bug 1636304. Fix and improve the Mermaid documentation. r=sylvestre
The second example, when copied and pasted, is completely borked since it
is not preceeded by the line that declares what follows to be a Mermaid
diagram. This change fixes that.

It also fixes the prose to read slightly less awkwardly in places.

Finally, this change also adds a link to the Mermaid Live Editor to make
readers aware of this useful tool.

Differential Revision: https://phabricator.services.mozilla.com/D74338
2020-05-07 23:16:00 +00:00
sefeng aa92a33fcc Bug 1636142 - Make DOM Arena is only enabled in early beta r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D74245
2020-05-07 23:14:42 +00:00