Commit graph

4478 commits

Author SHA1 Message Date
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Shane Caraveo
e8915eda78 Bug 1515701 show addons disabled doorhanger in private browsing, r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D15445

--HG--
extra : moz-landing-system : lando
2019-01-29 01:39:37 +00:00
Mike Conley
d257d1d3f5 Bug 1277060 - Ensure the URL bar gets cleared if Home button sends us to an initial page. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17408

--HG--
extra : moz-landing-system : lando
2019-01-28 21:24:00 +00:00
Dão Gottwald
f4f4709dc2 Bug 1522502 - Support displaying about:reader URLs. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17510

--HG--
extra : moz-landing-system : lando
2019-01-24 19:43:37 +00:00
Dão Gottwald
535429cd1f Bug 1522529 - Remove focus hack from the gURLBar getter and properly implement UrlbarInput focus and blur methods. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D17521

--HG--
extra : moz-landing-system : lando
2019-01-24 16:49:41 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Johann Hofmann
ad87a838f7 Bug 1492498 - Make certificate exceptions on the new cert error pages permanent by default. r=nhnt11,keeler
This includes a new test for the feature and a bit of test cleanup to factor
out all exception related tests into their own test file.

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

--HG--
rename : browser/base/content/test/about/browser_aboutCertError.js => browser/base/content/test/about/browser_aboutCertError_exception.js
extra : moz-landing-system : lando
2019-01-23 16:59:12 +00:00
Mark Banner
2ed2cfee12 Bug 1521719 - Stop the legacy urlbar binding being constructed and registering listeners when QuantumBar is enabled. r=dao
As a result, we can also re-enable some tests running against QuantumBar.

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

--HG--
extra : moz-landing-system : lando
2019-01-23 16:15:34 +00:00
Dão Gottwald
63d3b24a1b Bug 1521783 - Let typeRestrictToken focus the address bar. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D17239

--HG--
extra : moz-landing-system : lando
2019-01-22 16:40:12 +00:00
Harry Twyford
70df5bbf20 Bug 1313429 - Add Touch Bar functionality to Firefox r=spohl,mikedeboer,flod
Adds Touch Bar functionality to Firefox across eight commits.

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

--HG--
extra : moz-landing-system : lando
2019-01-22 17:13:33 +00:00
Ehsan Akhgari
4137a92662 Bug 1514340 - Part 2: Break out the content blocking related notifications into nsIWebProgressListener.onContentBlockingEvent(); r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D16052
2019-01-21 09:58:50 -05:00
Tim Nguyen
60a5143df0 Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
The restriction preventing fullscreen windows from being dragged is removed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 22:42:24 +00:00
Andreea Pavel
95431afe85 Backed out 1 changesets (bug 1241885) for build bustages on a CLOSED TREE
Backed out changeset 176be7000d33 (bug 1241885)
2019-01-18 23:49:55 +02:00
Tim Nguyen
495df7ddea Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
The restriction preventing fullscreen windows from being dragged is removed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 16:51:08 +00:00
Drew Willcoxon
7efd7f75c9 Bug 1518031 - Update "Add Search Engine" page action image when search engine icon becomes available. r=mossop
We can just add `onLinkIconAvailable` to `TabsProgressListener` in browser.js and update the search badge.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 17:29:18 +00:00
Mark Banner
1619ba50da Bug 1520336 - Removed unused 'where' parameter from BrowserSearch.recordOneoffSearchInTelemetry. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D16617

--HG--
extra : moz-landing-system : lando
2019-01-16 01:21:24 +00:00
Christoph Kerschbaumer
6756032512 Bug 1513241: Update frontend consumers of loadURI and pass loadURIOptions dictionary. r=gijs 2019-01-11 12:44:20 +01:00
Gijs Kruitbosch
3da0062d36 Bug 1502179 - don't treat closing last non-popup window as quitting when a popup window is still open (on Windows/Linux), r=jaws,mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D15408

--HG--
extra : moz-landing-system : lando
2019-01-07 19:26:17 +00:00
Rob Wu
d501cbec73 Bug 1501244 - Preserve privateBrowsingId OA when userContextId is set r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D9535

--HG--
extra : moz-landing-system : lando
2018-10-24 21:23:17 +00:00
Timothy Guan-tin Chien
bd38b39f8a Bug 1512048 - Convert tabmodalprompt binding to JSM module r=Gijs
This converts the tabmodalprompt binding to a class, to be constructed along side with the element
by TabModalPromptBox.

