Commit Graph

2423 Commits

Author SHA1 Message Date
Doug Thayer
c9cbf586a8 Bug 1425144 - Init Jump list on lazy idle thread (js) r=Gijs
This is just the js side of the equation for initting jump lists
on a background thread. It should just be functionally equivalent
to the old code with the exception that it works asynchronously
on a promise of an array of urls rather than an nsIMutableArray.

MozReview-Commit-ID: 2handMr6FWS

--HG--
extra : rebase_source : bcd71b96778a3bbcc141513c9e5b0213accf8705
2018-07-10 15:34:28 -07:00
Axel Hecht
5bdc727943 Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws
Also changes the tooltip on the home button to be independent of the URLs
it opens, per dolske.

Some tests explicitly set browser.startup.homepage, but only through
SpecialPowers.putPrefEnv. That's a good compromise, given the extra
functionality there.

MozReview-Commit-ID: FPLxzi3jQAP

--HG--
extra : rebase_source : c2b014f2fb1c78ce04859344bd1803ef48d5d68d
2018-05-28 12:38:01 +02:00
Dave Townsend
dc25178740 Bug 1474431: Clear references to FaviconLoader and its channel when possible. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D2042

--HG--
extra : moz-landing-system : lando
2018-07-10 13:44:05 +00:00
Michael Kelly
41a5d0da21 Bug 1470505: Disable browser error collection for webextension errors. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D1792

--HG--
extra : moz-landing-system : lando
2018-07-09 18:27:22 +00:00
Tim Nguyen
e6c156f9ed Bug 1347204 - Implement the colors.ntp_background and colors.ntp_text properties. r=mconley
MozReview-Commit-ID: En8HajryiJS

--HG--
extra : rebase_source : 97b007626fc9c9ed6f49b3153b02a883b293ca08
2018-04-12 16:48:23 -04:00
Cosmin Sabou
4d56fa5458 Backed out 2 changesets (bug 1347204) for ESlint failure on browser_ext_themes_ntp_colors. CLOSED TREE
Backed out changeset 29caa8009784 (bug 1347204)
Backed out changeset 46922541d170 (bug 1347204)
2018-07-06 01:13:43 +03:00
Tim Nguyen
7620721be3 Bug 1347204 - Implement the colors.ntp_background and colors.ntp_text properties. r=mconley
MozReview-Commit-ID: En8HajryiJS

--HG--
extra : rebase_source : b0b321418a68c134772616cc47ab883f8ffb9078
2018-04-12 16:48:23 -04:00
Michael Kelly
b6450821b2 Bug 1471204: Disable browser error telemetry tests when scalars expire. r=Gijs,chutten
Differential Revision: https://phabricator.services.mozilla.com/D1891

--HG--
extra : moz-landing-system : lando
2018-07-05 16:12:13 +00:00
Dave Townsend
711c06e26b Bug 1473264: Catch failures to get the favicon expiration. r=mak
This ignores failures to get expiration data from favicon requests. It also adds
some safety to the rest of onStopRequest wrapping it in a try...catch block to
catch any unexpected errors and correctly reject the waiting promise.

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

--HG--
extra : moz-landing-system : lando
2018-07-04 12:36:13 +00:00
Dave Townsend
fd6bf727ed Bug 1472477: Follow redirects when loading favicons. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D1902

--HG--
extra : moz-landing-system : lando
2018-07-02 13:44:47 +00:00
Michael Kelly
38fdedebf7 Bug 1451702: Mangle file: and jar: paths in browser error reports. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D1868

--HG--
extra : rebase_source : 65ce32dac6b61414acd685f8787b5709a0070b54
extra : amend_source : 51fb635ec9b8cbdc27917f95f72583d03b5322a2
extra : intermediate-source : 28564cd34c706e909df136c4c0ea374f4836a344
extra : source : 71156adbd18ecb9f5b4d09638881a3714c71244b
2018-06-28 11:19:24 -07:00
Dave Townsend
d8b7fb22e3 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850
Differential Revision: https://phabricator.services.mozilla.com/D1869

