Commit Graph

3388 Commits

Author SHA1 Message Date
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
Emilio Cobos Álvarez
4fd5d13610 Bug 1680721 - Grant a single iframe without user interaction to top windows. r=smaug,johannh
Only for top windows because for nested iframes they could get around
this without being noticed by reloading themselves which is not great.

Differential Revision: https://phabricator.services.mozilla.com/D98775
2020-12-08 10:15:18 +00:00
Bogdan Tara
636095bb54 Bug 1676345 - Fix clang-format issue CLOSED TREE 2020-12-02 21:18:45 +02:00
Gijs Kruitbosch
a43aafe52b Bug 1676345 - honour extensions from URLs with query parameters for useless mimetypes to avoid taking the extension from bogus local data, r=mak
This restores extension discovery logic to using the URL for requests where
there's no filename in the Content-Disposition header information, and where
the mimetype gives no indication of the 'correct' extension.

This is a short-term workaround for the larger issue that we should not have
bad local information for these mimetypes - fixing that is bug 1659008, but
requires using the extension to get a better mimetype, which this patch will
also help with.

Differential Revision: https://phabricator.services.mozilla.com/D97824
2020-12-02 17:36:41 +00:00
Emma Malysz
5dfb6ccc12 Bug 1649620, remove OS.File from HandlerService.js r=barret
Differential Revision: https://phabricator.services.mozilla.com/D98351
2020-12-01 19:49:53 +00:00
Simon Giesecke
dd80614fa0 Bug 1678062 - Remove unnecessary includes. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D97467

Depends on D96561
2020-11-23 16:12:02 +00:00
Simon Giesecke
d10d03d076 Bug 1676365 - Move SpinEventLoopUntil to separate header. r=#xpcom-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96556

Depends on D96554
2020-11-23 16:10:41 +00:00
Simon Giesecke
0a3ad2063b Bug 1676369 - Avoid including nsIHttpChannel.h from header files. r=#necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D96552

Depends on D96551
2020-11-23 16:10:11 +00:00
Simon Giesecke
5bfbb2a572 Bug 1673931 - Avoid including Document.h from header files. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95046

Depends on D95045
2020-11-23 16:07:43 +00:00
Simon Giesecke
971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Simon Giesecke
8953086494 Bug 1677284 - Move PackingStrategy::Variant implementation to separate header file. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D97075
2020-11-23 15:49:14 +00:00
pbz
35d59c9708 Bug 1672344 - Added telemetry for measuring usage of external protocol navigations by iframes. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D95158
2020-11-18 15:42:06 +00:00
Butkovits Atila
08cec85294 Backed out changeset 6fe2e921692a (bug 1672344) for build bustages. CLOSED TREE 2020-11-18 11:30:52 +02:00
pbz
9c677a3b1c Bug 1672344 - Added telemetry for measuring usage of external protocol navigations by iframes. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D95158
2020-11-18 08:52:57 +00:00
Gijs Kruitbosch
540b640357 Bug 1652520 - do not overwrite extensions for all filetypes, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D96406
2020-11-10 13:59:39 +00:00
Bogdan Tara
6e923c3f5d Backed out changeset 58d4317c9427 (bug 1652520) for nsExternalHelperAppService bustages CLOSED TREE 2020-11-10 14:41:18 +02:00
Gijs Kruitbosch
166da5cee1 Bug 1652520 - do not overwrite extensions for all filetypes, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D96406
2020-11-10 12:07:30 +00:00
pbz
96b1582581 Bug 1674446 - Additional tests for the external protocol handler dialog. r=Gijs
Added two new tests to ensure the external protocol dialogs behave correctly if
ContentDispatchChooser is passed a null principal, or no principal at all.

Differential Revision: https://phabricator.services.mozilla.com/D95747
2020-11-04 18:36:48 +00:00
pbz
55b95a109e Bug 1565574 - Updated and added tests for protocol handler permission. r=Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D92948
2020-10-29 13:44:14 +00:00
pbz
84589d971b Bug 1565574 - Added permission required to open external protocol handlers. r=Gijs
- Added pref to toggle permission feature
- Updated ContentDispatchChooser to check for permission and  manage a multi dialog flow.

Differential Revision: https://phabricator.services.mozilla.com/D92945
2020-10-29 13:43:46 +00:00
Dorel Luca
cfaedde161 Backed out 6 changesets (bug 1565574) as per dev's request. CLOSED TREE
Backed out changeset fbe972f837d9 (bug 1565574)
Backed out changeset 2852c526acd6 (bug 1565574)
Backed out changeset fa731b373f42 (bug 1565574)
Backed out changeset c7ed89a9afc7 (bug 1565574)
Backed out changeset 3e87d1b83069 (bug 1565574)
Backed out changeset 93955bcbaf4b (bug 1565574)
2020-10-29 12:55:28 +02:00