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

3679 Коммитов

Автор SHA1 Сообщение Дата
Shane Hughes 7810a6da05 Bug 1747343 - Add pref to set default action for new mimetypes. r=Gijs,fluent-reviewers,preferences-reviewers
When downloading a file, we check for existing mime types and construct
a new one if it's unrecognized. Mime types have a flag,
alwaysAskBeforeHandling, that determines whether the unknown content
type dialog should be opened before handling the file. Before bug
1733492, the default value for that flag was simply true. Since the new
downloads flow is intended to avoid unnecessary steps, the default value
was changed to the inverted value of the new downloads panel
improvements pref. This patch adds a new pref that the mime info
constructor will read in configuring the flag's value. If the
improvements pref is not enabled, then the flag will be true, so the UCT
dialog will open. If the improvements pref is enabled, then it'll use
the value of the new pref. Also add a an interface for the pref to the
about:preferences UI, and automatically migrate a false value for
browser.download.improvements_to_download_panel to a true value for this
pref. I'm updating some tangentially related test files since they
happen to be touched slightly by this change. Strictly speaking they
would still work, but if the pref value was somehow changed from the
default they would fail.

Differential Revision: https://phabricator.services.mozilla.com/D143002
2022-04-15 18:13:11 +00:00
Iulian Moraru 6c1743090b Backed out changeset 661c496ff0bd (bug 1731898) for causing bc failures on browser_first_prompt_not_blocked_without_user_interaction.js. CLOSED TREE 2022-04-13 21:54:28 +03:00
Sarah Clements a63dfc84ab Bug 1731898 - Change protocol handling logic for non-standard cases r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D141859
2022-04-13 17:13:50 +00:00
Butkovits Atila f90c8918d4 Backed out changeset 543a78ca4fa9 (bug 1747343) for causing mochitest failures at browser_bug676619.js. CLOSED TREE 2022-04-13 03:31:53 +03:00
Shane Hughes 9a0bc90754 Bug 1747343 - Add pref to set default action for new mimetypes. r=Gijs,fluent-reviewers,preferences-reviewers
When downloading a file, we check for existing mime types and construct
a new one if it's unrecognized. Mime types have a flag,
alwaysAskBeforeHandling, that determines whether the unknown content
type dialog should be opened before handling the file. Before bug
1733492, the default value for that flag was simply true. Since the new
downloads flow is intended to avoid unnecessary steps, the default value
was changed to the inverted value of the new downloads panel
improvements pref. This patch adds a new pref that the mime info
constructor will read in configuring the flag's value. If the
improvements pref is not enabled, then the flag will be true, so the UCT
dialog will open. If the improvements pref is enabled, then it'll use
the value of the new pref. Also add a an interface for the pref to the
about:preferences UI, and automatically migrate a false value for
browser.download.improvements_to_download_panel to a true value for this
pref. I'm updating some tangentially related test files since they
happen to be touched slightly by this change. Strictly speaking they
would still work, but if the pref value was somehow changed from the
default they would fail.

Differential Revision: https://phabricator.services.mozilla.com/D143002
2022-04-12 22:32:45 +00:00
Paul Zuehlcke c102462ad6 Bug 1746383 - Set URLBar pageProxyState to invalid for onLocationChange triggered by SessionStore. r=nika,dao
Differential Revision: https://phabricator.services.mozilla.com/D138823
2022-04-12 14:41:06 +00:00
Jan Rio Krause 057785b6d5 Bug 1519200 - Remove `NS_ERROR_FILE_TARGET_DOES_NOT_EXIST` in favor of `NS_ERROR_FILE_NOT_FOUND`. r=xpcom-reviewers,nika,dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D77575
2022-04-05 15:17:03 +00:00
Butkovits Atila 393fc50e58 Backed out 4 changesets (bug 1735746) for causing failures at browser_protocol_custom_sandbox.js. CLOSED TREE
Backed out changeset 703dfd92c775 (bug 1735746)
Backed out changeset 3b06ed08d93b (bug 1735746)
Backed out changeset 9968278b9efe (bug 1735746)
Backed out changeset 49f2e283115d (bug 1735746)
2022-04-05 16:04:29 +03:00
Paul Zuehlcke 69b5c88193 Bug 1735746 - External protocol navigation sandbox tests. r=nika
Depends on D141133

