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

674935 Коммитов

Автор SHA1 Сообщение Дата
Tim Huang 5f19bcd57a Bug 1586722 - Making the test 'browser/components/originattributes/test/browser/browser_firstPartyIsolation_about_newtab.js' working in Fission. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D48844

--HG--
extra : moz-landing-system : lando
2019-10-11 15:51:43 +00:00
Jan de Mooij e731ad55df Bug 1586991 part 8 - Change CloneString to take a JSLinearString instead of JSFlatString. r=jwalden
Depends on D48492

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

--HG--
extra : moz-landing-system : lando
2019-10-10 23:29:42 +00:00
Jan de Mooij 75d81533bf Bug 1586991 part 7 - Use a linear string instead of flat string in WasmModuleObject::customSections. r=jwalden
Depends on D48491

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

--HG--
extra : moz-landing-system : lando
2019-10-10 23:28:05 +00:00
Jan de Mooij 3105ec56a0 Bug 1586991 part 6 - Return JSLinearString instead of JSFlatString from ScriptSource::substring et al. r=jwalden
Depends on D48490

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

--HG--
extra : moz-landing-system : lando
2019-10-10 23:27:27 +00:00
Jan de Mooij 0232b50fd7 Bug 1586991 part 5 - Remove an unnecessary ensureFlat call in ErrorObject::getOrCreateErrorReport. r=jwalden
Depends on D48489

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

--HG--
extra : moz-landing-system : lando
2019-10-14 11:38:59 +00:00
Jan de Mooij f6394fbb0b Bug 1586991 part 3 - Use JSLinearString instead of JSFlatString in some jsapi-tests. r=jwalden
Depends on D48487

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

--HG--
extra : moz-landing-system : lando
2019-10-14 11:38:59 +00:00
Jan de Mooij 21a098ad88 Bug 1586991 part 2 - Don't require a flat string in CopyStringToVector. r=jwalden
Depends on D48486

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

--HG--
extra : moz-landing-system : lando
2019-10-10 23:14:05 +00:00
Jan de Mooij b972bd03d2 Bug 1586991 part 1 - Stop relying on null-terminated strings in wasm::TextToBinary. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D48486

--HG--
extra : moz-landing-system : lando
2019-10-08 16:32:05 +00:00
Jon Coppeard 119484e777 Bug 1588300 - Remove other unnecessary uses of GCInternals.h r=allstarschh
Depends on D49113

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

--HG--
extra : moz-landing-system : lando
2019-10-14 11:16:14 +00:00
Jon Coppeard 4b014e3c94 Bug 1588300 - Move AutoSuppressNurseryCellAlloc to JSContext.h r=allstarschh
Depends on D49112

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

--HG--
extra : moz-landing-system : lando
2019-10-14 11:15:56 +00:00
Jon Coppeard ddf6963ea5 Bug 1588300 - Add an API to trace roots without evicting the nursery first r=allstarschh
Depends on D49111

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

--HG--
extra : moz-landing-system : lando
2019-10-14 11:15:53 +00:00
Jon Coppeard 760c3aea6d Bug 1588300 - Use IterateScripts API when generating code coverage data r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D49111

--HG--
extra : moz-landing-system : lando
2019-10-14 10:12:23 +00:00
James Teh a19c705a8b Bug 1585907 part 3: Announce when Reader View is available for screen reader users. r=Gijs,fluent-reviewers
While the availability of Reader View is somewhat noticeable visually, a screen reader user won't be aware of this unless they explicitly explore the toolbar.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 10:32:45 +00:00
James Teh af76f6473c Bug 1585907 part 2: Allow A11yUtils.announce to take a Fluent id. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D49096

--HG--
extra : moz-landing-system : lando
2019-10-14 10:31:26 +00:00
James Teh eb04b6c810 Bug 1585907 part 1: Remove exposure of the "reader" accessibility object attribute. r=Gijs
This reverts bug 1425541.
This was intended to make it easy for accessibility clients to retrieve the Reader View state programmatically.
However, it was never actually used by any clients.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 03:08:08 +00:00
ffxbld 57097044ef No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=sfraser
Differential Revision: https://phabricator.services.mozilla.com/D49123

--HG--
extra : moz-landing-system : lando
2019-10-14 10:25:40 +00:00
Jan de Mooij 6febd292ea Bug 1586683 - Remove flat strings from JSAPI. r=jwalden,bzbarsky
We want to remove flat strings (JSFlatString). With this patch we only expose
linear strings (JSLinearString) to API consumers.

This is very mechanical for the most part, because code typically only cares
about linear strings and not the null-termination aspect.

CTypes's Library.cpp has some Windows-specific code where we relied on null-terminated
strings. This patch adds JS_CopyStringCharsZ for that use case.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 09:32:07 +00:00
Razvan Caliman 05bbb86d41 Bug 1572651 - (Part 3) Add option for highlighters to get node position without scroll offsets. r=pbro
Depends on D47092

