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

793889 Коммитов

Автор SHA1 Сообщение Дата
Agi Sferro fb4d7ff61c Bug 1767058 - Actually deprecate onLocationChange(2) r=ohall,calu
Differential Revision: https://phabricator.services.mozilla.com/D145120
2022-05-05 21:33:15 +00:00
Shane Hughes 7310469fba Bug 1749998 - Expose alwaysOpenPanel in context menu. r=mak,Gijs,fluent-reviewers,flod
This patch adds a new menuitem to the toolbar context menu that
functions analogously to the downloads button auto-hide menuitem.
It's visible when the context menu is opened on the downloads button,
and hidden otherwise. It toggles browser.download.alwaysOpenPanel.
Also add some tests to make sure it's showing in the correct conditions
and having the correct effect in practice. While we're at it, make some
slight simplifications of related tests.

Differential Revision: https://phabricator.services.mozilla.com/D145284
2022-05-05 21:25:40 +00:00
Iain Ireland 17e17e0a92 Bug 1763012: Mark fallible div/mod as guards r=jandem,nbp
This is a fairly conservative fix, but I didn't see any slowdown on Octane or Speedometer.

Differential Revision: https://phabricator.services.mozilla.com/D144321
2022-05-05 21:23:27 +00:00
Glenn Watson 69f64e70de Bug 1766498 - Disable raster root adjustment for backdrop-filters r=gfx-reviewers,lsalzman
This breaks an assumption that the surface spatial node for the
resolve surface matches that of the backdrop root. In future we
might be able to support snapping in this use case, but I'm not
convinced it's actually useful to have that anyway yet.

Differential Revision: https://phabricator.services.mozilla.com/D145504
2022-05-05 21:22:21 +00:00
Yoshi Cheng-Hao Huang dd043f6fe1 Bug 1688879 - Part 9: mochitest, xpcshell-test and web-platform-test for import maps. r=jonco,yulia,robwu
mochitest and web-platform-test are verifying import maps are supported.

Moving the mochitest into its own folder
(dom/base/test/jsmodules/importmaps) as the prefs needs to be in [DEFAULT]
section in chrome.ini, see [1].

xpcshell-test is used to verify import maps are _NOT_ supported for web ext
content scripts.

[1]: https://searchfox.org/mozilla-central/rev/dd404f43c7198b1076fe5d7e05b1e6b1a03bdfeb/testing/mochitest/runtests.py#1725

Differential Revision: https://phabricator.services.mozilla.com/D142077
2022-05-05 21:19:04 +00:00
Yoshi Cheng-Hao Huang 35d082390d Bug 1688879 - Part 8: Assert import maps won't be processed in ScriptLoader::EvaluateScriptElement. r=jonco,yulia
Differential Revision: https://phabricator.services.mozilla.com/D142076
2022-05-05 21:19:03 +00:00
Yoshi Cheng-Hao Huang 661d803eea Bug 1688879 - Part 7: External import maps aren't supported. r=jonco,yulia
External import maps aren't supported for now.
https://github.com/WICG/import-maps/issues/235

Differential Revision: https://phabricator.services.mozilla.com/D142075
2022-05-05 21:19:03 +00:00
Yoshi Cheng-Hao Huang bf4ad5ae3e Bug 1688879 - Part 6: Acquiring import maps. r=jonco,yulia
Implement https://wicg.github.io/import-maps/#document-acquiring-import-maps

Differential Revision: https://phabricator.services.mozilla.com/D142074
2022-05-05 21:19:02 +00:00
Yoshi Cheng-Hao Huang 8a939e5954 Bug 1688879 - Part 5: ResolveModuleSpecifier for import maps. r=jonco,yulia,flod
Implement https://wicg.github.io/import-maps/#resolve-a-module-specifier

Differential Revision: https://phabricator.services.mozilla.com/D142072
2022-05-05 21:19:02 +00:00
Yoshi Cheng-Hao Huang 7ba3206f1c Bug 1688879 - Part 4: Refactor ResolveModuleSpecifier. r=jonco,yulia
Add ResolveResult to return nsIURI on success or return ResolveError on
failure.