Differential Revision: https://phabricator.services.mozilla.com/D141134
2022-04-05 11:31:55 +00:00
Paul Zuehlcke 216bf2aef3 Bug 1735746 - Log an error message to the web console for blocked external protocol navigation from sandbox. r=ckerschb
Depends on D141132

Differential Revision: https://phabricator.services.mozilla.com/D141133
2022-04-05 11:31:54 +00:00
Paul Zuehlcke dd7683cee3 Bug 1735746 - Add a pref and limit external protocol sandbox blocking to Nightly. r=ckerschb,farre
Depends on D141131

Differential Revision: https://phabricator.services.mozilla.com/D141132
2022-04-05 11:31:54 +00:00
Paul Zuehlcke 720e7605fe Bug 1735746 - Block external protocol navigation from sandboxed contexts. r=nika,ckerschb,Gijs,smaug
Differential Revision: https://phabricator.services.mozilla.com/D141131
2022-04-05 11:31:53 +00:00
Gijs Kruitbosch 7298feb0ee Bug 1753696 - move common setup/init tasks in head.js files to use add_setup, r=Standard8
Without this, changing to add_setup in individual test files causes the tasks to be reordered, which causes tests to fail.

I also had to adjust an enterprise policy test that was expecting setup tests to run inbetween tasks.

Differential Revision: https://phabricator.services.mozilla.com/D142457
2022-03-30 16:16:43 +00:00
Gijs Kruitbosch 8e67201171 Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 16:16:42 +00:00
Norisz Fay acdd6851cd Backed out 2 changesets (bug 1753696) for causing multiple dt and bc failures CLOSED TREE
Backed out changeset 67fd9edfbcea (bug 1753696)
Backed out changeset a9d957ea887b (bug 1753696)
2022-03-30 12:17:55 +03:00
Gijs Kruitbosch 27039e2946 Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D141437
2022-03-30 08:18:51 +00:00
Geoff Lankow 6e593440a2 Bug 1753819 - Prevent download improvements migration in Thunderbird. r=Gijs
The migration from "always ask" to "save to disk" is not wanted in Thunderbird.

Rather than flip the preference (which may have further side effects and will go away some day), I would rather just stop the migration code from running in Thunderbird.

Differential Revision: https://phabricator.services.mozilla.com/D142293
2022-03-29 22:06:15 +00:00
Gijs Kruitbosch 857af4fe02 Bug 1743653 - tests for external protocol handler redirection, r=nika CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D132528
2022-03-29 08:25:46 -04:00
Cristian Tuns 6a5e277a4c Backed out changeset 6573975cfe40 (bug 1743653) for causing mochitest failures on browser_protocol_ask_dialog_permission.js CLOSED TREE 2022-03-29 08:16:09 -04:00
Gijs Kruitbosch b44e6c8261 Bug 1743653 - tests for external protocol handler redirection, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D132528
2022-03-29 11:09:01 +00:00
Barret Rennie f3b8dc0cab Bug 1753369 - Use sync PathUtils directory getters on mainthread in uriloader/ r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D140144
2022-03-10 15:16:43 +00:00
Gijs Kruitbosch 63f7179055 Bug 749872 - remove unused/not-run test_handlerApps.xhtml, r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D139706
2022-02-25 22:18:19 +00:00
Gijs Kruitbosch 42b2e23515 Bug 1747561 - fix intermittents in browser_open_internal_choice_persistence.js by enforcing which window is active, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D139325
2022-02-22 16:11:47 +00:00
Yulia Startsev 79409316d1 Bug 1742437 - re-scope all generic module/script loader files under js/loader; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D138133
2022-02-21 15:39:09 +00:00
Peter Van der Beken 61f7e59993 Bug 1747033 - "Back" does not work correctly for pages with multipart/x-mixed-replace and history.replaceState. r=smaug,necko-reviewers,valentin
multipart/x-mixed-replace loads don't start a new load for parts other than the first,
they just call OnStartRequest/OnStopRequest for every part. The nsDocShell code was
trying to set the active entry to the loading entry for these loads, but because we
never started a new load after the first part, the loading entry would be null and we'd
just clear the active entry. history.replaceState would then try to replace the active
entry, but finding none it would just add a new one.