Given that the highlighter rendering surface is sized to the viewport of the inspected page (as opposed to the whole document), we need a way to ignore scroll offsets when getting data about the node position so the highlighter doesn't get drawn off-screen.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 21:51:43 +00:00
Razvan Caliman 56cd72319f Bug 1572651 - (Part 2) Split BoxModelHighlighter into observer and renderer parts. r=pbro,jdescottes
NOTE: To use the new box model highlighter, flip this pref to true: `devtools.inspector.use-new-box-model-highlighter`

Adding Julian as reviewer to check the sanity of the communication system (see `BoxModelHiglighterObserver` constructor and `BoxModelHighlighterRenderer.setMessageManager()`, `BoxModelHighlighterRenderer.onMessage()`,  `BoxModelHighlighterRenderer.postMessage()`) and Patrick for the overall highlighter behavior which is mostly a clean split of the existing [`BoxModelHighlighter`](https://searchfox.org/mozilla-central/rev/f43ae7e1c43a4a940b658381157a6ea6c5a185c1/devtools/server/actors/highlighters/box-model.js)).

---

Depends on D47091

## Preamble

This patch looks more frightening than it actually is. Let me explain:

The vast majority of the code in `box-model-highlighter-observer.js` and `box-model-highlighter-renderer.js` is a clean split of the code existing in `box-model-highlighter.js` into distinct parts which handle the node measurement (observer) and the drawing the highlighter (renderer). I kept the method names identical to help in matching them up with their original sources.

There was no simple way chunk this without confusing the daylight out of you so I decided to co-locate all changes so it's easier to track and reference methods.

I will detail below the important differences.


## Overview:

The box model highlighter is split into two distinct parts:
- an observer which monitors the node's position
- a renderer which draws the highlighter on top of the node

The renderer always lives in the parent process (browser window) and overlays an iframe with the highlighter markup:
- either over the content if highlighting in the context of the content toolbox
- or over the whole browser UI if highlighting in the context of the browser toolbox

When in the context of the browser toolbox (i.e. highlighting the browser UI), both observer and renderer live in the parent process. Communication is done by direct calls.

When in the context of the content toolbox (i.e. highlighting the page content), the observer lives in content process (so it can measure the node) while the renderer lives in the parent process. Communication is done by message passing via `MessageManager` (soon to be deprecated and replaced with JSWindowActor API)

## Notable differences after the split

- the observer checks whether it is in the content process (aka child process) and sets up the highlighter in the parent process by using [`setupInParent()`](https://docs.firefox-dev.tools/backend/actor-e10s-handling.html) and establishes a communication system to it via message manager. If the observer is in the parent process (browser toolbox scenario), the renderer is setup directly via its constructor and no additional communication system is required.

- whenever the node quads change (as determined by the untouched existing base class `auto-refresh.js`), the observer gathers the data about the node position and sends it over to the renderer. This happens in the `BoxModelHighlighterObserver._update()` (corresponding to the [`_update()` from the existing highlighter](https://searchfox.org/mozilla-central/rev/45f30e1d19bde27bf07e47a0a5dd0962dd27ba18/devtools/server/actors/highlighters/box-model.js#361-383)).

- the renderer expects its `render()` method to be called with the necessary node position information whenever it should update the highlighter. It is the entry point which then calls all the DOM manipulation methods copied over from the existing box model highlighter.

- the only notable change in DOM manipulation methods is in `BoxModelHighlighterRenderer._updateBoxModel()` (corresponding to [`updateBoxModel()` from the existing highlighter](https://searchfox.org/mozilla-central/rev/45f30e1d19bde27bf07e47a0a5dd0962dd27ba18/devtools/server/actors/highlighters/box-model.js#504-560)) where the `_nodeNeedsHighlighting()` is kept on the observer part and the canvas zoom adjustment is removed  (`this.markup.scaleRootElement(this.currentNode, rootId)`) because the canvas is no longer influenced by the page zoom (the canvas lives in the browser window, not the content window)

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

--HG--
rename : devtools/server/actors/highlighters/box-model.js => devtools/server/actors/highlighters/box-model-renderer.js
extra : moz-landing-system : lando
2019-10-11 12:39:42 +00:00
Razvan Caliman f73ec46600 Bug 1572651 - (Part 1) Add highlighter renderer base class r=jdescottes,pbro,bgrins
**Update October 8**
 To use the new box model highlighter, flip this pref to true:
`devtools.inspector.use-new-box-model-highlighter`

---

Adding Julian as reviewer to check the sanity of the communication system and Patrick for the overall highlighter behavior.

---

This patch adds a base class for the renderer part of highlighters which is set up on the parent process in the browser window.
This is used by the `BoxModelHighlighterRender` introduced by D47092

`HighlighterRenderer.init()` will create an HTML iframe and inject it to the appropriate position in the browser window in order to serve as a rendering surface for highlighters of the inspected page content (content toolbox) or the browser UI (browser toolbox). A host iframe is used until [Bug 1492582](https://bugzilla.mozilla.org/show_bug.cgi?id=1492582) is fixed because the browser window is XUL and does not support the anonymous canvas frame used by existing highlighters.

The primary use case of `HighlighterRenderer` is as a base class for renderers which live in a separate process than the observers. This happens with highlighters for the content toolbox. Therefore, it provides methods to setup a communication system (via MessageManager for now) whereby the observer can send messages to the renderer and vice-versa: `setMessageManager()`, `postMessage()` and `onMessage()`.

I used the existing code from [`AccessibilityParent`](https://searchfox.org/mozilla-central/source/devtools/server/actors/accessibility/accessibility-parent.js) as a reference for this.

Classes that extend HighlighterRenderer must implement:
 - a typeName representing the highlighter type; used to differentiate between other types of messages when the Message Manager is used;
 - a _buildMarkup() method to generate the highlighter markup;
 - a `render()` method to update the highlighter markup when given new information about the observed node.

NOTE: A temporary pink outline is set on the highlighter surface as a quick visual check to show its extent depending on context: browser toolbox or content toolbox. This will be removed before landing.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 21:51:42 +00:00
Nihanth Subramanya eef2c2ce34 Bug 1587205 - Fix styles of deceptive site page. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D49108

--HG--
extra : moz-landing-system : lando
2019-10-14 09:10:59 +00:00
Paul Adenot 09ea1ff867 Bug 1575638 - Determine whether or not hard panning should be performed on OSX outside the audio callback. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D47283

--HG--
extra : moz-landing-system : lando
2019-10-11 15:45:18 +00:00
Paul Adenot 8fa26945d0 Bug 1575638 - Perform the hard-right panning on macbook pros in Gecko and not in cubeb. r=kinetik
Panning support in cubeb was removed in 8c3e32bd24

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

--HG--
extra : moz-landing-system : lando
2019-10-11 15:55:02 +00:00
Paul Adenot b0a6955511 Bug 1575883 - When the real-time limit is reached on the real-time thread, demote to a normal thread. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D45691

--HG--
extra : moz-landing-system : lando
2019-10-11 16:04:32 +00:00
Paul Adenot de38beab75 Bug 1575883 - Call setrlimit at startup via the audio_thread_priority crate. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D45689

--HG--
extra : moz-landing-system : lando
2019-10-11 16:04:32 +00:00
Paul Adenot bb8066315b Bug 1575883 - Handle SIGXCPU in Gecko. r=kinetik,glandium
This allows installing a SIGXCPU handler, which will simply set an atomic to
true when reached.

Another function allows querying this atomic.

Finally, another function allows demoting the current thread from real-time
priority.

This is per-process currently, as there is only one audio callback thread that
is set to RT scheduling per process, servicing all HTMLMediaElements and MSGs.
Whenever any of those go over the soft limit, the thread is demoted.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 16:02:36 +00:00
Paul Adenot 2196bcaba6 Bug 1575883 - mach vendor rust. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D47282

--HG--
rename : third_party/rust/scoped-tls-0.1.0/LICENSE-APACHE => third_party/rust/semver-0.7.0/LICENSE-APACHE
rename : third_party/rust/scoped-tls-0.1.0/LICENSE-MIT => third_party/rust/semver-0.7.0/LICENSE-MIT
extra : moz-landing-system : lando
2019-10-11 16:02:18 +00:00
Paul Adenot 1cc0689e53 Bug 1575883 - Remove the code that created a couple threads at startup, in Gecko. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D45688

--HG--
extra : moz-landing-system : lando
2019-10-11 16:01:24 +00:00
Paul Adenot c2ee92f6c8 Bug 1575883 - Update Gecko's Cargo.toml with higher cubeb and audio_thread_priority versions. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D47280

--HG--
extra : moz-landing-system : lando
2019-10-11 16:00:07 +00:00
Paul Adenot c9cbd16860 Bug 1575883 - Update cubeb-pulse-rs to f9eb50b8. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D47281

--HG--
extra : moz-landing-system : lando
2019-10-11 16:00:41 +00:00
Paul Adenot 27ec83b3f0 Bug 1575883 - Update audioipc to b82970f. r=kinetik
This includes https://github.com/djg/audioipc-2/pull/75, is and from by fork, to
test. To be replaced with upstream when landing.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 16:00:41 +00:00
Paul Adenot 1f614d2cd1 Bug 1575883 - Update cubeb-coreaudio-rs to fd242ea. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D47278

--HG--
extra : moz-landing-system : lando
2019-10-11 15:44:18 +00:00
Paul Adenot 8088048155 Bug 1575883 - Update cubeb to a1200c34. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D47277

--HG--
extra : moz-landing-system : lando
2019-10-11 16:05:55 +00:00
Paul Adenot 6571cd8b7b Bug 1575883 - Remove cubeb_panner.{cpp,h} from the cubeb update script. r=kinetik
Those files have been removed upstream.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 15:50:18 +00:00
Paul Adenot e489af208a Bug 1575883 - Backed out changeset 86f456156bd0. r=kinetik
Going over the RT budget is now handled by demoting the thread instead of
crashing.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 15:50:18 +00:00
Simon Giesecke f68abff937 Bug 1497007 - Removed extra word in test case description. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D46276

--HG--
extra : moz-landing-system : lando
2019-09-26 11:32:56 +00:00
Simon Giesecke 324a40cca8 Bug 1497007 - Remove obsolete test cases from test exclusion list. r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D46275

--HG--
extra : moz-landing-system : lando
2019-09-26 21:49:27 +00:00
Alok Nikhil 7355297b4d Bug 1563242 - TelemetryEvent's GetEventRecordsForProcess takes an EventKey but doesn't use it, r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D48802

--HG--
extra : moz-landing-system : lando
2019-10-14 08:51:28 +00:00
Simon Giesecke 49db1f8c5f Bug 1586189 - Provide useful assertion messages. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D48712

--HG--
extra : moz-landing-system : lando
2019-10-10 07:17:16 +00:00
Michal Novotny 05480d5b8b Bug 1579507 - Collect telemetry on FTP usage, r=valentin
These probes should allow us to compute:
 - percentage of users that use FTP
 - percentage of navigations using FTP protocol to fetch directory listing
 - percentage of navigations using FTP protocol to fetch resource

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

--HG--
extra : moz-landing-system : lando
2019-10-14 08:26:45 +00:00
Tim Nguyen 79c7f01c56 Bug 1588066 - Remove remaining references to textbox. r=surkov,emilio,webdriver-reviewers,bgrins,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D48958

--HG--
extra : moz-landing-system : lando
2019-10-14 07:41:35 +00:00
Zhao Jiazhong 22b71a7d58 Bug 1583088 - [MIPS64]Fix visitCompareI64{AndBranch}, handle the case that rhs operand is on the stack. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D46755

--HG--
extra : moz-landing-system : lando
2019-10-14 02:46:19 +00:00
Lina Cambridge 95fa8bcf2b Bug 1586446 - Ignore duplicate outgoing tags in the bookmarks mirror. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D49076

--HG--
extra : moz-landing-system : lando
2019-10-13 23:56:04 +00:00
Lina Cambridge 5ac45f3f35 Bug 1588018 - Remove remaining event telemetry from the bookmarks mirror. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D49049

--HG--
extra : moz-landing-system : lando
2019-10-14 00:22:10 +00:00
Mark Hammond 1b362fb843 Bug 1587837 - better checking of the Firefox Account password changing. r=eoger
Differential Revision: https://phabricator.services.mozilla.com/D48936

--HG--
extra : moz-landing-system : lando
2019-10-11 16:41:44 +00:00
Glenn Watson 1cca72e311 Bug 1587676 - Allocate picture caching tile surfaces later during the frame. r=nical,kvark
Instead of allocating a tile surface from the texture cache during
the tile post_update method, this is now deferred until the
take_context method of picture.

This will allow a simple CPU occlusion culling pass to run after
all the tile cache dependency updates (when the visible tiles and
rects are know), but before the surfaces are allocated. In this way,
we will be able to skip allocating, rasterizing and compositing
any tiles that are eliminated by the occlusion culling test.

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

--HG--
extra : moz-landing-system : lando
2019-10-13 20:24:40 +00:00
Brian Hackett 5be1c5612c Bug 1580104 - Wait for recording to initialize before loading URLs, r=jlast.
Differential Revision: https://phabricator.services.mozilla.com/D49090

--HG--
extra : moz-landing-system : lando
2019-10-13 19:10:14 +00:00
Oana Pop Rus 8a7bc2ad4e Backed out changeset 77357e0aa88e (bug 1584859) for wpt and mochitest failures. on a CLOSED TREE 2019-10-13 14:06:44 +03:00
Jorg K 5fb0032a51 Bug 1588065 - Fix namespace issues in nsDocShellLoadState.h. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D49063

--HG--
extra : moz-landing-system : lando
2019-10-13 00:07:50 +00:00
Emilio Cobos Álvarez e7e8c1f792 Bug 1559077 - Implement Element.part. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D48707

--HG--
extra : moz-landing-system : lando
2019-10-13 09:40:08 +00:00