Commit Graph

489 Commits

Author SHA1 Message Date
Kris Maglione
509e210f19 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
2018-12-05 15:44:53 -05:00
Mark Banner
396e01ae12 Bug 1505411 - Add basic monitoring for partner search pages with ads and clicks. Depends on D11188 r=adw,Felipe,chutten
Differential Revision: https://phabricator.services.mozilla.com/D11656
2018-12-05 20:33:01 +00:00
Ehsan Akhgari
0189ad92c7 Bug 1507353 - Convert the accesses to security.insecure_connection_*.* prefs into lazy getters r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D11968
2018-11-20 20:04:14 +00:00
Ehsan Akhgari
0b6dceed64 Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D11122
2018-11-20 14:34:49 +00:00
Andreea Pavel
3e7a2cf5a7 Backed out changeset 94efd169438e (bug 1504728) for mochitest AddressSanitizer failures on a CLOSED TREE 2018-11-20 02:12:47 +02:00
Ehsan Akhgari
266d39fda6 Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D11122
2018-11-19 20:31:16 +00:00
Dorel Luca
5106b2f08b Backed out changeset dfc775a144ad (bug 1504728) for Brwoser-chrome failure in browser/base/content/test/trackingUI/browser_trackingUI_trackers_subview.js. CLOSED TREE 2018-11-19 18:34:50 +02:00
Ehsan Akhgari
292c295604 Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D11122
2018-11-19 15:25:33 +00:00
Narcis Beleuzu
6e37dfa8f9 Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE
Backed out changeset 26318538f077 (bug 1505198)
Backed out changeset fc39602006be (bug 1504728)
2018-11-16 02:34:15 +02:00
Ehsan Akhgari
9d1220d4e7 Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D11122
2018-11-14 17:19:25 +00:00
Mike Conley
9eb2d4a40e Bug 1356920 - Don't calculate and flush layout inside browser-tabsintitlebar.js. r=dao
Folded together the following revisions:

Bug 1356920 - Remove all toolbar layout code from browser-tabsintitlebar. r=dao

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

***

Bug 1356920 - Move TabsToolbar and toolbar-menubar into the titlebar, and put the titlebar into the navigator-toolbox. r=dao

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

***

Bug 1356920 - Put a spacer in the menubar to push titlebar items to the end, and stop the menu from stretching vertically. r=dao

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

***

Bug 1356920 - Adjust CSS rules for new XUL document structure. r=dao

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

***

Bug 1356920 - Fix placement of tracking protection icon. r=dao

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

***

Bug 1356920 - Get rid of the spacer before the window caption buttons now in the TabsToolbar. r=dao

The spacer isn't necessary, since the tabbrowser-tabs node will flex to fill the available
space anyways.

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

***

Bug 1356920 - Move movingtab attribute to navigator-toolbox to account for TabsToolbar not being a sibling of nav-bar anymore. r=dao

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

***

Bug 1356920 - Hide the window caption buttons hbox if the native titlebar is being drawn. r=dao

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

***

Bug 1356920 - Keep the macOS window caption buttons vertically centered when drag space is enabled. r=dao

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

***

Bug 1356920 - Switch window caption XUL nodes from IDs to classes so that more than one can exist per doc. r=dao

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

***

Bug 1356920 - Move titlebar items out into a preprocessed file to be included at build-time. r=dao

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

***

Bug 1356920 - Reorganize TabsToolbar contents to force most items to the bottom of it. r=dao

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

***

Bug 1356920 - Update CSS to account for new DOM structure under TabsToolbar. r=dao

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

***

Bug 1356920 - Fix titlebar button rendering when using a lwtheme without the Windows compositor. r=dao

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

***

Bug 1356920 - Put an ordinal rule on the window caption buttons to help ensure they stay at the end of the toolbar. r=dao

This is to ensure that the buttons are placed after the post-tabs titlebar placeholder.

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

***

Bug 1356920 - Stretch window caption buttons to fill vertical space on Windows 8+ when using extra drag space. r=dao

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

***

Bug 1356920 - Update onViewToolbarsPopupShowing to search for toolbars that are grandchildren of the toolbox. r?jaws

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

***

Bug 1356920 - Hide the titlebar items in the TabsToolbar if the menubar is being displayed. r=dao

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

***

Bug 1356920 - Fix selector for titlebar. r=dao

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

***

Bug 1356920 - Fix titlebar themeing on Linux. r=dao

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