Differential Revision: https://phabricator.services.mozilla.com/D138464
2022-02-19 08:30:35 +00:00
smolnar 88503e9cc6 Backed out 12 changesets (bug 1742437) for causing build bustages in dom/script/ScriptTrace.h CLOSED TREE
Backed out changeset c11cffaded9c (bug 1742437)
Backed out changeset 0527d227c6b6 (bug 1742437)
Backed out changeset 967e68ed5f56 (bug 1742437)
Backed out changeset 22649272ffae (bug 1742437)
Backed out changeset e3fe772947bf (bug 1742437)
Backed out changeset 467f757b6580 (bug 1742437)
Backed out changeset bf411e44f622 (bug 1742437)
Backed out changeset 130bd544f3f4 (bug 1742437)
Backed out changeset ea775927f4ab (bug 1742437)
Backed out changeset c33b42cabd55 (bug 1742437)
Backed out changeset 0a3d9301244b (bug 1742437)
Backed out changeset 46d45c7bae2f (bug 1742437)
2022-02-18 15:14:56 +02:00
Yulia Startsev bb2c17bae7 Bug 1742437 - re-scope all generic module/script loader files under js/loader; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D138133
2022-02-18 12:45:53 +00:00
Norisz Fay 4c85ac47c5 Backed out 12 changesets (bug 1742437) for causing Bp-hybrid bustages on ModuleLoader.obj
Backed out changeset 7d5683180ac3 (bug 1742437)
Backed out changeset a48aff5f2555 (bug 1742437)
Backed out changeset 7e54a223001d (bug 1742437)
Backed out changeset 3a34d557d474 (bug 1742437)
Backed out changeset f29451ea18dc (bug 1742437)
Backed out changeset c0bd1d29be62 (bug 1742437)
Backed out changeset 8b970fb6e4e6 (bug 1742437)
Backed out changeset 729c48e34d6b (bug 1742437)
Backed out changeset 9355004c7f6a (bug 1742437)
Backed out changeset 0a5f61274aed (bug 1742437)
Backed out changeset a50f60a612d3 (bug 1742437)
Backed out changeset 0ac6d9d26e2b (bug 1742437)
2022-02-18 00:00:41 +02:00
Yulia Startsev 499559431e Bug 1742437 - re-scope all generic module/script loader files under js/loader; r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D138133
2022-02-17 15:57:52 +00:00
Gijs Kruitbosch 2f5e29730a Bug 1753004, r=mhowell
Depends on D138641

Differential Revision: https://phabricator.services.mozilla.com/D138321
2022-02-15 17:08:09 +00:00
Gijs Kruitbosch 6d69d00a5d Bug 1753004, r=dveditz,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D138320
2022-02-15 17:08:08 +00:00
Mark Banner 4c2eeb7443 Bug 1755297 - Match ESLint's definition of structuredClone to where it is actually defined. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D138656
2022-02-15 15:19:19 +00:00
Noemi Erli b8f5c4835b Backed out 3 changesets (bug 1753004) for causing xpc failures in test_DownloadsViewableInternally.js CLOSED TREE
Backed out changeset 2846598b65fd (bug 1753004)
Backed out changeset 05000c4c936d (bug 1753004)
Backed out changeset 372676134ff5 (bug 1753004)
2022-02-14 21:48:12 +02:00
Gijs Kruitbosch 4a844f9dd4 Bug 1753004, r=mhowell
Depends on D138320