TabModalPromptBox will keep the instances in a map and pass it to the callers, instead of the element.
The tests and callers can access the class instance by passing the element reference to the map.

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

--HG--
rename : toolkit/components/prompts/content/tabprompts.xml => toolkit/components/prompts/content/tabprompts.jsm
extra : moz-landing-system : lando
2019-01-04 19:29:34 +00:00
Gijs Kruitbosch
ccfd35873f Bug 1514724 - define script getters in the browser instead of via a module and iterating over windows, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D14805

--HG--
extra : rebase_source : e146dfb7df7626abcd38cd6d44c6fed1523cb111
2018-12-28 11:27:59 +00:00
Razvan Maries
e048f91e8e Merge mozilla-inbound to mozilla-central a=merge 2018-12-24 23:50:58 +02:00
Paolo Amadini
24c49f1473 Bug 1466817 - The "Edit Pop-up Blocker Options/Preferences" command should open the in-content preferences. r=jaws
Instead of opening the pop-up permissions dialog with the origin already populated, this command now highlights the pop-up permission row in the preferences. This doesn't remove any functionality because the only action that would be available for the origin in the permissions dialog is "Allow", which is equivalent to the "Allow pop-ups for" command in the notification bar menu.

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

--HG--
extra : rebase_source : 064b3d39dc2a8c4d6a3c0949a51ab361ed6e71dd
2018-12-23 20:52:15 +00:00
James Teh
3ce66961cd Bug 1509767: Support keyboard activation (space/enter) of the Back/Forward buttons when focused. r=Gijs
When focused, the Back and Forward buttons previously couldn't be activated by pressing space or enter.
Although they do have a command event handler, they have type="menu", which means the command event is not fired for key presses by default.
Since these buttons are special (in that they have type="menu" and a command event), this change implements specific keyboard behavior for these buttons.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 05:33:32 +00:00
Dão Gottwald
b77881e30c Bug 1516130 - Accel+K shouldn't focus and modify the read-only address bar in popups. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D15260

--HG--
extra : moz-landing-system : lando
2018-12-24 14:50:38 +00:00
Abdelrhman Ahmed
3823488bec Bug 1475670: Optimizing the code inside ContentBlocking. r=johannh 2018-12-18 11:18:13 +02:00
Mike Conley
351f5497f6 Bug 1503796 - Convert XPCOM arrays and strings from nsBrowserContentHandler to JS arrays and strings earlier when opening browser windows. r=Gijs
This also makes it so that the initial browser tab setup code can handle a JS array
as the URI(s) to load during start-up. If it's an array, the first element of that
array is inspected to determine what process type the initial browser tab should
be in.

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

--HG--
extra : moz-landing-system : lando
2018-12-17 21:21:57 +00:00
Tim Huang
1e2c28f939 Bug 1446472 - Part 1: Showing the identity block icon for canvas permission without the doorhanger when canvas extraction is auto detected. r=baku,Gijs
For a better user experience of auto-blocking canvas extraction, this
patch changes the behavior when detecting a canvas extraction without
user interaction. It will show a canvas identity block icon with a
hidden doorhanger when auto-blocking the canvas extraction. Users can
make their choice to either block or allow the canvas extraction by
clicking the identity block icon and then refresh the page to make
the canvas permission taking effect.

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

--HG--
extra : moz-landing-system : lando
2018-12-16 21:30:59 +00:00
Dão Gottwald
a2bda7b56d Bug 1514151 - Consistently use arrow functions and destructuring assignments in XPCOMUtils.defineLazyGetter calls from browser.js. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D14532

--HG--
extra : moz-landing-system : lando
2018-12-14 19:46:58 +00:00
Dão Gottwald
0afe87a2cf Bug 1513827 - Let toolbar context menu handle nodes without ids. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D14390

--HG--
extra : moz-landing-system : lando
2018-12-13 14:53:18 +00:00
Dão Gottwald
d0b805fc67 Bug 1513845 - Stop using XPCOMUtils.defineLazyGetter for gNavigatorBundle. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D14391

--HG--
extra : moz-landing-system : lando
2018-12-13 12:34:40 +00:00
Dão Gottwald
84a61fb2d2 Bug 1513508 - Clean up Object.defineProperty calls in browser.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D14241