Differential Revision: https://phabricator.services.mozilla.com/D142073
2022-05-05 21:19:02 +00:00
Yoshi Cheng-Hao Huang 464384bf31 Bug 1688879 - Part 3: Parse and register an import map. r=jonco,yulia
Implement
https://wicg.github.io/import-maps/#parse-an-import-map-string,
and
https://wicg.github.io/import-maps/#register-an-import-map

Differential Revision: https://phabricator.services.mozilla.com/D142071
2022-05-05 21:19:01 +00:00
Yoshi Cheng-Hao Huang afeda7dba0 Bug 1688879 - Part 2: Add support for import maps in ScriptElement/ScriptLoader/ScriptKind. r=jonco,yulia,smaug
Differential Revision: https://phabricator.services.mozilla.com/D142070
2022-05-05 21:19:01 +00:00
Yoshi Cheng-Hao Huang 1937e5ecb0 Bug 1688879 - Part 1: Add Pref for import maps. r=jonco,yulia
Add a pref "dom.importMaps.enabled", with default false.

Differential Revision: https://phabricator.services.mozilla.com/D142069
2022-05-05 21:19:00 +00:00
David Shin dd82875f18 Bug 1766886 - Use `mozilla::variant` in `ComputedTimingFunction` to contain the function implementation. r=boris
Also minor refactorings:
- Less Init() calls
- Remove unused `Compare` functions
- Add explicit casts to narrowing conversions

Differential Revision: https://phabricator.services.mozilla.com/D145014
2022-05-05 21:10:01 +00:00
Boris Chiou d0a1f45cbd Bug 1767357 - Enable Animation.timeline setter in release channels. r=birtles,emilio
Basically, this patch reverts Bug 1612106 [1].

Webkit just turns this on by default [2], so it's worth to enable this
in our release channels.

[1] https://phabricator.services.mozilla.com/D63432
[2] https://trac.webkit.org/changeset/291868/webkit/

Differential Revision: https://phabricator.services.mozilla.com/D145356
2022-05-05 21:09:33 +00:00
Noemi Erli 6cd762c806 Backed out changeset c94246f87e84 (bug 1659124) for causing multiple failures CLOSED TREE 2022-05-06 01:08:19 +03:00
Noemi Erli bdddcf3488 Bug 1767923 - Fix lint error r=fix 2022-05-06 00:23:32 +03:00
Emilio Cobos Álvarez cc6eb9e124 Bug 1703866 - Disable custom select styling on macOS. r=spohl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D145620
2022-05-05 20:55:49 +00:00
Emilio Cobos Álvarez e9728e0470 Bug 1703866 - Use a lazy pref getter in SelectParent.jsm. r=mconley
Otherwise the pref set in
browser/base/content/test/forms/browser_selectpopup_colors.js doesn't
always work.

Differential Revision: https://phabricator.services.mozilla.com/D145635
2022-05-05 20:55:24 +00:00
Mozilla Release Engineering 419fe749c5 Bug 1767923 - Remove -gcp tasks corresponding to tasks that have already migrated to gcp r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D145586
2022-05-05 20:53:32 +00:00
Razvan Cojocaru a057ee947b Bug 1659124 - Avoid passing non-CSS points to IsZero as it may return false when it should return true. r=botond
IsZero() is changed to take a CSSPoint parameter instead of any
point type, to avoid accidentally re-introducing the issue.

