Граф коммитов

58 Коммитов

Автор SHA1 Сообщение Дата
Martin Thomson 222f4654e3 Bug 1745678 - Remove TLS 1.0/1.1 override UX, r=Gijs,mkaply,fluent-reviewers
I've erred on the side of removing code here.  I think that I got most of it,
but there was quite a bit of accrued code.

Thanks to Gijs for fluent fixups (and code cleanup).  This retains some notice
of the failed version.

Bug 1586846, Bug 1579285, Bug 1586846, and Bug 1617275 all added code here.

Differential Revision: https://phabricator.services.mozilla.com/D133591
2021-12-28 23:39:43 +00:00
Johann Hofmann 3d58a1fbfb Bug 941354 - Use innerMostURI on about:{neterror,certerror}. r=prathiksha,baku
This is to prevent issues with parsing the correct hostname for displaying and adding
exceptions for urls like view-source:.

Differential Revision: https://phabricator.services.mozilla.com/D94421
2020-10-27 10:55:51 +00:00
Butkovits Atila 9817823a41 Backed out changeset 2edd2bd119ff (bug 941354) for browser-chrome related failures. CLOSED TREE 2020-10-26 23:31:58 +02:00
Johann Hofmann a735fc4151 Bug 941354 - Use innerMostURI on about:{neterror,certerror}. r=prathiksha,baku
This is to prevent issues with parsing the correct hostname for displaying and adding
exceptions for urls like view-source:.

Differential Revision: https://phabricator.services.mozilla.com/D94421
2020-10-26 20:12:14 +00:00
Tim Huang 26fd85af70 Bug 1647825 - Part 2: Report the XFO and CSP: frame-ancestors error through the telemetry event. r=ckerschb,chutten,nhnt11
After user ticks the checkbox of allowing error reporting, we will
report the error through the telemetry event. The event includes the
error type, XFO policy, CSP policy, the frame uri and the top-level uri.

Differential Revision: https://phabricator.services.mozilla.com/D82332
2020-07-22 15:12:38 +00:00
Johann Hofmann 4540e975f8 Bug 1629826 - Re-enable event telemetry probes for certificate error pages. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D72514
2020-04-25 18:12:32 +00:00
Neil Deakin e4f91a3e2e Bug 1614713, move neterror actor over to the actor-based RemotePageChild, and move neterror-specific functions to the NetErrorChild subclass so that they cannot be accessed via other pages, r=johannh,mossop
Differential Revision: https://phabricator.services.mozilla.com/D65335

--HG--
extra : moz-landing-system : lando
2020-04-08 14:08:29 +00:00
Neil Deakin 6c0cc9783c Bug 1533951, move network error message listeners to NetErrorParent.jsm, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D51626

--HG--
extra : moz-landing-system : lando
2019-11-12 20:00:41 +00:00
Neil Deakin 39a97c89d5 Bug 1533951, base NetError handler on JSWindowActor, move message listeners out of browser.js and into JSWindowActorParent, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D51624

--HG--
extra : moz-landing-system : lando
2019-11-12 20:00:32 +00:00
prathiksha 770ea8cdd6 Bug 1563355 - Handle exceptionDialogButton click on certerror pages in AboutNetErrorhandler.jsm. r=johannh
Depends on D46438

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:39:16 +00:00
prathiksha f23a25ca16 Bug 1563355 - Remove AboutNetErrorResetPreferences and use RPM in aboutNetError.js to communicate with AboutNetErrorHandler. r=johannh
Depends on D46154

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:39:01 +00:00
prathiksha f70c312dac Bug 1563355 - Remove AboutNetErrorSetAutomatic and use RPM in aboutNetError.js to communicate with AboutNetErrorHandler.jsm. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D46154

--HG--
extra : moz-landing-system : lando
2019-10-28 20:38:45 +00:00
prathiksha 474ef9a0f2 Bug 1561443 - Move _getErrorMessageFromCode from NetErrorChild.jsm to aboutNetError.js. r=fluent-reviewers,flod,johannh
Differential Revision: https://phabricator.services.mozilla.com/D36542

--HG--
extra : moz-landing-system : lando
2019-09-17 09:49:59 +00:00
prathiksha 2a39a566d7 Bug 1553342 - Have Browser:CertExceptionError message exchanges happen over RPM. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D34581

--HG--
extra : moz-landing-system : lando
2019-09-05 20:04:03 +00:00
Victor Porof 55d8d8e0e0 Bug 1561435 - Format browser/actors/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 4aa9ae9a72e81f48229df25173d42d52490d2f5b
2019-07-05 09:46:28 +02:00
prathiksha 82a4475a6a Bug 1555438 - Remove getDetailedCertErrorInfo from NetErrorChild.jsm. r=johannh,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D33065

--HG--
extra : moz-landing-system : lando
2019-06-26 20:24:05 +00:00
Johann Hofmann 926df091cf Bug 1555627 - Set a learn more link on net error pages. r=prathiksha
Bug 1284835 removed the hard-coded learn more link on cert and net error pages, which worked
for cert error pages because they explicitly set their own learn more links, but net error
pages were relying on the default href to be set. This wasn't revealed until bug 1530348
made about:neterror part of the new error pages.

