Commit Graph

65347 Commits

Author SHA1 Message Date
harry
63d2c3fa56 Bug 1563349 - Part 1 - JS changes to support TouchBarInput children. r=mikedeboer
Depends on D34926

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

--HG--
extra : moz-landing-system : lando
2019-10-09 15:25:43 +00:00
Edouard Oger
136a86deed Bug 1549049 - Unify Sync Now buttons logic. r=markh,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D48410

--HG--
extra : moz-landing-system : lando
2019-10-10 21:08:01 +00:00
Andrei Oprea
5716f36a6c Bug 1587705 - The CFR Recommendation button is not displayed in the minimized form on urlbar focus r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D48876

--HG--
extra : moz-landing-system : lando
2019-10-10 19:30:32 +00:00
Mark Banner
818208e565 Bug 1580830 - Add a display to the private browsing page to inform of the new setting for search engines in private mode. r=mikedeboer,fluent-reviewers,flod
This implements the introduction display for the new search engine preference.

The decision for whether or not to display the introduction is handled in AboutPrivateBrowsingHandler.jsm, as we need
to limit it to being displayed once per session.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 20:00:51 +00:00
Bianca Danforth
61e0ee2fd9 Bug 1585499 - Enable Extension Storage actor in addon debugger by default r=rpl,miker
Differential Revision: https://phabricator.services.mozilla.com/D47851

--HG--
extra : moz-landing-system : lando
2019-10-09 11:49:45 +00:00
Rob Wu
07c1fc6c27 Bug 1559835 - Remove comment at tabs.update(active:false) r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D48817

--HG--
extra : moz-landing-system : lando
2019-10-10 15:44:41 +00:00
Jared Wein
02a9637658 Bug 1573481 - Disable the about:logins page if Master Password is requested on load and the user cancels the dialog. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48747

--HG--
extra : moz-landing-system : lando
2019-10-10 16:03:52 +00:00
Daniel Varga
6a27b47313 Backed out 3 changesets (bug 1572651) for devtools failure at devtools/client/inspector/test/browser_inspector_highlighter-by-type.js. On a CLOSED TREE
Backed out changeset 71db1896c459 (bug 1572651)
Backed out changeset fb5863ee4d37 (bug 1572651)
Backed out changeset 5ef33867cacb (bug 1572651)
2019-10-10 18:51:17 +03:00
ffxbld
8d4072c53b No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D48836

--HG--
extra : moz-landing-system : lando
2019-10-10 14:38:00 +00:00
Razvan Caliman
780c3bc0b5 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-10 14:15:22 +00:00
Razvan Caliman
c34e4a24a6 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 14:13:23 +00:00
Julian Descottes
3ee99df695 Bug 1586819 - Add DevTools command button to show the currently enabled devtools-fission prefs r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D48367

--HG--
extra : moz-landing-system : lando
2019-10-10 13:00:03 +00:00
Harry Twyford
0733410a0c Bug 1583535 - The Megabar should not expand when auto-focused after a panel is closed. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D48114

--HG--
extra : moz-landing-system : lando
2019-10-10 13:51:26 +00:00
Erica Wright
66f7bcab3e Bug 1586882 - Add params to lockwise and proxy links from protection report. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D48582

--HG--
extra : moz-landing-system : lando
2019-10-10 08:06:58 +00:00
Jared Wein
7ac7374081 Bug 1584103 - Increase the font-weight of the breach-alert-link to match the spec closer. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48634

--HG--
extra : moz-landing-system : lando
2019-10-09 20:54:03 +00:00
Jared Wein
0a7318d884 Bug 1583161 - Remove the border from the FxA avatar in about:logins since it was cropping the avatar and looked odd in Dark mode. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48633

--HG--
extra : moz-landing-system : lando
2019-10-09 20:53:50 +00:00
Jared Wein
53a9f9808e Bug 1584176 - Use a fixed background color for the :hover and :hover:active of the dismiss button since the background-color of the breach alert is fixed. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48632

--HG--
extra : moz-landing-system : lando
2019-10-09 20:53:35 +00:00
Jared Wein
5814b6ce92 Bug 1579738 - Set the login-item as a title attribute so the full title can be shown as a tooltip if it is elided. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48629