***

Bug 1356920 - Remove browser-tabsintitlebar layout flushes from performance test whitelist. r?florian

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

***

Bug 1356920 - Fix bottom border of tabbar to account for new DOM structure. r=dao

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

***

Bug 1356920 - Hide the titlebar-buttonbox-container when in fullscreen mode. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D7833
2018-10-25 12:03:14 -04:00
Kris Maglione
2fe938bed2 Bug 1482091: Part 2 - Remove TelemetryStopwatch.jsm in favor of native implementation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9888
2018-10-25 19:04:01 -07:00
arthur.iakab
60aefe8252 Backed out 2 changesets (bug 1482091) for bc failures on browser_domFullscreen_fullscreenMode.js
Backed out changeset bc03f101937e (bug 1482091)
Backed out changeset 28a19b7290ab (bug 1482091)
2018-11-03 01:08:36 +02:00
Kris Maglione
937d3bc224 Bug 1482091: Part 2 - Remove TelemetryStopwatch.jsm in favor of native implementation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9888
2018-10-25 19:04:01 -07:00
arthur.iakab
0b02a4f71d Backed out 2 changesets (bug 1482091)for failing browser chrome failures on browser_panelUINotifications_fullscreen_noAutoHideToolbar.js
Backed out changeset afd0a13bcfff (bug 1482091)
Backed out changeset a19c6b3e0402 (bug 1482091)
2018-11-02 23:01:15 +02:00
Kris Maglione
31d1c1a1da Bug 1482091: Part 2 - Remove TelemetryStopwatch.jsm in favor of native implementation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9888
2018-10-25 19:04:01 -07:00
Drew Willcoxon
4ea6a4bd7d Bug 1498023 - Search shortcuts should hide all one-off UI when typed r=mak,Mardak
* Disable or enable the one-offs per each new search based on whether the first char is "@". The patch does this in `onResultsAdded`, where other per-search initialization happens.
* Remove the `disableOneOffButtons` option from the urlbar `search` method. It's not necessary anymore now that one-offs are automatically hidden for the only caller that uses this option (new tab with the "@engine" tiles).
* Make the `oneOffSearchesEnabled` getter return the actual status of the one-off UI instead of relying on an `_oneOffSearchesEnabled` property.

Differential Revision: https://phabricator.services.mozilla.com/D9883
2018-10-29 16:13:49 +00:00
Mike Conley
05ba536246 Bug 1501789 - Use the JSM global to create permanentKeys to avoid leaking windows after tab tear out / adoption. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D9975
2018-10-28 01:53:14 +00:00
Brian Grinstead
351e034123 Bug 1493536 - Convert search-one-offs binding to custom element;r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9710
2018-10-25 09:36:15 +00:00
Felipe Gomes
57cbdfc1a3 Bug 1501761 - Add reflow tests for tab detaching. r=florian 2018-10-24 17:59:58 -03:00
Andrew McCreight
ff102a44e2 Bug 1499865 - Make loadedModules and loadedComponents into array attributes. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D9561
2018-10-23 23:28:44 +00:00
Andrew McCreight
5993978ed0 Bug 1497707, part 1 - Get rid of xpcIJSModuleLoader. r=kmag
This interface is only used for a few testing functions. Just move
them to Cu.

Differential Revision: https://phabricator.services.mozilla.com/D8168
2018-10-23 00:47:16 +00:00
Dorel Luca
0e03a23d18 Backed out 5 changesets (bug 1497707) for android mass failures. CLOSED TREE
Backed out changeset bb1b80139e37 (bug 1497707)
Backed out changeset 11c813f192e2 (bug 1497707)
Backed out changeset 32595f9e73d3 (bug 1497707)
Backed out changeset f37f2d39ec9c (bug 1497707)
Backed out changeset 80bf9ddf5bed (bug 1497707)
2018-10-18 00:35:39 +03:00
Sebastian Hengst
2782aea316 Bug 1498827 - Ensure the webcompat report addon is disabled upon load, if extensions.webcompat-reporter.enabled=false, take two: Lower minimum access for extensions.getAddons.cache.enabled CLOSED TREE 2018-10-17 23:57:56 +03:00
Andrew McCreight
0d626d843d Bug 1497707, part 1 - Get rid of xpcIJSModuleLoader r=kmag
This interface is only used for a few testing functions. Just move
them to Cu.