Differential Revision: https://phabricator.services.mozilla.com/D145173
2022-05-05 20:35:48 +00:00
Molnar Sandor 0f938ab2d1 Backed out changeset 7b715c304c65 (bug 1767346) for breaking Android process prioritization. CLOSED TREE 2022-05-05 23:30:35 +03:00
Noemi Erli 295eab376a Backed out 14 changesets (bug 1746052) for causing build bustages in nsExternalHelperAppService.cpp CLOSED TREE
Backed out changeset bf46b0add531 (bug 1746052)
Backed out changeset 684b2aca10bb (bug 1746052)
Backed out changeset d4796eeeaf64 (bug 1746052)
Backed out changeset 5cf2378f6eb4 (bug 1746052)
Backed out changeset 2055ec1e9a57 (bug 1746052)
Backed out changeset 1398fc0669d2 (bug 1746052)
Backed out changeset 1f979899c843 (bug 1746052)
Backed out changeset 561a24801d4d (bug 1746052)
Backed out changeset 73e4689120f0 (bug 1746052)
Backed out changeset 9891f3b0229b (bug 1746052)
Backed out changeset 4c1ab30de0bd (bug 1746052)
Backed out changeset 108e14122e53 (bug 1746052)
Backed out changeset 1ee59c52578a (bug 1746052)
Backed out changeset 41fe77c5f4b2 (bug 1746052)
2022-05-05 23:13:33 +03:00
Neil Deakin 45169441ca Bug 1746052, on Mac, set the always ask flag for the macbinary type as well, r=Gijs
This test involves clicking on a link to a .bin file. In the Mac test environment, this is given the macbinary content type. This test assumes that it will be octet-stream (another valid content type for the bin extension) and sets the alwaysAskBeforeHandling flag for that, so the dialog never shows up. However, another subtest needs octet-stream to prompt as well, so set the always ask for both.

Differential Revision: https://phabricator.services.mozilla.com/D145547
2022-05-05 19:46:49 +00:00
Neil Deakin e16d23e70e Bug 1746052, use validateFileNameForSaving in DownloadPaths.sanitize with flags to emulate something similar to the existing behaviour, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D138738
2022-05-05 19:46:49 +00:00
Neil Deakin af5ca09057 Bug 1746052, add tests for filename validation when dragging images, copy/paste of images, saving a document or image, and when content disposition: attachment is used, and add a unit test that verifies nsIMIMEService.validateFileNameForSaving, r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D135959
2022-05-05 19:46:49 +00:00
Neil Deakin 91d7b0f640 Bug 1746052, use validateFileNameForSaving to get and validate the default filename when a document or image is chosen to be saved, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135958
2022-05-05 19:46:48 +00:00
Neil Deakin c1e573cd3c Bug 1746052, don't allow Windows reserved filenames when sanitizing filenames. Move MangleTextToValidFileName to nsLocalFileWin and rename it to CheckForReservedFileName, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D138737
2022-05-05 19:46:48 +00:00
Neil Deakin 679f61ea4c Bug 1746052, select a default filename for saving if the filename ends up being empty, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135957
2022-05-05 19:46:48 +00:00
Neil Deakin c2103325e6 Bug 1746052, further restrict the characters that are allowed in filenames, as save as doesn't allow these, r=mccr8
The Android characters are are from DirectoryPaths.jsm, and almost all consumers of the constants here are either windows-specific or are modified/removed by this bug.