--HG--
extra : moz-landing-system : lando
2019-10-09 20:52:49 +00:00
Jared Wein
e2d85cd7c6 Bug 1584162 - Add a background-color for hovering the login-list sort select button. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D48628

--HG--
extra : moz-landing-system : lando
2019-10-09 18:15:11 +00:00
Jared Wein
453b8bb999 Bug 1586601 - Allow the login-item to scroll without pushing the login-list below the fold. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D48601

--HG--
extra : moz-landing-system : lando
2019-10-10 00:26:21 +00:00
Gijs Kruitbosch
300f355942 Bug 1586355 - add support for disambiguated file extensions and missing OS default handlers, r=jaws,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D48568

--HG--
extra : moz-landing-system : lando
2019-10-09 22:49:05 +00:00
Bogdan Tara
a5bb9b3228 Backed out changeset 6cdb3133f50f (bug 1586882) by lizzard's request
--HG--
extra : rebase_source : eb43ef89bf7d30160747bd196a42c142749449bb
2019-10-10 01:13:00 +03:00
Gijs Kruitbosch
d9a1a5bca4 Bug 1582467 - make a11y-privacy-checkbox (prevent accessibility services from accessing your browser) handling code work again, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D48467

--HG--
extra : moz-landing-system : lando
2019-10-09 18:14:15 +00:00
Michael Kaply
2ea9213a98 Bug 1577149 - Additional preferences managed by policy requested by users. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D48217

--HG--
extra : moz-landing-system : lando
2019-10-09 18:01:34 +00:00
Johann Hofmann
d0da7de770 Bug 1475404 - Make EventUtils available to use in content task scopes. r=mconley,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D47588

--HG--
extra : moz-landing-system : lando
2019-10-09 18:03:35 +00:00
mcrawford@mozilla.com
001320cc27 Bug 1585808 - Add UTM parameters to the "Learn more about this breach" link in breach notifications. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48597

--HG--
extra : moz-landing-system : lando
2019-10-09 20:18:54 +00:00
Michael Kaply
aa5fc71cd6 Bug 1586913 - Add policy for DisablePasswordReveal. r=jaws,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D48592

--HG--
extra : moz-landing-system : lando
2019-10-09 20:04:39 +00:00
Tim Nguyen
ad570ba4ab Bug 1587384 - Fix extension controlled UI for connection settings. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D48692

--HG--
extra : moz-landing-system : lando
2019-10-09 19:44:13 +00:00
Gurzau Raul
70f0249cbe Backed out changeset 8cf556022ec5 (bug 1585808) by MattN's request.
--HG--
extra : rebase_source : 190ed3696faecf849777a9f9f96f74d77d9ee11e
2019-10-09 22:42:32 +03:00
Tim Huang
732a29d64f Bug 1586713 - Making the test 'browser/components/originattributes/test/browser/browser_postMessage.js' working in Fission. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D48699

--HG--
extra : moz-landing-system : lando
2019-10-09 14:11:39 +00:00
Neil Deakin
ec8b2c4f13 Bug 1573836, make autocomplete component fission compatible, r=mak,MattN
Differential Revision: https://phabricator.services.mozilla.com/D47093

--HG--
rename : toolkit/modules/AutoCompletePopupContent.jsm => toolkit/actors/AutoCompleteChild.jsm
rename : toolkit/components/satchel/AutoCompletePopup.jsm => toolkit/actors/AutoCompleteParent.jsm
extra : moz-landing-system : lando
2019-10-09 19:02:57 +00:00
Mark Striemer
aa5a36985b Bug 1580962 - Show a SUMO link when an add-on can't be removed r=rpl,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D48128

--HG--
extra : moz-landing-system : lando
2019-10-09 18:46:23 +00:00
Jared Wein
f337906a22 Bug 1586590 - Remaining space should be placed between the confirm and cancel buttons. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D48599

--HG--
extra : moz-landing-system : lando
2019-10-09 18:15:03 +00:00
Jared Wein
cb59d6042b Bug 1576276 - Persist sort direction in about:logins. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D48543