Differential Revision: https://phabricator.services.mozilla.com/D8168
2018-10-17 20:45:41 +00:00
Sebastian Hengst
1accdfe3b7 Bug 1498862 - Increase access limit for chrome.override_package.global to 70 to prevent failures for 64 beta r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D8696
2018-10-16 15:52:44 +00:00
Jared Hirsch
ed3b5a8896 Bug 1498410 - Part 6 - Update browser_preferences_usage test for non-bootstrapped Screenshots;r=aswan
MozReview-Commit-ID: Bdwv9rFBwm3

Differential Revision: https://phabricator.services.mozilla.com/D8753
2018-10-15 19:04:34 +00:00
Jared Hirsch
9e6b09a60a Bug 1498410 - Part 5 - Fix tests broken by Screenshots migration to pure webextension; r=aswan
Summary:
* Explicitly disable Screenshots in PageActions and context menu tests

* Update browser_preferences_usage test to accommodate Screenshots as a webextension
  (Moving Screenshots from legacy bootstrap to webextension seems to require reducing
  the minimum number of values in the `extensions.getAddons.cache.enabled` pref by one)

MozReview-Commit-ID: LCNaaXSE8w0

Reviewers: aswan

Reviewed By: aswan

Bug #: 1498410

Differential Revision: https://phabricator.services.mozilla.com/D8507
2018-10-15 23:47:08 +03:00
Ciure Andrei
d3954e94b0 Backed out 5 changesets (bug 1498410) for faulty landing CLOSED TREE
Backed out changeset 0bf7bb3f9e58 (bug 1498410)
Backed out changeset 01fa6937f05f (bug 1498410)
Backed out changeset 426257ad4b83 (bug 1498410)
Backed out changeset 909a38c04700 (bug 1498410)
Backed out changeset fb1c936feb43 (bug 1498410)
2018-10-15 23:31:55 +03:00
Jared Hirsch
0f1298e866 Bug 1498410 - Part 6 - Update browser_preferences_usage test for non-bootstrapped Screenshots;r=aswan
MozReview-Commit-ID: Bdwv9rFBwm3

Differential Revision: https://phabricator.services.mozilla.com/D8753
2018-10-15 19:04:34 +00:00
Jan-Erik Rediger
bd25b1eb19 Bug 1481812 - Refactor memory gathering into its own module r=chutten
This avoids loading the remaining parts of TelemetrySession in a content process.
This saves around 10 kb of memory.

Differential Revision: https://phabricator.services.mozilla.com/D8378
2018-10-12 13:51:24 +00:00
Sebastian Hengst
253a2021fd Bug 1498862 - Increase access limit for chrome.override_package.global to 70 to prevent failures for 64 beta r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D8696
2018-10-15 08:22:16 +00:00
Daniel Varga
cf0cd8688c Backed out 5 changesets (bug 1498410) for browser-chrome failures at browser/base/content/test/performance/browser_preferences_usage.js
Backed out changeset 4842c9240ccf (bug 1498410)
Backed out changeset 9ba024979004 (bug 1498410)
Backed out changeset db5f7c857952 (bug 1498410)
Backed out changeset 40f06570e491 (bug 1498410)
Backed out changeset 0a7fd350ec1d (bug 1498410)
2018-10-13 06:46:17 +03:00
Jared Hirsch
862601e3a2 Bug 1498410 - Part 5 - Fix tests broken by Screenshots migration to pure webextension; r=aswan
* Explicitly disable Screenshots in PageActions and context menu tests

* Update browser_preferences_usage test to accommodate Screenshots as a webextension
  (Moving Screenshots from legacy bootstrap to webextension seems to require reducing
  the minimum number of values in the `extensions.getAddons.cache.enabled` pref by one)

MozReview-Commit-ID: LCNaaXSE8w0

Differential Revision: https://phabricator.services.mozilla.com/D8507
2018-10-12 23:42:54 +00:00
Thomas Wisniewski
26940debb7 Bug 1451485 - convert webcompat-reporter to a webextension; r=aswan,Pike
convert webcompat-reporter to a webextension

