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

3408 Коммитов

Автор SHA1 Сообщение Дата
Simon Giesecke 661e25bf09 Bug 1692880 - Make Put accept DataType instead of wrapping UserDataType. r=xpcom-reviewers,necko-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D104850
2021-02-16 15:53:33 +00:00
Gijs Kruitbosch b94c805ecb Bug 1689592 - replace old http mailto handlers with https equivalents, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D105253
2021-02-16 13:30:17 +00:00
smolnar 1afbbe67e1 Backed out 5 changesets (bug 1691894) for causing hazard failures in nsXULPrototypeCache. CLOSED TREE
Backed out changeset 22dc870ee609 (bug 1691894)
Backed out changeset 58c31e9d6ae3 (bug 1691894)
Backed out changeset 7483e84149d8 (bug 1691894)
Backed out changeset f977d6cfa973 (bug 1691894)
Backed out changeset db4503476f34 (bug 1691894)
2021-02-15 16:43:23 +02:00
Simon Giesecke 3c29a68440 Bug 1691894 - Make Put accept DataType instead of wrapping UserDataType. r=xpcom-reviewers,necko-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D104850
2021-02-15 10:04:46 +00:00
Sylvestre Ledru b4f9be25d4 Bug 1519636 - Reformat recent changes to the Google coding style r=andi,necko-reviewers
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D105158
2021-02-15 08:49:20 +00:00
longsonr d5d9dcef4c Bug 1692663 - Replace LSCopyKindStringForMIMEType by UTTypeCopyDescription in nsOSHelperAppService.mm r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105101
2021-02-13 18:12:58 +00:00
Mark Banner 263d555274 Bug 1608272 - Remove 'this' as the second argument to 'ChromeUtils.import', use object destructuring instead (test-only changes). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D104683
2021-02-11 22:02:15 +00:00
Barret Rennie ba22e83fc5 Bug 1689261 - Remove TIME_TO_LOAD_EVENT_{START,END}_{NO_,}PRELOAD_MS probes r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D104786
2021-02-11 18:21:05 +00:00
Noemi Erli e9cf2ebf0d Backed out changeset 89dd5f05ca91 (bug 1678255) for causing assertion failures in BasePrincipal.cpp CLOSED TREE 2021-02-11 06:15:26 +02:00
Gijs Kruitbosch ee25637a13 Bug 1678255 - prompt for external protocol links whose loads were also triggered externally, instead of looping forever, r=pbz,nika
This passes around the "are we external" bit of load information a bunch,
such that the external protocol handling code has access to it.

In this bug and bug 1667468, I think ideally I would have used a check
if we're the OS default for a given protocol before continuing. However,
this information is currently unavailable on Linux (bug 1599713), and
worse, I believe is likely to remain unavailable in flatpak and other
such restricted environments (cf. bug 1618094 - we aren't able to find
out anything about protocol handlers from the OS).

So instead, we prompt the user if we are about to open a link passed
to us externally. There is a small chance this will be Breaking People's
Workflows, where I don't know whether anyone relies on Firefox happily
passing these URIs along to the relevant application (more convenient
than doing all the registry/API work yourself in scripts!) or anything
like that. To help with that, there's a pref,
`network.protocol-handler.prompt-from-external`, that can be created and
set to false to avoid prompting in this case.

Differential Revision: https://phabricator.services.mozilla.com/D103967
2021-02-10 23:49:21 +00:00
Simon Giesecke 12c0dee627 Bug 1688833 - Migrate LookupForAdd to WithEntryHandle in uriloader. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D104218
2021-02-09 18:19:41 +00:00
Tom Schuster 8e9a86f0c2 Bug 1690529 - List more valid iCalendar file extensions in extraMimeEntries. r=Gijs
Taken from the table on https://en.wikipedia.org/wiki/ICalendar

