Commit graph

53 commits

Author SHA1 Message Date
Mark Banner
960de47586 Bug 1808289 - Automatically replace Cu.reportError with console.error (browser/themes, browser/modules). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165848
2023-01-03 19:16:20 +00:00
Mark Banner
2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Mark Banner
8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Marco Bonardo
2226b10cd0 Bug 1782854 - Don't store local uri favicons after pageShow. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D155217
2022-08-23 15:46:05 +00:00
Narcis Beleuzu
0dce053a4a Backed out changeset 64f9bfbf800e (bug 1782854) for dt failure on browser_aboutdebugging_tab_favicons.js 2022-08-22 20:47:07 +03:00
Marco Bonardo
b98d9c21b2 Bug 1782854 - Don't store local uri favicons after pageShow. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D155217
2022-08-22 16:29:37 +00:00
Tooru Fujisawa
f3a8c52c53 Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Tooru Fujisawa
abf807a67a Bug 1772007 - Part 2: Use plain object for lazy getter in browser/modules/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D148008
2022-06-06 18:59:45 +00:00
Tooru Fujisawa
4f96aa80b2 Bug 1772360 - Remove unnecessary call for XPCOMUtils.defineLazyGlobalGetters. r=florian,webdriver-reviewers,webcompat-reviewers,denschub,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148168
2022-06-06 04:42:10 +00:00
Molnar Sandor
77402a5caa Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa
c7229a1a17 Bug 1772360 - Remove unnecessary call for XPCOMUtils.defineLazyGlobalGetters. r=florian,webdriver-reviewers,webcompat-reviewers,denschub,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D148168
2022-06-06 02:49:14 +00:00
Masatoshi Kimura
d46fcb69dc Bug 1472626 - Stop spamming favicon loading errors with HTTP failures to Browser Console. r=mossop
We already logs all HTTP messages. There is not point in spamming duplicate information.

Differential Revision: https://phabricator.services.mozilla.com/D137388
2022-02-04 13:27:16 +00:00
Marco Bonardo
567842ffe6 Bug 1662693 - Ignore no-store for root favicons. r=mossop
Usually we don't store icons returning a no-store header in response, because we
assume the website may be using them to indicate a state (with some kind of
notification badge).
Root favicons may be considered an exception though, since they are unlikely
to be replaced on-the-fly to show badges, and we use them to guess a favicon
when a page doesn't specify one.

Differential Revision: https://phabricator.services.mozilla.com/D93802
2020-10-22 10:12:09 +00:00
Andreu Botella
0fdda838ac Bug 1661075 - Switch the security checks when loading favicons depending on the crossorigin attribute. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D93168
2020-10-15 19:47:13 +00:00
Gijs Kruitbosch
88eef896a5 Bug 333811 - send referrer info for favicons and obey the referrer policy when doing so, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D85798
2020-08-04 22:19:52 +00:00
Frederik Braun
a7153982e8 Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Ian Moody
011b59d595 Bug 1536556 - Replace raw thrown Cr.ERRORs with Components.Exception. r=mossop,remote-protocol-reviewers,marionette-reviewers,whimboo,necko-reviewers,geckoview-reviewers,valentin,agi
Raw Cr.ERROR don't get stack information, same as throwing JS literals instead
of `new Error()`s.

This was done automatically with a new eslint rule that will be introduced in
the next commit.  One instance of a raw Cr.ERROR was not replaced since it is
used in a test that specifically checks the preservation of raw Cr values in
XPCJS.  The rule will be disabled for that instance.

Differential Revision: https://phabricator.services.mozilla.com/D28073
2020-05-05 17:41:36 +00:00
Coroiu Cristina
43be71277d Backed out 2 changesets (bug 1625500) for multiple failures on a CLOSED TREE
Backed out changeset 7d80233bcfcd (bug 1625500)
Backed out changeset 0a35b13dfcde (bug 1625500)
2020-04-17 15:36:05 +03:00
Gijs Kruitbosch
cc39a339a0 Bug 1625500 - fix use of .then(x, x) in the tree, r=marionette-reviewers,Standard8,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D68614
2020-04-17 11:41:49 +00:00
Mark Banner
2c4e35b0a6 Bug 1620218 - Automatic code fixes for Prettier 1.18.2 upgrade. r=mossop,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D65509