--HG--
rename : browser/base/content/test/general/browser_bug408415.js => browser/base/content/test/favicons/browser_bug408415.js
rename : browser/base/content/test/general/browser_bug550565.js => browser/base/content/test/favicons/browser_bug550565.js
rename : browser/base/content/test/general/browser_favicon_change.js => browser/base/content/test/favicons/browser_favicon_change.js
rename : browser/base/content/test/general/browser_favicon_change_not_in_document.js => browser/base/content/test/favicons/browser_favicon_change_not_in_document.js
rename : browser/base/content/test/general/browser_subframe_favicons_not_used.js => browser/base/content/test/favicons/browser_subframe_favicons_not_used.js
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon1.ico
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon2.ico
rename : browser/base/content/test/general/file_bug970276_popup1.html => browser/base/content/test/favicons/file_bug970276_popup1.html
rename : browser/base/content/test/general/file_bug970276_popup2.html => browser/base/content/test/favicons/file_bug970276_popup2.html
rename : browser/base/content/test/general/file_favicon_change.html => browser/base/content/test/favicons/file_favicon_change.html
rename : browser/base/content/test/general/file_favicon_change_not_in_document.html => browser/base/content/test/favicons/file_favicon_change_not_in_document.html
rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_generic_favicon.ico
rename : browser/base/content/test/general/file_with_favicon.html => browser/base/content/test/favicons/file_with_favicon.html
extra : rebase_source : 6372b2681a59d267f966e9fa2ca9a54e3ff0cea0
extra : intermediate-source : b11aa832c41ac5beef9065f804d11fb7c9887990
extra : source : 638eb8a41245f6d9932861afda21edd5e0b2618a
2018-06-28 16:06:09 -07:00
J. Ryan Stinnett
84c4eba82e Bug 1365626 - Remove View MathML Source feature. r=mconley
The in-tree version of View MathML Source appears to have low usage, so it seems
reasonable to remove.  A similar feature is available as an add-on.

In recent months, the in-tree version has actually been broken, which wasn't
noticed for quite a while.  This adds further evidence for removal given the
lack of maintenance and interest in this feature.

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

--HG--
extra : moz-landing-system : lando
2018-06-28 20:45:31 +00:00
Doug Thayer
abe46fa52a Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI

--HG--
extra : rebase_source : ef8fa174f902e6abd397fb80294e83843120aa81
2018-02-14 09:11:49 -08:00
Luca Greco
a895c895dc Bug 1459613 - Show extension name in PermissionUI / webrtcUI doorhangers and menus items. r=johannh
MozReview-Commit-ID: 2NbbsWkxDHm

--HG--
extra : rebase_source : eba0db59a07266a6d3d2f0829dd886d5375b296e
2018-05-16 19:32:42 +02:00
Dorel Luca
d296624690 Backed out 5 changesets (bug 1340498) for build bustage due to conflicts with bug 1470325. a=backout
Backed out changeset 28bedb658af4 (bug 1340498)
Backed out changeset f950a2310e26 (bug 1340498)
Backed out changeset 5fcd31c65fe0 (bug 1340498)
Backed out changeset 515bb5e24dd7 (bug 1340498)
Backed out changeset 79a8619bd3e2 (bug 1340498)
2018-06-27 14:05:20 +03:00
Dorel Luca
f51c4fa5d9 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-27 13:26:49 +03:00
shindli
575a9e53cb Backed out changeset 28564cd34c70 (bug 1451702) for bc failures in browser/modules/test/browser/browser_BrowserErrorReporter_nightly.js on a CLOSED TREE 2018-06-27 03:42:26 +03:00
Michael Kelly
fd2c510573 Bug 1451702: Mangle file: and jar: paths in browser error reports.
--HG--
extra : rebase_source : d57ca43e7e9310516d3e7568bee7c4e658f60ef6
extra : intermediate-source : 523b4c1d489c29d79e5782b62f01d21b9fc07eb2
extra : source : 71156adbd18ecb9f5b4d09638881a3714c71244b
2018-05-18 15:34:11 -07:00
Gurzau Raul
729b75ccb4 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-27 00:55:38 +03:00
Kris Maglione
33d055eb2d Bug 1470023: Lazily load PluginContent.jsm when it's first required. r=felipe
MozReview-Commit-ID: 2n9NP5mEEcG

