Commit Graph

3137 Commits

Author SHA1 Message Date
Razvan Maries
668381a470 Backed out changeset 8cb47e0e268d (bug 1625363) for causing gtest failures at ImageDecoders.AVIFSingleChunk. CLOSED TREE 2020-04-30 08:26:53 +03:00
Jon Bauman
601b2f5365 Bug 1625363 - AVIF (AV1 Image File Format): experimental support. r=aosmond,necko-reviewers,valentin
There are many limitations currently, but this prototype should successfully
render most basic AVIF images. Known limitations:

- No support for any derived image items (crop, rotate, etc.)
- No support for alpha planes
- The primary image item must be an av01 (no grid support)
- HDR images aren't tone-mapped

Differential Revision: https://phabricator.services.mozilla.com/D68498
2020-04-30 01:31:17 +00:00
Bogdan Tara
606f9e2e6c Backed out changeset 9804951497f9 (bug 1625363) for bustages complaining about nsAVIFDecoder.cpp CLOSED TREE 2020-04-29 19:46:12 +03:00
Jon Bauman
1c60246bba Bug 1625363 - AVIF (AV1 Image File Format): experimental support. r=aosmond,necko-reviewers,valentin
There are many limitations currently, but this prototype should successfully
render most basic AVIF images. Known limitations:

- No support for any derived image items (crop, rotate, etc.)
- No support for alpha planes
- The primary image item must be an av01 (no grid support)
- HDR images aren't tone-mapped

Differential Revision: https://phabricator.services.mozilla.com/D68498
2020-04-29 16:30:54 +00:00
sagudev
94a5c2f430 Bug 1319881 - Remove UsingNeckoIPCSecurity r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D72534
2020-04-29 12:00:01 +00:00
Jean-Yves Avenard
a50346320b Bug 1630211 - P3. Use new domWindowOpenedAndLoaded where we can. r=Gijs
Remove duplicated code; and properly wait for the window to be loaded where needed.

Differential Revision: https://phabricator.services.mozilla.com/D72879
2020-04-29 11:12:53 +00:00
Matt Woodrow
98e4b6eb1f Bug 1602318 - Expose LoadContext on BrowsingContext webidl. r=nika,kmag,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71135
2020-04-26 00:53:01 +00:00
Cosmin Sabou
0f970fbb19 Backed out 20 changesets (bug 1602318) for causing multiple types of failures. CLOSED TREE
Backed out changeset f71e3eff7a8c (bug 1602318)
Backed out changeset 0e0bdebf223b (bug 1602318)
Backed out changeset 44e82f4339a1 (bug 1602318)
Backed out changeset 5f341ebd8591 (bug 1602318)
Backed out changeset 088ea9d20617 (bug 1602318)
Backed out changeset 5de6321939f2 (bug 1602318)
Backed out changeset f5742e84912b (bug 1602318)
Backed out changeset 13bec3079540 (bug 1602318)
Backed out changeset 6c24ba022911 (bug 1602318)
Backed out changeset 5d0fc0102a7f (bug 1602318)
Backed out changeset fc4efd11e643 (bug 1602318)
Backed out changeset 028bd63e710d (bug 1602318)
Backed out changeset 21ad350f9617 (bug 1602318)
Backed out changeset 8f27319f2c34 (bug 1602318)
Backed out changeset db2832973382 (bug 1602318)
Backed out changeset 1756c7584491 (bug 1602318)
Backed out changeset 983e5a9abe02 (bug 1602318)
Backed out changeset a1b9429b3298 (bug 1602318)
Backed out changeset 7d1c0d968a09 (bug 1602318)
Backed out changeset a3b056ec6be3 (bug 1602318)
2020-04-24 11:15:12 +03:00
Matt Woodrow
89ca645d61 Bug 1602318 - Expose LoadContext on BrowsingContext webidl. r=nika,kmag,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D71135
2020-04-24 06:59:29 +00:00
Noemi Erli
c0bd1834c8 Backed out 19 changesets (bug 1602318) for causing multiple failures
Backed out changeset 4b3345b2e33b (bug 1602318)
Backed out changeset 7240b27afe28 (bug 1602318)
Backed out changeset a7091729d8c9 (bug 1602318)
Backed out changeset e496ab6c0857 (bug 1602318)
Backed out changeset 184da6309f0c (bug 1602318)
Backed out changeset 79b540f8619d (bug 1602318)
Backed out changeset b298015ee960 (bug 1602318)
Backed out changeset 6d0783cd5e01 (bug 1602318)
Backed out changeset cbc308486b17 (bug 1602318)
Backed out changeset 94142944fb54 (bug 1602318)
Backed out changeset 7c1eeb299b78 (bug 1602318)
Backed out changeset 0fc27502503a (bug 1602318)
Backed out changeset 0fc27c2e09d9 (bug 1602318)
Backed out changeset b5e2aa4741b2 (bug 1602318)
Backed out changeset 57d568114c5a (bug 1602318)
Backed out changeset 8f7360d827dc (bug 1602318)
Backed out changeset 78930a97c2df (bug 1602318)
Backed out changeset 8015780587cd (bug 1602318)
Backed out changeset bc9da03cb3a3 (bug 1602318)
2020-04-21 03:46:41 +03:00
Matt Woodrow
53eab85c6d Bug 1602318 - Expose LoadContext on BrowsingContext webidl. r=nika,kmag
Differential Revision: https://phabricator.services.mozilla.com/D71135
2020-04-20 23:04:09 +00:00
Sebastian Streich
5cc49156fd Bug 1626960 - Remove nsIPrincipal GetURI call in nsOfflineCacheUpdateService.cpp r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D69387
2020-04-20 09:43:29 +00:00
Kagami Sascha Rosylight
e92d0e2a79 Bug 1597267 - Remove dom.registerProtocolHandler.insecure.enabled r=annevk,emilio
Differential Revision: https://phabricator.services.mozilla.com/D69400
2020-04-17 12:06:19 +00:00
Chris Peterson
4a38e89842 Bug 1628961 - Replace "clang-format off" with semicolon workaround for clang-format bug 1629756. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D71138
2020-04-16 09:49:35 +00:00
Matt Woodrow
a27cfc760b Bug 1627971 - Add option to MaybeFireEmbedderLoadEvents to also fire the error event to the embedder element. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D70585