The solution is simply to explicitly set the correct learn more link to net error pages.

Note that in the case of PR_END_OF_FILE errors, we were not previously showing a "learn more"
link. That was not intentional, as far as I can tell, but was caused by the bug fixed in bug 1477875.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 23:26:43 +00:00
prathiksha b901cf9927 Bug 1552333 - Move onCertErrorDetails from NetErrorChild.jsm to aboutNetError.js. r=johannh,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D31901

--HG--
extra : moz-landing-system : lando
2019-06-18 03:54:21 +00:00
Boris Zbarsky 9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
prathiksha 325e222d30 Bug 1549561 - Move _setTechDetails from NetErrorChild.jsm to aboutNetError.js. r=johannh,flod
Differential Revision: https://phabricator.services.mozilla.com/D30852

--HG--
extra : moz-landing-system : lando
2019-05-30 06:43:14 +00:00
Johann Hofmann efaa2a219e Bug 1550209 - Clean up remnants of old clock skew error code in NetErrorChild.jsm. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D30432

--HG--
extra : moz-landing-system : lando
2019-05-15 17:29:35 +00:00
Johann Hofmann 94bea848e4 Bug 1545743 - Don't use validity.not{After,Before}LocalTime for parsing date information in NetErrorChild.jsm. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D30431

--HG--
extra : moz-landing-system : lando
2019-05-13 20:18:07 +00:00
Johann Hofmann 3736102bef Bug 1547695 - De-dupe #errorTryAgain on about:neterror/certerror. r=prathiksha
We were using the same ID on two elements, which kind of messed up things everywhere
our code reasonably expected only one element of the kind to exist. We just use a
class name now.

This also cleans up #advancedPanelErrorTryAgain which worked around this issue
by using a different ID.

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

--HG--
rename : browser/base/content/test/general/browser_bug435325.js => browser/base/content/test/about/browser_bug435325.js
extra : moz-landing-system : lando
2019-05-13 19:38:03 +00:00
prathiksha 04f8eeac8f Bug 1544610 - Part 1 - Have certerror captive portal message exchanges happen over RPM. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D28539

--HG--
extra : moz-landing-system : lando
2019-05-03 23:30:35 +00:00
monikamaheshwari bb5ca39415 Bug 1530335 Use the same date/time format everywhere on cert error pages r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D27875

--HG--
extra : moz-landing-system : lando
2019-05-06 06:13:58 +00:00
Cosmin Sabou 6128796e78 Backed out changeset 348e15018884 (bug 1530335) for turning bug 1540336 into permafail.
--HG--
extra : amend_source : 9177f13fa73fe36345cd82bc876b946649dd2e66
2019-04-26 21:20:55 +03:00
monikamaheshwari 1750bef8c2 Bug 1530335 Use the same date/time format everywhere on cert error pages r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D27875

--HG--
extra : moz-landing-system : lando
2019-04-26 15:21:34 +00:00
Syeda Asra Arshia Qadri aaa3bfa63b Bug 1477875: _getErrorMessageFromCode in NetErrorContent.jsm doesn't handle e.g. NSPR errors well. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D27331

--HG--
extra : moz-landing-system : lando
2019-04-16 20:40:27 +00:00
Paul Zuehlcke 7e178a2c6f Bug 1540685 - Fixed duplicate definition of URL getter. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D25606

--HG--
extra : moz-landing-system : lando
2019-04-01 13:39:04 +00:00
Johann Hofmann 204f870fd6 Bug 1530348 - Unfork aboutNetError.{xhtml,css}. r=nhnt11
The larger changesets in this patch are simply moving code from one file into the other with hg mv.

A short summary of the changes:

- I removed the forked redirection from AboutRedirector.cpp
- I deleted the original aboutNetError.xhtml and aboutNetError.css files
  and moved aboutNetError-new.xhtml and aboutNetError-new.css in their place instead.
- I removed the browser.security.newcerterrorpage.enabled pref and all its usages.
- I removed some localization strings and resources that went unused because of the above changes.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 09:33:58 +00:00
Carolina Jimenez Gomez 6db642bc0c Bug 1535786 - Fix the missing current date. r=johannh
The solution is to get which of all the errors is being shown in the web page, we can know that resting msg.data.code with the bases and getting which is the name of the parent div where we need to put the date on its child with id="wrongSystemTime_systemDate2".

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

--HG--
extra : moz-landing-system : lando
2019-03-27 11:13:26 +00:00
Carolina Jimenez Gomez 0f33068ca0 Bug 1483626 - Checks if subjectAltNames has elements that are not empty string, and if it has them, they will be remove, preventing incomplete r=johannh
messages to show to the user. r=johannh

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

--HG--
extra : moz-landing-system : lando
2019-03-14 15:45:55 +00:00
Johann Hofmann 6b5b6ed403 Bug 1529643 - Implement MitM priming on certificate error pages. r=keeler,mconley
Differential Revision: https://phabricator.services.mozilla.com/D22406