Differential Revision: https://phabricator.services.mozilla.com/D104310
2021-02-08 11:08:51 +00:00
Tom Schuster 9011e911cf Bug 1690051 - Make browser.download.sanitize_non_media_extensions work and test it. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103695
2021-02-03 10:55:33 +00:00
Moritz Birghan 1ce3e1a549 Bug 1688922 - Remove IsCertificateDistrustImminent UI. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D103059
2021-02-03 08:50:20 +00:00
Emilio Cobos Álvarez abe411131e Bug 1637651 - Make RegisterPreload slightly more efficient. r=smaug
I was hitting the assertion and was investigating a bit. This makes the
registration a bit faster, but doesn't change behavior.

Depends on D103567

Differential Revision: https://phabricator.services.mozilla.com/D103568
2021-02-01 14:59:48 +00:00
Emilio Cobos Álvarez fe36177806 Bug 1637651 - Assume non-quirks mode for style Link header preloads. r=smaug
This is an issue I found while going through this code and
writing/debugging a test for the bug at hand. Without this, the test in
the actual fix for this bug will fail to actually reuse the preloaded
stylesheet.

It seems reasonable to assume that the intersection of quirks mode
documents using link preload headers is small (and in that case we'd
parse the sheet twice, but oh well).

Differential Revision: https://phabricator.services.mozilla.com/D103567
2021-02-01 23:23:50 +00:00
Butkovits Atila dfd4e3978e Backed out changeset 0aab2ac0976a (bug 1690051) for causing failures on browser_bug676619.js. CLOSED TREE 2021-02-01 23:39:37 +02:00
Tom Schuster d861d0f45a Bug 1690051 - Make browser.download.sanitize_non_media_extensions work and test it. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103695
2021-02-01 18:22:23 +00:00
Emilio Cobos Álvarez 06078ea6e0 Bug 1598613 - Remove single-caller method in PreloadService. r=edgar
Just drive-by cleanup, no behavior change.

Depends on D103563

Differential Revision: https://phabricator.services.mozilla.com/D103564
2021-01-31 21:16:30 +00:00
Emilio Cobos Álvarez c2884081ee Bug 1685201 - Back out bug 1643204. r=mattwoodrow,smaug
Bug 1643204 really only papered over the issue of the active state being
messed up / the document becoming visible internally without notifying
media.

Bug 1572798 notifies media properly so that the visibility state is
consistent with what media thinks the visibility state is, so I think
there's no longer a reason to do this.

No other browser passes the test added in bug 1643204.

Differential Revision: https://phabricator.services.mozilla.com/D100836
2021-01-26 04:22:10 +00:00
Paul Zuehlcke 337cd9ea0e Bug 1685682 - Skip protocol handler permission dialog for addon callers. r=Gijs,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D101790
2021-01-18 19:02:31 +00:00
Gijs Kruitbosch b3aec77f8f Bug 1681249 - unbreak subframes navigating ancestor frames to custom protocols, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D101238
2021-01-14 20:17:44 +00:00
Micah Tigley 4210332570 Bug 1680637 - Rename TabDialogBox's manager to tabDialogManager r=marionette-reviewers,Gijs
To clarify the two separate SubDialog managers managed by TabDialogManager, this patch renames `_.dialogManager` to `._tabDialogManager`.

Depends on D100066

Differential Revision: https://phabricator.services.mozilla.com/D100955
2021-01-14 06:55:55 +00:00
Butkovits Atila 7742c03714 Backed out 4 changesets (bug 1680637, bug 1682395) for causing Marionette failures. CLOSED TREE
Backed out changeset 073e0be7db95 (bug 1680637)
Backed out changeset 552b91b31b0f (bug 1682395)
Backed out changeset c80de6c72779 (bug 1680637)
Backed out changeset d513e228b0ad (bug 1680637)
2021-01-13 02:13:06 +02:00
Micah Tigley c0ec6961ed Bug 1680637 - Rename TabDialogBox's manager to tabDialogManager r=marionette-reviewers,Gijs
To clarify the two separate SubDialog managers managed by TabDialogManager, this patch renames `_.dialogManager` to `._tabDialogManager`.

Depends on D100066