--HG--
extra : moz-landing-system : lando
2020-04-15 22:30:13 +00:00
Gijs Kruitbosch
bfae59a15d Bug 1526890 - enforce default handlers use https, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D70613

--HG--
extra : moz-landing-system : lando
2020-04-15 14:49:15 +00:00
Chris Peterson
72e3388f74 Bug 1628961 - Replace MOZ_MUST_USE with [[nodiscard]] in docshell and uriloader. r=smaug
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

I also needed to wrap the nsDocLoader::RemoveChildLoader() function declaration with // clang-format off and // clang-format on. clang-format insists on indenting the function declaration because it is confused by the NS_DECL_ macros without trailing semicolons before the [[nodiscard]] attribute.

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

--HG--
extra : moz-landing-system : lando
2020-04-14 06:41:42 +00:00
Dylan Roeh
9541273b5d Bug 1619798 - Move GeckoView onLoadRequest calls to DocumentLoadListener.cpp r=snorp,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D69594

--HG--
extra : moz-landing-system : lando
2020-04-10 16:38:48 +00:00
Emilio Cobos Álvarez
4b9fdf3d73 Bug 1627707 - Rename LoadInfo::LoadingPrincipal to GetLoadingPrincipal as it can return null. r=ckerschb
Mostly a matter of:

  rg -l '\->LoadingPrincipal' | xargs sed -i 's/->LoadingPrincipal/->GetLoadingPrincipal/g'

And then clang-format. But I tweaked manually nsHttpChannelAuthProvider (move
the variable where it's used, don't take a useless strong ref),
AddonContentPolicy (move the declaration of the variable to the if condition),
and BackgroundUtils (same).

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

--HG--
extra : moz-landing-system : lando
2020-04-06 18:57:36 +00:00
Cosmin Sabou
d557e2ed22 Backed out 3 changesets (bug 1627707) for build bustages @ mozilla::net::LoadInfo.
Backed out changeset 65d6a90651ce (bug 1627707)
Backed out changeset 378ec30d9979 (bug 1627707)
Backed out changeset 058a19e11b06 (bug 1627707)
2020-04-06 20:07:04 +03:00
Emilio Cobos Álvarez
97872f2fee Bug 1627707 - Rename LoadInfo::LoadingPrincipal to GetLoadingPrincipal as it can return null. r=ckerschb
Mostly a matter of:

  rg -l '\->LoadingPrincipal' | xargs sed -i 's/->LoadingPrincipal/->GetLoadingPrincipal/g'

And then clang-format. But I tweaked manually nsHttpChannelAuthProvider (move
the variable where it's used, don't take a useless strong ref),
AddonContentPolicy (move the declaration of the variable to the if condition),
and BackgroundUtils (same).

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