--HG--
extra : source : 064e448df638efc4a99fdf9f400d1eac2b7505ca
extra : amend_source : 66687c347238d43c24e5cc8080b102097b43b3ac
extra : intermediate-source : 1adc0372343e6ca2248f3c16cede6a103aebcaa7
2018-06-24 17:33:55 -07:00
shindli
13098ab1ef Backed out 3 changesets (bug 1470023, bug 1469719, bug 1470965) for | toolkit/components/perfmonitoring/tests/browser/browser_compartments.js on a CLOSED TREE
Backed out changeset bab121b4dd84 (bug 1469719)
Backed out changeset d28d3a80e781 (bug 1470965)
Backed out changeset 1adc0372343e (bug 1470023)
2018-06-26 22:57:54 +03:00
Kris Maglione
d9da2cdb02 Bug 1470023: Lazily load PluginContent.jsm when it's first required. r=felipe
MozReview-Commit-ID: 2n9NP5mEEcG

--HG--
extra : rebase_source : 4357e78d02e7c3f6af6cfea1e0681e50476bddcb
extra : source : 064e448df638efc4a99fdf9f400d1eac2b7505ca
2018-06-24 17:33:55 -07:00
Michael Kelly
80e7768083 Bug 1470587: Uninitialize reporter created during test. r=mossop
At some point, the matching call to reporter.uninit got removed from this test.
The result is that the reporter still exists and is still collecting errors
during the rest of the tasks in the file. In most tasks, this isn't an issue
since we use reporter.handleMessage to test message handling at a per-reporter
level.

But the telemetry measures are shared between multiple reporters, thus they are
susceptible to interference from other running reporter instances.

The error that is being logged when this test fails is from the test add-on
created in testAddonIDMangle. My best guess is that the error logged by the
add-on is being processed during an idle moment in another task, since we
schedule processing to be delayed until the browser is idle. It seems this
scheduling is pretty consistent on certain Linux platforms.

Differential Revision: https://phabricator.services.mozilla.com/D1836
2018-06-26 18:31:06 +00:00
Bogdan Tara
d2fb3a8812 Backed out 5 changesets (bug 1340498) for build bustages on nsDOMCSSAttrDeclaration.h CLOSED TREE
Backed out changeset 9ebcdb66ceff (bug 1340498)
Backed out changeset 63321093bb70 (bug 1340498)
Backed out changeset f8c799971f81 (bug 1340498)
Backed out changeset 21d8c1fbbbd1 (bug 1340498)
Backed out changeset fa40c179eb0d (bug 1340498)
2018-06-26 21:31:09 +03:00
arthur.iakab
fc7e217166 Backed out 5 changesets (bug 1340498) for build bustages on SelectionChangeListener.h on a CLOSED TREE
Backed out changeset c89b86622d38 (bug 1340498)
Backed out changeset b270d4a01986 (bug 1340498)
Backed out changeset 8ed32495b46f (bug 1340498)
Backed out changeset df9a67c58183 (bug 1340498)
Backed out changeset a5977e0708ea (bug 1340498)
2018-06-26 07:59:01 +03:00
Doug Thayer
0a912f9667 Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI

--HG--
extra : rebase_source : fd064e53e8645c3914188c05e71c8800d6f2174b
2018-02-14 09:11:49 -08:00
Doug Thayer
4dd5940382 Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI

--HG--
extra : rebase_source : 1190d4f127453cdcb692deb5982e92a93e236b9e
2018-02-14 09:11:49 -08:00
Doug Thayer
22f93b18ef Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI

--HG--
extra : rebase_source : 1190d4f127453cdcb692deb5982e92a93e236b9e
2018-02-14 09:11:49 -08:00
arthur.iakab
8b1be0e972 Backed out 5 changesets (bug 1340498) for build bustages on SelectionChangeListener.h on a CLOSED TREE
Backed out changeset fae677707059 (bug 1340498)
Backed out changeset 2adde1d1742a (bug 1340498)
Backed out changeset a444ab9cefde (bug 1340498)
Backed out changeset e2ac49ef2034 (bug 1340498)
Backed out changeset 6465310b3de9 (bug 1340498)
2018-06-26 03:53:21 +03:00
Doug Thayer
41d49cecec Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI

--HG--
extra : rebase_source : 148555189f73fb29a48296215e367c406f3f0286
2018-02-14 09:11:49 -08:00
Mark Banner
5b8ba7f27e Bug 1452645 - Remove load in sidebar functionality. r=lina,mak
Based on patch by mixedpuppy.

MozReview-Commit-ID: BZwOtr4VbCH

--HG--
extra : rebase_source : 2e3ad3fedaf82d0e5d3db9bcebf1c2faa46447e7
2018-06-06 21:00:45 +01:00
Michael Kelly
102c99a2d0 Bug 1461439: Enable browser error telemetry on non-Nightly channels. r=Gijs
MozReview-Commit-ID: GAwbFC49b8H

--HG--
rename : browser/modules/test/browser/browser_BrowserErrorReporter.js => browser/modules/test/browser/browser_BrowserErrorReporter_nightly.js
extra : rebase_source : 34673db22aa83be183cff403b719f97884400cac
extra : source : 679189574ff3e79298ead44b35484c549356b086
2018-06-05 11:15:54 -07:00
Mark Striemer
549ae82f55 Bug 1446101 - Part 4: Remove old alltabs code, rename alltabs-popup to newtab-popup r=dao
MozReview-Commit-ID: 1U0Jg9bpEGV

--HG--
extra : rebase_source : 08a4f7dc03efefe447bdff10b22bca69fce157fe
2018-06-06 16:34:49 -05:00
Mark Striemer
97b891af2b Bug 1446101 - Part 2: Convert the all tabs panel to photon styles r=dao
MozReview-Commit-ID: 3VzqnG6X5rw

--HG--
rename : browser/modules/TabsPopup.jsm => browser/modules/TabsList.jsm
extra : rebase_source : f31401acae04607d292972cd4ab783334d2b0242
2018-06-06 15:48:21 -05:00
Mark Striemer
ac23920bdc bug 1446101 - Part 1: Extract a common TabsListBase class from TabsPopup r=dao
MozReview-Commit-ID: KPvk0fVoGzG

--HG--
extra : rebase_source : d5d4cf3682cdfdb199f6d934e2e0d13794780b85
2018-05-15 18:40:07 -05:00
Cosmin Sabou
4c18cd4036 Merge inbound to central. a=merge
--HG--
rename : servo/components/style/properties/longhand/box.mako.rs => servo/components/style/properties/longhands/box.mako.rs
2018-06-21 04:16:40 +03:00
Jonathan Kew
7a02cac781 Bug 1469518 - Ensure history sanitization for "today" reaches all the way back to exactly midnight. r=mak 2018-06-20 12:34:02 +01:00
Tim Nguyen
996e1783ef Bug 1467423 - Make findbar textbox focused state follow theme properties. r=jaws
MozReview-Commit-ID: GfkUVIdmWjw

--HG--
extra : rebase_source : fe80a319a8a092df757dbae3ade800c8b374bfd9
2018-06-19 15:25:49 +01:00
Felipe Gomes
7b71d2b9f8 Bug 1466256 - Fix how PageStyleHandler.jsm gets the message manager. r=Gijs
This should make it work for both remote and non-remote pages.

MozReview-Commit-ID: CpnGd0PoTGn