Differential Revision: https://phabricator.services.mozilla.com/D138321
2022-02-14 14:48:05 +00:00
Gijs Kruitbosch ff67cf75ad Bug 1753004, r=dveditz,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D138320
2022-02-14 14:48:04 +00:00
Paul Zuehlcke 7509317856 Bug 1745253 - Test, r=Gijs
Depends on D133392

Differential Revision: https://phabricator.services.mozilla.com/D133393
2022-02-14 12:06:52 +00:00
Iulian Moraru 5451258987 Backed out 2 changesets (bug 1753004) for causing mochitest failures on browser_download_open_with_internal_handler.js. CLOSED TREE
Backed out changeset 038f733be6ef (bug 1753004)
Backed out changeset bede2b364102 (bug 1753004)
2022-02-12 01:09:41 +02:00
Gijs Kruitbosch 912854cac5 Bug 1753004, r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D138321
2022-02-11 21:13:37 +00:00
Gijs Kruitbosch 0bb0b4ea48 Bug 1753004, r=dveditz,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D138320
2022-02-11 21:13:36 +00:00
Marian-Vasile Laza 2f69192421 Backed out 2 changesets (bug 1753004) for causing build bustages. CLOSED TREE
Backed out changeset 872873e809a6 (bug 1753004)
Backed out changeset 9297082bf5aa (bug 1753004)
2022-02-11 19:45:55 +02:00
Gijs Kruitbosch 1c9aed5e46 Bug 1753004, r=mhowell
Depends on D138320

Differential Revision: https://phabricator.services.mozilla.com/D138321
2022-02-11 17:12:45 +00:00
Gijs Kruitbosch 247b19e16e Bug 1753004, r=dveditz,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D138320
2022-02-11 17:12:45 +00:00
Nika Layzell dabb46c84d Bug 1736371 - Default new actors to be refcounted, r=alwu,media-playback-reviewers,mccr8
The changes to ipdl actors were mechanical, and largely automated using
a script.

Differential Revision: https://phabricator.services.mozilla.com/D137237
2022-02-09 17:29:47 +00:00
Nika Layzell 91ec85c593 Bug 1752444 - Part 2: Rewrite direct_call.py protocols to use {Parent,Child}Impl attributes, r=ipc-reviewers,media-playback-reviewers,alwu,mccr8
This is a mechanical change which was performed by a script based on the
contents of direct_call.py, and then manually checked over to fix
various rewriting bugs caused by my glorified sed script. See the
previous part for more context on the change.

Differential Revision: https://phabricator.services.mozilla.com/D137227
2022-02-09 17:29:46 +00:00
Gijs Kruitbosch 8b7a982629 Bug 1752482 - skip browser_open_internal_choice_persistence.js on apple silicon for now, r=aryx DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D137988
2022-02-07 10:34:37 +00:00
Gijs Kruitbosch 15c60c9587 Bug 1750253 - stop infinite file handling loops by checking if we're about to pass files to ourselves via the OS, r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D136693
2022-02-03 11:25:59 +00:00
Gijs Kruitbosch f5c8fd7927 Bug 1752996, r=mhowell,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D137523
2022-02-03 00:30:16 +00:00
Cristian Tuns aa70ef628f Backed out changeset a384c409bd44 (bug 1752996) for causing build bustages on Unified_cpp_uriloader_exthandler CLOSED TREE 2022-02-02 10:10:18 -05:00
Gijs Kruitbosch 461a5730d6 Bug 1752996, r=mhowell,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D137523
2022-02-02 14:29:04 +00:00
Olli Pettay 009ee0ad5c Bug 1752413, add nsIWebProgress.documentRequest to let one to access the request for the document, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D137212
2022-02-01 15:46:32 +00:00