Differential Revision: https://phabricator.services.mozilla.com/D135956
2022-05-05 19:46:47 +00:00
Neil Deakin 86c85f8ec9 Bug 1746052, don't modify the extension for text and binary types, as this is the behaviour that save as had, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135955
2022-05-05 19:46:47 +00:00
Neil Deakin 352821bf23 Bug 1746052, use GetValidFileName to determine the filename from the channel when saving a resource, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D135954
2022-05-05 19:46:47 +00:00
Neil Deakin b5d612c254 Bug 1746052, use ValidateFileNameForSaving to determine a valid filename for pasting a file to the filesystem, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D135953
2022-05-05 19:46:46 +00:00
Neil Deakin 32196148e7 Bug 1746052, use ValidateFileNameForSaving to compute the filename for dragging images to the file system, r=haik
Differential Revision: https://phabricator.services.mozilla.com/D135952
2022-05-05 19:46:46 +00:00
Neil Deakin 7fdbbc3e3c Bug 1746052, improve file sanitization by filtering and collpasing more whitespace characters and truncating files to 255 bytes, r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D138736
2022-05-05 19:46:45 +00:00
Neil Deakin d0aaa88f44 Bug 1746052, add methods to the mime service that compute and validate a filename for a given content type, r=Gijs
The code in SanitizeFilename will be expanded upon in the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D135951
2022-05-05 19:46:45 +00:00
Neil Deakin ffd18bceae Bug 1746052, add a means to get the filename that should be used for saving an image to disk, r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D135950
2022-05-05 19:46:45 +00:00
Gavin Suntop 2b3fdc364d Bug 1767833 - UTM params for STP reader links r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D145494
2022-05-05 19:31:52 +00:00
Meg Viar db71ef0067 Bug 1767813 - Intermittent TV browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about_default_promo.js r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D145505
2022-05-05 19:29:04 +00:00
Jeff Muizelaar e5f178ecd3 Bug 1768033 - Record more detailed telemetry in has_h264. r=alwu
This should let us distinguish between pre-load, during-load
and post-load

Differential Revision: https://phabricator.services.mozilla.com/D145637
2022-05-05 19:24:18 +00:00
Molnar Sandor 02e011c6db Backed out changeset 1ac8a4436a21 (bug 1729005) for causing xpc/mochitest failures in test_blockParsing. CLOSED TREE 2022-05-05 22:30:27 +03:00
Emily McDonough 7ef34b67fa Bug 1765011 - Ensure we do not truncate header/footer text in between surrogate pair characters r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D143855
2022-05-05 19:13:24 +00:00
Paul Zuehlcke b1b990ddde Bug 1767973 - Test cleanup fixes for browser_protectionsUI_dfpi_rollout_phase2.js. r=anti-tracking-reviewers,bvandersloot
Differential Revision: https://phabricator.services.mozilla.com/D145630
2022-05-05 19:01:29 +00:00
Tim Giles 5e0cf09a5b Bug 1436793 - Don't autofill disabled fields. r=sgalich,dimi
Differential Revision: https://phabricator.services.mozilla.com/D144638
2022-05-05 18:56:02 +00:00
Kris Maglione da4a093e98 Bug 1729005: Recursively block parsing for parser blocking scripts. r=hsivonen
Bug 1333990 added the ability to have multiple parser blockers at the same
time, so we no longer need to guard against recursively blocking. What's more,
if we do, and skip calling `BlockParser` while it's blocked for another reason,
we still call `UnblockParser` when we receive script data, at which point we
crash.

The only way I've seen this manifest as a bug is when we have an XHTML
document with a top-level <script> element, and an extension with content
scripts that cause us to block parsing when we see that top-level element and
need to wait for them to compile.

Differential Revision: https://phabricator.services.mozilla.com/D145513
2022-05-05 18:49:49 +00:00
Barret Rennie 6ed45f92e8 Bug 1766434 - Make checking for and pinning app to taskbar async on Windows r=bhearsum
Previously `nsIWindowsShellService::{Check,}PinCurrrentAppToTaskbar` was doing
main thread IO. They have been replaced with async versions that do their work
on a background thread.

Differential Revision: https://phabricator.services.mozilla.com/D145244
2022-05-05 18:48:44 +00:00
Bob Owen 506ea49d1a Bug 1767999: Re-enable Win32k Lockdown by default. r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D145618
2022-05-05 18:14:03 +00:00
Kagami Sascha Rosylight 38896528d7 Bug 1767989 - Apply readability-make-member-function-const on dom/indexedDB r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D145624
2022-05-05 18:11:55 +00:00
Alexandre Lissy c9368d48f0 Bug 1762067 - Distinguish crash in RDD vs Utility r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D145345
2022-05-05 18:02:13 +00:00
Dennis Schubert 0ca70f31c8 Bug 1767811 - Import WebCompat addon 101.4.0 sources. r=webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D145636
2022-05-05 17:56:29 +00:00