--HG--
extra : moz-landing-system : lando
2020-04-06 16:00:43 +00:00
Eric Rahm
a45bbf7d67 Bug 1626451 - Remove nsAutoPtr usage from uriloader/. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D69122

--HG--
extra : moz-landing-system : lando
2020-04-03 21:05:39 +00:00
Kagami Sascha Rosylight
1e6ce8af9b Bug 1597268 - Remove Navigator#registerContentHandler r=annevk,smaug
Differential Revision: https://phabricator.services.mozilla.com/D69191

--HG--
extra : moz-landing-system : lando
2020-04-01 21:20:50 +00:00
Bogdan Tara
452c92d58b Backed out changeset e348ec7e3a2b (bug 1597268) for causing mass bustages CLOSED TREE 2020-04-01 22:27:41 +03:00
Kagami Sascha Rosylight
d336f88d29 Bug 1597268 - Remove Navigator#registerContentHandler r=annevk,smaug
Differential Revision: https://phabricator.services.mozilla.com/D69191

--HG--
extra : moz-landing-system : lando
2020-04-01 18:41:49 +00:00
Christoph Kerschbaumer
cc0919a14b Bug 1625918: Remove superfluous null checks for mLoadInfo within Necko. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D68790

--HG--
extra : moz-landing-system : lando
2020-04-01 06:58:13 +00:00
Paul Bone
3a6d9ec5d6 Bug 1597154 - pt 3. Flip documentchannel whitelist to blacklist r=mattwoodrow
This fixes 1597154 because the lists of URIs here and in nsDocShell now
match.

Note that they don't exactly match, there's an exception for about:newtab
which we'll fix in a follow-up bug.

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

--HG--
extra : moz-landing-system : lando
2020-04-01 01:17:13 +00:00
sonakshi
a6f08454e0 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729

--HG--
extra : moz-landing-system : lando
2020-03-31 18:47:30 +00:00
Razvan Maries
40412d7928 Backed out changeset 2515c5b5a0d2 (bug 1622619) for build bustages. CLOSED TREE 2020-03-31 17:18:38 +03:00
sonakshi
fc4a38cd03 Bug 1622619 - Replace URIParams with nsIURI in PContent.ipdl r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D67729

--HG--
extra : moz-landing-system : lando
2020-03-31 13:38:55 +00:00
Emilio Cobos Álvarez
02c5c21c33 Bug 1625792 - Remove nsIURIContentListener.onStartURIOpen. r=mattwoodrow
It's only used to check whether the docshell is gone already, and we need to
deal with that in other places anyway. No other useful implementation.

In comm-central there are a couple, but they're useless too.

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

--HG--
extra : moz-landing-system : lando
2020-03-29 22:10:09 +00:00
sonakshi
b204bf50aa Bug 1551306 - Remove context parameter from nsIProgressEventSink.onProgress() and nsIProgressEventSink.onStatus() r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D68235

--HG--
extra : moz-landing-system : lando
2020-03-29 19:18:56 +00:00
Cosmin Sabou
79929c6462 Backed out changeset ad4847d17298 (bug 1551306) for causing build bustages. CLOSED TREE 2020-03-27 20:24:17 +02:00
sonakshi
145046fde2 Bug 1551306 - Remove context parameter from nsIProgressEventSink.onProgress() and nsIProgressEventSink.onStatus() r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D68235

--HG--
extra : moz-landing-system : lando
2020-03-27 17:57:10 +00:00
Mihai Alexandru Michis
c1256a18a6 Backed out changeset d91e4acdd63c (bug 1551306) for causing bustages in request::InitBitsRequest
CLOSED TREE
2020-03-27 16:12:47 +02:00
sonakshi
b5f7fb3be7 Bug 1551306 - Remove context parameter from nsIProgressEventSink.onProgress() and nsIProgressEventSink.onStatus() r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D68235

--HG--
extra : moz-landing-system : lando
2020-03-27 14:05:02 +00:00
sonakshi
4a48c5d739 Bug 1594432 - Remove aContext from nsIChildChannel.completeRedirectSetup r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D68177

--HG--
extra : moz-landing-system : lando
2020-03-26 11:07:10 +00:00
Toshihito Kikuchi
c1e5d642df Bug 1609451 - Skip ShellExecuteByExplorer to open a uri in Thunderbird. r=froydnj
We use `ShellExecuteByExplorer` to open a uri because applications may not
support the mitigation policies inherited from our process.