--HG--
extra : moz-landing-system : lando
2020-03-08 21:45:16 +00:00
Gijs Kruitbosch
c229dbc8a1 Bug 1526731 - handle image.http.accept pref inside netwerk instead of forcing all consumers to do the same dance, r=valentin,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D60568

--HG--
extra : moz-landing-system : lando
2020-01-23 08:36:48 +00:00
Marco Bonardo
7cc8dee6ea Bug 1600244 - Don't store favicons added after the initial page load. r=mossop
Icons added after the initial parsing are likely randomly generated to show badges,
thus they are not good for permanent storage, because they are transient and can
potentially flood the store.

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

--HG--
extra : moz-landing-system : lando
2019-12-04 18:21:09 +00:00
Marco Bonardo
a55bf4b9c0 Bug 1600242 - Stop storing favicons having Cache-Control: no-store. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D55289

--HG--
extra : moz-landing-system : lando
2019-12-04 18:20:49 +00:00
Neil Deakin
d12fb42226 Bug 1592157, convert LinkHandlerChild.jsm to JSWindowActor to support fission, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D51026

--HG--
extra : moz-landing-system : lando
2019-11-04 14:48:04 +00:00
monikamaheshwari
9d60e0d578 Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629

--HG--
extra : moz-landing-system : lando
2019-09-14 09:39:26 +00:00
Victor Porof
af7d1d3b67 Bug 1561435 - Format browser/modules/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : f3c632037a1064c41b1f8b02f477c854b2fb4362
2019-07-05 09:55:19 +02:00
Jonathan Kingston
f6680698bd Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881

--HG--
extra : moz-landing-system : lando
2019-02-27 23:42:27 +00:00
Jonathan Kingston
dd4c731d8c Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771

--HG--
extra : moz-landing-system : lando
2019-02-27 23:41:54 +00:00
Dorel Luca
4a4dcd57fa Backed out 4 changesets (bug 1525319) for Android failures in dom/base/test/test_progress_events_for_gzip_data.html
Backed out changeset b73f033efb41 (bug 1525319)
Backed out changeset 1d318d5c6b98 (bug 1525319)
Backed out changeset 6d73418988d4 (bug 1525319)
Backed out changeset 84ca79bd2dc3 (bug 1525319)
2019-02-25 04:06:11 +02:00
Jonathan Kingston
63ab2bd8aa Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881

--HG--
extra : moz-landing-system : lando
2019-02-24 20:27:55 +00:00
Jonathan Kingston
147e351e0b Bug 1525319 - Changing js to remove context from onStartRequest and onStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20771

--HG--
extra : moz-landing-system : lando
2019-02-25 00:07:42 +00:00
Christoph Kerschbaumer
08be3dab62 Bug 1529252: Remove the 2 from the various version to create a channel within nsIIOService.idl. r=valentin 2019-02-21 12:48:20 +01:00
Jonathan Kingston
3421b8fcff Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

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

--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +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
Dave Townsend
1c728fbeac Bug 1517029: Fail favicon requests when encountering an icon that requires credentials. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D15768

--HG--
extra : moz-landing-system : lando
2019-01-07 17:57:46 +00:00
Dave Townsend
db7545da18 Bug 1516658: Favicon requests should use an accept header appropriate for images. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D15778

--HG--
extra : moz-landing-system : lando
2019-01-07 17:43:23 +00:00
Dave Townsend
0f41ddb2a4 Bug 1513113: Bail out of loading icons if the content page has unloaded. r=mak
There is a problem in FaviconLoader where we can attempt to load icons after the
page has been unloaded somehow. Because DeferredTask pushes its task to the idle
queue there is a short gap between when DeferredTask's timer fires and when its
task starts. If the page is unloaded in that gap we are unable to cancel the
task and when it starts it fails to access the content page.