--HG--
extra : moz-landing-system : lando
2019-03-13 23:36:54 +00:00
Gurzau Raul c747f02899 Backed out 2 changesets (bug 1529643) for eslint failure at NetErrorChild.jsm on a CLOSED TREE.
Backed out changeset 000dfd4caca0 (bug 1529643)
Backed out changeset e4718a35d70b (bug 1529643)
2019-03-14 01:09:43 +02:00
Johann Hofmann 1235c91131 Bug 1529643 - Implement MitM priming on certificate error pages. r=keeler,mconley
Differential Revision: https://phabricator.services.mozilla.com/D22406

--HG--
extra : moz-landing-system : lando
2019-03-13 21:04:02 +00:00
Syeda Asra Arshia Qadri ca143a6bd0 Bug 1284835: Replaced Hardcoded URLs with Services.urlFormatter.formatURLPref r=johannh
Bug 1284835: Replaced Hardcoded URLs with Services.urlFormatter.formatURLPref r=reviewers

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

--HG--
extra : moz-landing-system : lando
2019-03-13 08:23:00 +00:00
Johann Hofmann 0788e90a43 Bug 1485670 - Improve error page styles in iframes. r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D21907

--HG--
extra : moz-landing-system : lando
2019-03-06 15:58:18 +00:00
SresthaSrivastava c55c512a05 Bug 1515943 - Generate telemetry events from context menu or middle click on cert error pages. r=johannh CLOSED TREE
--HG--
extra : rebase_source : 0a5fa640e2beb09a0d699480e32f2deaf36f5fca
extra : amend_source : 3c01a850ae6305bb8231b2aaffdb82e3950cde10
2019-03-01 11:15:37 +01: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 cc1d12d6fc Bug 1414804 - Fix test for expired certificate "helpful" messaging to users with broken system clocks. r=Gijs
We initially thought we would need a new test certificate to be able to test
clock skew, but I found that we can reliably produce the clock skew page by
making Firefox believe that the validity range of the cert used by
expired.example.com is the correct date. How we do that is described in
more detail in the test comments.

This patch also updates the formatter for the new clock skew page to not
show hours and minutes, as it did previously on the old clock skew warnings.

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

--HG--
extra : moz-landing-system : lando
2019-01-09 17:23:18 +00:00
Johann Hofmann 2467797afd Bug 1450784 - Add a new error page for MOZILLA_PKIX_ERROR_MITM_DETECTED. r=nhnt11,keeler
Differential Revision: https://phabricator.services.mozilla.com/D12874

--HG--
extra : amend_source : c86e6cd59e1e3e2b9220b3c0d6d48249bae8226e
2018-11-26 10:17:58 +01:00
Andreea Pavel 4edaf92f7d Backed out changeset 05e25df4db43 (bug 1450784) for failing bc at browser/base/content/test/static/browser_misused_characters_in_strings.js on a CLOSED TREE 2018-12-04 22:28:23 +02:00
Johann Hofmann cf046ffccf Bug 1450784 - Add a new error page for MOZILLA_PKIX_ERROR_MITM_DETECTED. r=nhnt11,keeler
Differential Revision: https://phabricator.services.mozilla.com/D12874

--HG--
extra : rebase_source : efa6b1470d1ef482304dd761b135dc7e6fa6ff4f
2018-11-26 10:17:58 +01:00
Johann Hofmann d7b28163d3 Bug 1500020 - Update cert error page copy based on UX suggestions. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D9080

--HG--
extra : moz-landing-system : lando
2018-10-19 14:50:59 +00:00
Johann Hofmann a63c05f4b8 Bug 1484255 - Add Telemetry Events for the certificate error pages. r=nhnt11,keeler
Differential Revision: https://phabricator.services.mozilla.com/D8281

--HG--
extra : moz-landing-system : lando
2018-10-17 13:10:26 +00:00
Johann Hofmann 9d309f8016 Bug 1492943 - Part 1 - Visually distinguish potentially dangerous certificate errors. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D8253

--HG--
extra : moz-landing-system : lando
2018-10-16 18:50:38 +00:00
Ciure Andrei 673efa0461 Backed out changeset 1119f9458b5d (bug 1484255) for browser_aboutCertError_telemetry.js failures CLOSED TREE 2018-10-16 03:33:42 +03:00
Johann Hofmann 9f4cd70201 Bug 1484255 - Add Telemetry Events for the certificate error pages. r=nhnt11,keeler
Differential Revision: https://phabricator.services.mozilla.com/D8281

--HG--
extra : moz-landing-system : lando
2018-10-15 23:00:08 +00:00
trisha 565dcd8412 Bug 1484761 - Change "security certificates" to "certificates" on the new cert error pages r=johannh
--HG--
extra : rebase_source : a48cbe38cbbaa7d5c0190af83dcc54fd37876526
2018-09-27 17:04:41 +08:00
arthur.iakab cb046df12d Backed out changeset 163c65f9c522 (bug 1484761)for browser chrome failures on browser_aboutCertError.js 2018-10-08 20:44:33 +03:00