--HG--
extra : moz-landing-system : lando
2018-12-12 13:40:06 +00:00
Kris Maglione
d79b3fbaf4 Bug 1505522: Part 2 - Migrate MemoryTelemetry.jsm to C++. r=erahm,chutten
This has benefits both in terms of performance and memory usage. Aside from
the obvious savings of not loading additional JS scripts in every process,
this also allows us to move more of our expensive data collection work to a
background thread, where it doesn't risk janking both parent and content
processes.

MozReview-Commit-ID: 2A593R7bIKB

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

--HG--
extra : rebase_source : ec634ee3a3b975809f542aa8077ad32236781452
2018-12-05 15:44:53 -05:00
Neil Deakin
9397165b4e Bug 1492326, use Element helper methods in accessibility instead of QueryInterface to get interface implementations that might be implemented by custom elements, r=surkov 2018-12-04 11:32:15 -05:00
hereissophie@gmail.com
336637a18d Bug 1501234 - Use openTrustedLinkIn in gAccessibilityServiceIndicator. r=dao 2018-12-05 19:52:35 +01:00
Gijs Kruitbosch
2efc57c842 Bug 1511903 - r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D13714

--HG--
extra : moz-landing-system : lando
2018-12-05 10:24:56 +00:00
Bogdan Tara
dcf5ea092c Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-12-03 23:53:09 +02:00
Ehsan Akhgari
0dcf936804 Bug 1510911 - Part 2: Backout changeset f8849239da42 (bug 1493563 - Part 5) for regressing performance 2018-12-03 14:27:53 -05:00
Gijs Kruitbosch
45794c41ea Bug 1062128 - set tooltiptext for new tab button directly for a11y reasons, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D13406

--HG--
extra : moz-landing-system : lando
2018-12-03 18:22:05 +00:00
Jared Wein
98ab4d61f7 Bug 1511095 - Remove SchedulePressure.jsm and the fallback loading throbber in the tabstrip. r=mconley
The APNG version is still used by the TabsList which can't support the SVG version of the throbber currently.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 22:25:33 +00:00
Dão Gottwald
2be51b0d48 Bug 1510572 - Stop overriding WebExtensionPolicy in browser.js. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D13233

--HG--
extra : moz-landing-system : lando
2018-11-28 23:02:39 +00:00
Dão Gottwald
9914989a7a Bug 1510412 - Set RTL_UI based on Services.locale.isAppLocaleRTL. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D13121

--HG--
extra : moz-landing-system : lando
2018-11-28 15:59:28 +00:00
Dão Gottwald
328bd4a524 Bug 1510462 - Remove redundant AddonManager definition. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D13157

--HG--
extra : moz-landing-system : lando
2018-11-28 04:56:39 +00:00
Dão Gottwald
0f23fd4558 Bug 1509309 - Move most browser-*.js scripts from global-scripts.inc to browser.xul. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D13064

--HG--
extra : moz-landing-system : lando
2018-11-27 21:55:21 +00:00
Gijs Kruitbosch
ebea9ca979 Bug 1509906 - use the window's initial url to determine what remoteType the initial browser should have, r=dao,mconley
Differential Revision: https://phabricator.services.mozilla.com/D13016

--HG--
extra : moz-landing-system : lando
2018-11-27 15:56:26 +00:00
Dão Gottwald
9880945252 Bug 1509651 - Stop flushing style for knowing the UI direction. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D12827

--HG--
extra : moz-landing-system : lando
2018-11-26 11:59:04 +00:00
Dão Gottwald
d201595d2e Bug 1509489 - Make StatusPanel._calcMouseTargetRect not flush layout or style and revert bug 1358712. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D12747

--HG--
extra : moz-landing-system : lando
2018-11-23 17:35:06 +00:00
Marco Bonardo
6d09b83cad Bug 1315509 - Ctrl+K shortcut should add '?' to the Address Bar if search bar is removed. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D12222

--HG--
extra : moz-landing-system : lando
2018-11-23 15:15:47 +00:00
Dão Gottwald
12feb645b8 Bug 1508963 - Load browser-siteIdentity.js lazily. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D12521

--HG--
extra : moz-landing-system : lando
2018-11-21 17:09:23 +00:00
Tim D. Smith
f036261bf0 Bug 1364957 - Fix about: scheme check for FX_PAGE_LOAD_MS_2 r=Gijs
We should be ignoring about: URIs for the page load time metric, since they load very quickly
and aren't representative of Web page load times.

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

--HG--
extra : moz-landing-system : lando
2018-11-21 08:52:10 +00:00