However, when the page unloads we do clear the list of icons and since there is
no reason to do anything when the list of icons is empty we can just bail out
of the load task early and never try to touch the content page in this case.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 17:12:53 +00: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
Dorel Luca
4ce99f5758 Backed out changeset 5516f3e7b817 (bug 1511903) for browser-chrome failures in browser/components/sessionstore/test/browser_attributes.js. CLOSED TREE
--HG--
extra : amend_source : ce52b72a7637a7a04f0f0c9531aecb4bf9ed8457
2018-12-04 15:20:13 +02:00
Gijs Kruitbosch
bbf6af58e6 Bug 1511903 - r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D13714

--HG--
extra : moz-landing-system : lando
2018-12-04 12:12:05 +00:00
Dave Townsend
73268fba43 Bug 1504470: Drop favicons above 2048x2048. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D13362

--HG--
extra : rebase_source : 23f76080b037dbae71d25b2851e03e4afd179d84
2018-11-28 13:38:42 -08:00
Dave Townsend
da469d9988 Bug 1504470: Switch to using a storage stream for caching favicon data. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D13361

--HG--
extra : rebase_source : 52a4012baa5ff921fb83fb43988c3eb797ab918c
2018-11-28 12:42:51 -08:00
Dave Townsend
3e18f3d532 Bug 1503696: Cache cookies in the same way we did before Firefox 63. r=mak
Previous to bug 1453751 favicons were loaded from the network by a <xul:image>
tag with validate="never". This caused us to always use any cached version if
possible. Bug 1453751 used a normal load type causing us to revalidate with the
server for each request. This switches the loader to using the cache if possible.

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

--HG--
extra : moz-landing-system : lando
2018-11-15 20:46:32 +00:00
Andreea Pavel
6cebff1713 Backed out changeset 655b8b4a0e67 (bug 1503696) for failing eslint at gecko/browser/base/content/test/favicons/browser_favicon_cache.js on a CLOSED TREE 2018-11-12 19:11:08 +02:00
Dave Townsend
918425999d Bug 1503696: Cache cookies in the same way we did before Firefox 63. r=mak
Previous to bug 1453751 favicons were loaded from the network by a <xul:image>
tag with validate="never". This caused us to always use any cached version if
possible. Bug 1453751 used a normal load type causing us to revalidate with the
server for each request. This switches the loader to using the cache if possible.

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

--HG--
extra : moz-landing-system : lando
2018-11-12 16:41:35 +00:00
Marco Bonardo
751325b9aa Bug 1488296 - Race condition when setting favicons for a browser with a changed currentURI. r=mossop
There is a race condition between the time we decide to fetch an icon and the time we actually store that icon, where the original browser currentURI may have changed.

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

--HG--
extra : moz-landing-system : lando
2018-09-13 13:24:41 +00:00
Dorel Luca
70d09db423 Backed out changeset fddb4d2af447 (bug 1488296) for browser-chrome failures on browser/components/originattributes/test/browser/browser_favicon_userContextId.js 2018-09-13 01:51:59 +03:00
Marco Bonardo
7cdcd1eef1 Bug 1488296 - Race condition when setting favicons for a browser with a changed currentURI. r=mossop
There is a race condition between the time we decide to fetch an icon and the time we actually store that icon, where the original browser currentURI may have changed.

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

--HG--
extra : moz-landing-system : lando
2018-09-12 17:07:15 +00:00
Mark Banner
691543ee89 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

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Dave Townsend
730ca3472e Bug 1473514: Display an empty space for the tab icon while waiting for the real favicon to appear. r=dao
This adds a simple empty box that is displayed when we're still loading an icon
but are no longer showing the throbber. Ideally I'd like to keep showing the
throbber and maintain the busy state but that seems more risky for now.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 18:27:36 +00:00