--HG--
extra : rebase_source : 5aec372dfcc4e7ba22cd16fa7eee15ed897a6fb7
2018-06-18 15:11:00 -03:00
Gijs Kruitbosch
ef554bc30a Bug 1466379 - fall back to currentURI in case images are blocked, r=bz,dao
MozReview-Commit-ID: FW2f18pF4t5

--HG--
extra : rebase_source : 9e9f9bf7959b32aec57945bd14722e4c5b76ce91
2018-06-07 16:20:29 +01:00
Valentin Gosu
a8e3a8c349 Bug 1448330 - Make nsIURI.clone a private method r=mayhemer
MozReview-Commit-ID: 1efpeaEPaXP

--HG--
extra : rebase_source : e660f1e5bcae9b7119bc5b37713691069272b375
2018-06-14 13:05:43 +02:00
Sebastian Hengst
7a65526994 Bug 1469872 - update bugzilla products and components in moz.build files: webextensions. r=nalexander
MozReview-Commit-ID: JtvcjQKclJf

--HG--
extra : rebase_source : 3afdf48c2e0ed107c2122bddab7d275f11d605f2
2018-06-20 21:41:59 +03:00
Dale Harvey
4696947f19 Bug 1461656 - Ask permission when site wants to autoplay media. r=flod,johannh
MozReview-Commit-ID: Fc2IUZK90eu

--HG--
extra : rebase_source : 197ea2f48d6ad07cf1cf3c0b572121bbb3d69252
2018-05-18 12:54:33 +01:00
Dorel Luca
b53fbe3617 Merge mozilla-central to autoland 2018-06-15 05:43:31 +03:00
Adam Gashlin
54b423cf8e Bug 1466071: Part 1: Prevent orderedWindows from changing while iterating. r=mikedeboer
--HG--
extra : histedit_source : fb13804cd558861c9a483a10e8451c571c4325c4
2018-06-05 13:47:58 -07:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Bianca Danforth
ea4aa07dab Bug 1465694 - Add tab event telemetry for Savant Shield study; r=dao
These probes will register and record (for the duration of the study only):
* When a tab opens.
* When a tab closes.
* When a tab is selected.

MozReview-Commit-ID: BvknEH0ofS0

--HG--
extra : rebase_source : fecb98743781823f9fd08001b88d13f5c094b461
2018-06-06 03:44:48 -07:00
Bianca Danforth
920ce3f006 Bug 1465685 - Add Password Manager probes for Savant Shield study; r=MattN
These probes will register and record (for the duration of the study only):
* When the user is prompted by the Password Manager
* When the user saves their login information through the Password Manager prompt
* When the user updates their login information through the Password Manager prompt
* When the user uses login information stored by the Password Manager

Both the 'pwmgr' and 'pwmgr_use' probe have an 'extra' field called 'flow_id'. This is a tab identifier. For a given session, flow_id remains constant, even if the tab is moved to a different index within the same window. Tabs at the same index in different windows will have different flow_ids.

MozReview-Commit-ID: CoBNl6lUQmH

--HG--
extra : rebase_source : 3708e443de487766ff8bf38237a462519a9db82b
2018-06-07 03:23:47 -07:00
Bianca Danforth
d732b7f071 Bug 1465697 - Add menu open probes for Savant Shield study; r=jaws
These probes will register and record (for the duration of the study only):
* When the library menu opens.
* When the hamburger menu opens.
* When the dotdotdot menu opens.

These will be captured in existing and new windows.

Note: The library panel is dynamically added and removed from the document (see PanelUI.js for where the panel is created and removed), so a listener can't be added to it in advance. However, the library menu "ViewShowing" event bubbles up to the navBar in its default location. A separate listener is needed if it is moved to the overflow panel via Hamburger > Customize.

MozReview-Commit-ID: EBBBgXAQnxE

--HG--
extra : rebase_source : 83ee5cb70e11effed0ef3b8a66251dc712f55bad
2018-06-06 06:26:38 -07:00