--HG--
extra : moz-landing-system : lando
2019-10-09 18:15:05 +00:00
Gurzau Raul
cdc7c1a8dd Backed out changeset 479097530e46 (bug 1586913) for failing at test_login_item.html on a CLOSED TREE. 2019-10-09 21:16:58 +03:00
Michael Kaply
afdeed7927 Bug 1586913 - Add policy for DisablePasswordReveal. r=jaws,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D48592

--HG--
extra : moz-landing-system : lando
2019-10-09 02:46:16 +00:00
Ryan VanderMeulen
66392f1fb3 Bug 1586266 - Update pdf.js to version 2.4.15. r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D48180

--HG--
extra : moz-landing-system : lando
2019-10-09 15:56:36 +00:00
Andrei Oprea
665bdb853c Bug 1569696 - CFR: recommend send tab on popular recipe sites r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D47777

--HG--
extra : moz-landing-system : lando
2019-10-09 15:39:13 +00:00
Erica Wright
b272610ee8 Bug 1586882 - Add params to lockwise and proxy links from protection report. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D48582

--HG--
extra : moz-landing-system : lando
2019-10-09 15:00:56 +00:00
Nika Layzell
c8a8f0a350 Bug 1581925 - Part 3: Remove ContextMenuSpecialProcessChild.jsm, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D48093

--HG--
extra : moz-landing-system : lando
2019-10-07 19:35:06 +00:00
Dão Gottwald
986df12c96 Bug 1586589 - Replace obsolete <textbox> comments in urlbar code. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D48675

--HG--
extra : moz-landing-system : lando
2019-10-09 13:18:15 +00:00
Nihanth Subramanya
db69389d02 Bug 1585807 - Use the same gradient in dark and light themes. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D48642

--HG--
extra : moz-landing-system : lando
2019-10-09 12:54:17 +00:00
Nihanth Subramanya
233e970b38 Bug 1587316 - Revert info message animation change. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D48641

--HG--
extra : moz-landing-system : lando
2019-10-09 08:16:26 +00:00
Dão Gottwald
32fa53860b Bug 1586254 - Make sure runUrlbarTest doesn't complain about 'unexpected changed rect' in the non-megabar results panel. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D48663

--HG--
extra : moz-landing-system : lando
2019-10-09 12:15:28 +00:00
Dão Gottwald
be16bc8aac Bug 1587185 - Directly reference identity box padding and margin to calculate urlbar results alignment. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D48659

--HG--
extra : moz-landing-system : lando
2019-10-09 12:08:51 +00:00
Paul Zuehlcke
f24e944b04 Bug 1587130 - Fixed nsContentBlocker telemetry adding scalar values. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D48679

--HG--
extra : moz-landing-system : lando
2019-10-09 11:10:03 +00:00
Marcos Cáceres
fbff2e387c Bug 1312422 - Web Share Base/DOM implementation r=farre
Web Share base implementation just of DOM stuff - working together with @saschanaz.

@Baku, we would greatly appreciate your review.

-Nika, as she is traveling.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 10:57:11 +00:00
Narcis Beleuzu
4c4528501d Bug 1430977 - Disable browser_625016.js on Win-debug. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D48669

--HG--
extra : moz-landing-system : lando
2019-10-09 10:34:22 +00:00
shindli
84419a8c10 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-10-09 13:38:28 +03:00
shindli
083cbd8b40 Backed out 8 changesets (bug 1563350, bug 1563351, bug 1563349, bug 1567939) on suspicion of causing OS X crashes https://bugzilla.mozilla.org/show_bug.cgi?id=1587351 CLOSED TREE a=backout
Backed out changeset 86ed8b9bee5f (bug 1563351)
Backed out changeset 355b0329bd95 (bug 1563350)
Backed out changeset 653caa0c494a (bug 1567939)
Backed out changeset 4b4a71e170bd (bug 1563349)
Backed out changeset 81b93962243b (bug 1563349)
Backed out changeset cff2050ff540 (bug 1563349)
Backed out changeset db50ea44f0b1 (bug 1563349)
Backed out changeset dcbddc5738c3 (bug 1563349)
2019-10-09 13:33:05 +03:00