Differential Revision: https://phabricator.services.mozilla.com/D100955
2021-01-11 20:55:19 +00:00
Bogdan Tara 6101a13054 Backed out 3 changesets (bug 1680637, bug 1682395) for browser/base/content/* failures CLOSED TREE
Backed out changeset 270e2e3183de (bug 1682395)
Backed out changeset e3566f596187 (bug 1680637)
Backed out changeset 66563136c84e (bug 1680637)
2021-01-11 21:36:20 +02:00
Micah Tigley a3faaf4c5d Bug 1680637 - Rename TabDialogBox's manager to tabDialogManager r=marionette-reviewers,Gijs
To clarify the two separate SubDialog managers managed by TabDialogManager, this patch renames `_.dialogManager` to `._tabDialogManager`.

Depends on D100066

Differential Revision: https://phabricator.services.mozilla.com/D100955
2021-01-11 05:13:00 +00:00
Emilio Cobos Álvarez 3339819a8e Bug 1685832 - Remove some includes from PreloadService.h. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D101249
2021-01-11 02:35:41 +00:00
Emilio Cobos Álvarez 1dcf18b440 Bug 1685830 - Remove spurious check that prevents preload from working in non-http(s) sites. r=smaug
As it doesn't match other implementations, and it's confusing.

Differential Revision: https://phabricator.services.mozilla.com/D101248
2021-01-11 02:37:15 +00:00
Emilio Cobos Álvarez 72d0992fec Bug 1685816 - Don't fire rel=preload error events for invalid type/media/as attributes. r=smaug
This matches other browsers, https://github.com/w3c/preload/issues/155
is the spec issue. There was a test for invalid as values.

Differential Revision: https://phabricator.services.mozilla.com/D101243
2021-01-10 20:50:02 +00:00
Gijs Kruitbosch e2caf16515 Bug 1684006 - use the temp dir for downloads in uriloader tests, r=mak
This ensures that we don't leave downloads behind in race conditions, and that that
doesn't break future tests.

Differential Revision: https://phabricator.services.mozilla.com/D101041
2021-01-08 17:47:37 +00:00
Csoregi Natalia 98bdc4d778 Backed out changeset ac1a9dda65ed (bug 1684006) for xpcshell failures on downloads. CLOSED TREE 2021-01-08 18:31:07 +02:00
Gijs Kruitbosch 2a05ad9973 Bug 1684006 - use the temp dir for downloads in uriloader tests, r=mak
This ensures that we don't leave downloads behind in race conditions, and that that
doesn't break future tests.

Differential Revision: https://phabricator.services.mozilla.com/D101041
2021-01-08 14:30:50 +00:00
Gijs Kruitbosch 99d00629e6 Bug 1684183 - stop replacing file extensions for zip, json and xml files, and add a pref in case further issues appear for the other document types r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D100801
2021-01-06 19:16:48 +00:00
Paul Dill d6a13bfdd2 Bug 1672384 - Links to PDFs from other PDFs don't show the option 'Open with Firefox' r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D99577
2021-01-06 12:58:09 +00:00
Emilio Cobos Álvarez f4e06d4673 Bug 1684490 - Check an in-process window context for user interaction. r=smaug,edgar
In the case we click a link from inside the frame, we don't want to
check for activation from the parent window but ourselves.

It feels like using the sourceWindowContext for these checks is always
the right thing to do, but it's not always possible if we set the
location.href from an out-of-process parent. In this case, we fall back
to consuming user activation on the iframe itself. This is tested in
browbrowser_protocol_ask_dialog.js when run with fission enabled.

We could consider making the user activation stuff more
multiprocess-friendly, but it's not clear to me it's worth it for this
particular edge case.

Differential Revision: https://phabricator.services.mozilla.com/D100578
2021-01-04 20:54:07 +00:00
Narcis Beleuzu d7a6d44ef2 Backed out 2 changesets (bug 1684490) as per emilio`s request
Backed out changeset 1f44b3e9ec62 (bug 1684490)
Backed out changeset 7ad6088bb2c2 (bug 1684490)
2021-01-04 23:51:15 +02:00
Emilio Cobos Álvarez 5db3c765dd Bug 1684490 - Check an in-process window context for user interaction. r=smaug,edgar DONTBUILD
In the case we click a link from inside the frame, we don't want to
check for activation from the parent window but ourselves.

It feels like using the sourceWindowContext for these checks is always
the right thing to do, but it's not always possible if we set the
location.href from an out-of-process parent. In this case, we fall back
to consuming user activation on the iframe itself. This is tested in
browbrowser_protocol_ask_dialog.js when run with fission enabled.

We could consider making the user activation stuff more
multiprocess-friendly, but it's not clear to me it's worth it for this
particular edge case.

Differential Revision: https://phabricator.services.mozilla.com/D100578
2021-01-04 20:54:07 +00:00
Gijs Kruitbosch 61dfd2e32d Bug 1681619 - in browser_extension_correction.js clear finished downloads to avoid intermittents, r=mak
The finished downloads were removed, which meant that the next time the
download code asynchronously refreshed them, they were smaller than the last
time that they checked, which meant we got another `onChange` notification
for the download (which would still be finished / in error state), which
confused the test which expected 1 notification per download.

To avoid this, we clear finished downloads after each iteration inside the
test, instead of at the end.

Differential Revision: https://phabricator.services.mozilla.com/D100149
2020-12-22 11:08:19 +00:00
Sebastian Streich 4e9a38f624 Bug 1676221 - Add UX nits to unblock UI r=ckerschb,Gijs
Show save dialogue
***
Automaticly show Panel On Block
***
Keep Open/Save Dialogue with open panel
***
Keep User choise in downloadsView
***
Add Unblock option to Unblock panel
***
lint
***
add test

Differential Revision: https://phabricator.services.mozilla.com/D96448
2020-12-18 15:30:33 +00:00
Gijs Kruitbosch 8f053bc4d0 Bug 1681924 - add application/zip to extraMimeEntries to help recognize zip files, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D100009
2020-12-18 12:54:40 +00:00
Tom Schuster 7356fb9a6f Bug 1671930 - Add text/csv to extraMimeEntries to help recognize CSV files, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D100018
2020-12-18 13:26:01 +00:00
Simon Giesecke 9758d919eb Bug 1583109 - Use StringJoin(Append) where easily possible. r=nika
Bug 1583109 introduced new function templates StringJoin and StringJoinAppend.
These are now used to replace several custom loops across the codebase that
implement string-joining algorithms to simplify the code.

Differential Revision: https://phabricator.services.mozilla.com/D98750
2020-12-17 14:58:18 +00:00
Butkovits Atila a5ae3506b7 Backed out changeset 234ae5cb0ff8 (bug 1676221) for causing leaks. CLOSED TREE 2020-12-17 10:54:31 +02:00
Sebastian Streich ac54bcd9d6 Bug 1676221 - Add UX nits to unblock UI r=ckerschb,Gijs
Show save dialogue
***
Automaticly show Panel On Block
***
Keep Open/Save Dialogue with open panel
***
Keep User choise in downloadsView
***
Add Unblock option to Unblock panel
***
lint
***
add test

Differential Revision: https://phabricator.services.mozilla.com/D96448
2020-12-16 22:55:12 +00:00
Csoregi Natalia d8c9489b13 Backed out changeset 16d174e7c342 (bug 1583109) for bustage on nsReadableUtils.h. CLOSED TREE 2020-12-16 22:51:26 +02:00
Simon Giesecke 72babae175 Bug 1583109 - Use StringJoin(Append) where easily possible. r=nika
Bug 1583109 introduced new function templates StringJoin and StringJoinAppend.
These are now used to replace several custom loops across the codebase that
implement string-joining algorithms to simplify the code.

Differential Revision: https://phabricator.services.mozilla.com/D98750
2020-12-16 19:38:23 +00:00
Kartik Gautam f7ffcd09fb Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-15 10:34:54 +00:00
Dorel Luca 7320ae982a Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
Kartik Gautam caf549c200 Bug 1679758 - Remove trailing empty lines r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-13 13:28:30 +00:00