Unlike Firefox, Thunderbird runs `ShellExecuteByExplorer` to launch a browser
to open an HTTP/HTTPS uri.  If a uri includes credentials like
http://user:password@domain.com/, `ShellExecuteByExplorer` succceds, but
explorer.exe refuses to open the uri by design.  In this case the fallback to
`ShellExecuteExW` does not happen because the API is async and no error is
returned

The proposed fix is to skip `ShellExecuteByExplorer` if it's Thunderbird.
Because Thunderbird does not apply additional mitigation policies which may
cause compat issues, we don't need to run `ShellExecuteByExplorer` in the
first place.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 16:09:18 +00:00
Andrea Marchesini
1e01916653 Bug 1531289 - target=_blank with a download should close the download tab, r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D66454

--HG--
extra : moz-landing-system : lando
2020-03-19 13:03:14 +00:00
Masatoshi Kimura
3df19bc1d4 Bug 1623222 - Remove the charset parameter from nsITextToSubURI::UnEscapeURIForUI. r=hsivonen
Only 3 callers are using a non-UTF-8 charset as the first parameter.
* MediaDocument.cpp: This does not make sense because the "filename" part of
  URLs will always be encoded with UTF-8.
* nsContextMenu.js: This is wrong because "mailto:" URLs don't care about the
  document charset.
* Finder.jsm: This caused bug 1623222.

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

--HG--
extra : moz-landing-system : lando
2020-03-19 10:45:28 +00:00
Coroiu Cristina
0c837bbcd0 Backed out changeset 0453b0a0c49d (bug 1531289) for browser-chrome failures at uriloader/exthandler/tests/mochitest/browser_auto_close_window.js on a CLOSED TREE 2020-03-18 15:55:43 +02:00
Andrea Marchesini
c486efbb58 Bug 1531289 - target=_blank with a download should close the download tab, r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D66454

--HG--
extra : moz-landing-system : lando
2020-03-18 12:08:24 +00:00
Matt Woodrow
4731d04c51 Bug 1620875 - Suppress extra onStateChange(STATE_START) notifications from RemoteWebProgress when switching DocumentChannel with a real channel. r=Gijs,nika
Note that this also suppresses notifications from the initial about:blank in the new process, and updates the tabbrowser to not expect those.

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

--HG--
extra : moz-landing-system : lando
2020-03-17 00:50:29 +00:00
Boris Zbarsky
5f4fd391ec Bug 1440212 part 1. Remove the always-true aIsTrusted argument of FireFrameLoadEvent. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D35599

--HG--
extra : moz-landing-system : lando
2020-03-11 22:29:53 +00:00
Marco Bonardo
7d0e827280 Bug 1598216 - Change file extensions with invalid characters to valid file extensions on save. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D65823

--HG--
rename : uriloader/exthandler/tests/mochitest/unsafeBidi_chromeScript.js => uriloader/exthandler/tests/mochitest/HelperAppLauncherDialog_chromeScript.js
extra : moz-landing-system : lando
2020-03-09 16:11:13 +00:00
sonakshi
e44d6706b8 Bug 1620687 - Removing unused aURI parameter r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D65868

--HG--
extra : moz-landing-system : lando
2020-03-09 14:33:25 +00:00
Sylvestre Ledru
260f01d445 no bug - mozlint/codespell - Add two docs directories in the list + fix typos r=marco DONTBUILD
Depends on D65911

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

--HG--
extra : moz-landing-system : lando
2020-03-09 10:43:14 +00:00
Toshihito Kikuchi
ff780f7c65 Bug 1615370 - Add fallback to ShellExecuteExW in nsMIMEInfoWin. r=aklotz
If a system uses a custom shell instead of Windows Explorer,
`ShellExecuteByExplorer` always fails because it relies on explorer.exe,
but `ShellExecute` stil works because it's in-proc implementation.

We added a fallback for a local file to address Bug 1602726.  This patch adds
a fallback for a uri.

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

--HG--
extra : moz-landing-system : lando
2020-03-07 21:43:49 +00:00
Mark Banner
15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Matt Woodrow
5eb1e13fa3 Bug 1618057 - Use the target BrowsingContext of the load, rather than the process-top BrowsingContext when initializing DocumentLoadListener. r=nika
This also fixes the Window lookup in nsExternalAppHandler, which was the reason for previously needing the process-top BrowsingContext.

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

--HG--
extra : moz-landing-system : lando
2020-03-05 21:15:50 +00:00