Differential Revision: https://phabricator.services.mozilla.com/D6575
2018-10-11 15:53:23 +00:00
Eric Rahm
933a6436db Bug 1470280 - Part 1: Make browser_preferences_usage.js less brittle. r=kmag
browser_preferences_usage.js hardcodes a max value of 15 accesses which doesn't scale well as we increase the number of processes. Instead we'll base the max on a multiplier of the default process count which should avoid bustage in the future but still catch egregious accesses.
2018-10-05 14:28:58 -07:00
Eric Rahm
de67cb2afd Bug 1488537 - Disable browser_tabclose.js on win32. r=jmaher
Disable browser_tabclose.js for frequently failing on win32. Bug 1470280 makes this much more prevalent.
2018-10-10 12:19:54 -07:00
Dorel Luca
dd8597ba14 Backed out 4 changesets (bug 1470280) for browser-chrome failure in layout/xul/test/browser_bug703210.js. a=backout
Backed out changeset 72e7ef77480d (bug 1470280)
Backed out changeset 403c3d0daf6a (bug 1470280)
Backed out changeset fe7ccd9fee76 (bug 1470280)
Backed out changeset 60699c2387f6 (bug 1470280)
2018-10-10 10:00:19 +03:00
Eric Rahm
40e8bcdda7 Bug 1470280 - Part 1: Make browser_preferences_usage.js less brittle. r=kmag
browser_preferences_usage.js hardcodes a max value of 15 accesses which doesn't scale well as we increase the number of processes. Instead we'll base the max on a multiplier of the default process count which should avoid bustage in the future but still catch egregious accesses.
2018-10-05 14:28:58 -07:00
Dão Gottwald
6fb971c52e Bug 1485629 - Disable the early blank window when using a non-default theme. r=florian 2018-09-18 10:29:37 +02:00
Robert Strong
2c13d5e9d7 Bug 1358342 - Remove the aushelper system add-on. r=florian
The aushelper add-on is being removed and this test needs the minimum number of values in extensions.getAddons.cache.enabled lowered so it passes

Differential Revision: https://phabricator.services.mozilla.com/D5892
2018-09-14 23:44:37 +00:00
Dão Gottwald
d569ccf386 Bug 1477985 - Implement basic UrlbarInput and UrlbarView classes and a hidden pref for using them. r=standard8 2018-09-13 18:38:07 +02:00
Andrew Swan
a188017cee Bug 1488971 Move logic for disabling screenshots out of the extension r=kmag,_6a68
Differential Revision: https://phabricator.services.mozilla.com/D5310
2018-09-07 13:43:48 -07:00
Daniel Varga
751bfd9f98 Merge mozilla-inbound to mozilla-central a=merge 2018-09-08 06:53:43 +03:00
Csoregi Natalia
f93ef208c5 Backed out 2 changesets (bug 1488871) for failures on browser_windowopen.js. CLOSED TREE
Backed out changeset 078929426a6e (bug 1488871)
Backed out changeset 39b3a22e2552 (bug 1488871)
2018-09-08 01:40:10 +03:00
Emilio Cobos Álvarez
6f30e7c3f4 Bug 1488871 - Make browser_windowopen.js workaround account for the toolbar background. r=mconley,florian
With the other patch in this bug, we get two rects, not > 5.

Differential Revision: https://phabricator.services.mozilla.com/D5240
2018-09-07 16:49:03 +02:00
Kris Maglione
ba396c04a5 Bug 1484413: Split ReaderMode.jsm into separate checking and loading components. r=Gijs
Most of the ReaderMode.jsm and Readability.js code is only needed when we
actually need to render a document in reader mode, but also winds up loaded
into any process where we ever check if a page is readerable. This winds up
wasting a huge amount of memory (and probably a huge amount of CPU time)
loading code which is almost never used.

This patch splits ReaderMode.jsm into two modules, one for checking
readability, one for actually entering reader mode. It also separates out the
isProbablyReaderable checks from Readability.js, since the overhead of loading
that script before it's needed is unsupportable.

This means we're probably going to need some effort to keep Readerable.jsm and
Readability.js in sync, but the code in question is pretty trivial, so it
shouldn't be too difficult.

Differential Revision: https://phabricator.services.mozilla.com/D3687
2018-08-17 23:10:59 -07:00
Mark Banner
462116b7f9 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439
2018-08-31 05:59:17 +00:00
Felipe Gomes
f4a7677888 Bug 1487233 - Re-enable browser_startup_content.js on test-verify. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D4634
2018-08-29 23:29:53 -03:00
Johann Hofmann
35b727db51 Bug 1475840 - Don't fail browser_preferences_usage.js because browser.startup.record is only accessed on startup. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D4327
2018-08-29 05:44:35 +00:00