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

98693 Коммитов

Автор SHA1 Сообщение Дата
Nico Grunbaum fba68a8e39 Bug 1687098 - Update WebRTC-SDP to version 0.3.8;r=drno
Differential Revision: https://phabricator.services.mozilla.com/D102110
2021-01-18 06:27:38 +00:00
Dorel Luca 99d680ea83 Backed out 3 changesets (bug 1673617) for Browser-chrome failures in docshell/test/browser/browser_bug1347823.js. CLOSED TREE
Backed out changeset f0ea749647d3 (bug 1673617)
Backed out changeset 533092a71225 (bug 1673617)
Backed out changeset 3ce0d9f55436 (bug 1673617)
2021-01-19 21:00:03 +02:00
Randell Jesup 70cf5cc849 Bug 1673617 - Create BrowsingContext::mChildSessionHistory more aggressively, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D100348
2021-01-07 22:25:39 +00:00
Yaron Tausky 3f05d24fad Bug 1657130 - Expose worker's window IDs to nsIWorkerDebugger r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D99441
2021-01-19 17:04:04 +00:00
Paul Adenot f25de5aaff Bug 1678352 - Upload a wav file when the test fails, for diagnosis. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D102218
2021-01-19 14:59:44 +00:00
Paul Adenot 4f508aaf21 Bug 1678352 - Teach MockCubeb to record its own input to a buffer. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D102217
2021-01-19 14:59:41 +00:00
Paul Adenot 324e169ca7 Bug 1678352 - Add a way to explicitly specify the name of the file to dump audio in WavDumper. r=pehrsons
Both are useful, so I kept the previous function as well.

Differential Revision: https://phabricator.services.mozilla.com/D102216
2021-01-19 14:59:34 +00:00
Paul Adenot 548b1faddc Bug 1678352 - Add some namespaces to WavDumper.h so it can be used outside the mozilla namespace. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D102215
2021-01-19 14:58:40 +00:00
Simon Giesecke 93348cd207 Bug 1682536 - Use references/NotNull for OriginInfo. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D99778
2021-01-19 16:32:38 +00:00
Simon Giesecke e672832603 Bug 1682536 - Use references/NotNull for DirectoryLockTable. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D99777
2021-01-19 14:19:58 +00:00
Henri Sivonen dc90200244 Bug 1683627 - Make <noscript> escaping conditional on whether scripting is enabled. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D102159
2021-01-18 16:31:47 +00:00
Luca Greco 3ba66d4d86 Bug 1678927 - Expect non http channel in ServiceWorkerScriptCache CompareNetwork::OnStreamComplete. r=asuth,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D100343
2021-01-19 15:27:46 +00:00
Masatoshi Kimura 54c1b8dee1 Bug 1687108 - Remove unused content policy types. r=ckerschb,remote-protocol-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D102083
2021-01-19 09:42:13 +00:00
Sean Feng 708bd702d2 Bug 1682045 - Allow nsPresContext to store and release the last registered OneShotPostRefreshObserver r=smaug
OneShotPostRefreshObserver works as the caller registers it, and
let it deletes itself via the DidRefresh method. The issue is that
DidRefresh is not guaranteed to run, and it'll leak PresShell
if it doesn't run.

This patch allows nsPresContext to store and release the last
registered OneShotPostRefreshObserver, and converted the existing
usage of OneShotPostRefreshObserver to use that. So instead of asking
OneShotPostRefreshObserver to delete itself, we now ask nsPresContext
to release it.

Differential Revision: https://phabricator.services.mozilla.com/D99939
2021-01-18 19:23:10 +00:00
Edgar Chen dc442f6bea Bug 1556703 - Part 2: Convert new added WPT into mochitest test; r=smaug
Geckodriver doesn't support touch input yet, so convert new added the touch tests
into mochitest, these mochitest wpt could be removed once we could pass the
corresponding tests in wpt.

Depends on D101667

Differential Revision: https://phabricator.services.mozilla.com/D102044
2021-01-18 21:05:59 +00:00
Edgar Chen fcbd3d2887 Bug 1556703 - Part 1: Update active pointer state properly; r=smaug
Calling setPointerCapture or releasePointerCapture in pointerup event handler would
throw error due to the active pointer is removed in PreHandlerEvent which is too
early. So defer removing active pointer to PostHandeEvent to make the active pointer
available in pointerup or pointercancel event handler.

This patch adds WPTs which has been verified on Chrome. geckodriver doesn't support
touch input yet, so mark tests for touch as expected ERROR for now.

Differential Revision: https://phabricator.services.mozilla.com/D101667
2021-01-18 22:14:39 +00:00
Barret Rennie d95d11d187 Bug 1676942 - Replace remaining usage of NS_ENSURE_TRUE in IOUtils r=nika
This patch is a minor cleanup based on prior feedback to make all of IOUtils
consistent.

Differential Revision: https://phabricator.services.mozilla.com/D100058
2021-01-18 19:52:36 +00:00
Barret Rennie 711d24719c Bug 1676942 - Add IOUtils::WriteJSON r=nika,tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D99155
2021-01-18 19:52:34 +00:00
Barret Rennie 7e2b57614d Bug 1676942 - Add IOUtils::ReadJSON r=nika,tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D99154
2021-01-18 19:52:32 +00:00
Barret Rennie 1b41576f43 Bug 1676942 - Refactor RunOnBackgroundThread r=nika
RunOnBackgroundThread has been renamed to RunOnBackgroundThreadAndResolve. The
body dealing with calling InvokeAsync for calling a function on the background
event target and returning a MozPromise has been refactored into a new
function, RunOnBackgroundThread.

This allows us to have more complicated IOUtils methods that do not simply
resolve their promises to whatever is returned by the background methods.

Differential Revision: https://phabricator.services.mozilla.com/D99002
2021-01-18 19:52:29 +00:00
Emilio Cobos Álvarez fcc0c13711 Bug 1686822 - Execute currently-non-cacheable module scripts in the XUL content sink. r=smaug
See the comments. I'm not sure what the testing story is for the
prototype cache...

Differential Revision: https://phabricator.services.mozilla.com/D101851
2021-01-18 17:38:56 +00:00
Sylvestre Ledru 912aeb9ab5 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
Updated with clang-format version 11.0.1 (taskcluster-B6bdwSKDRF-luRQWXBuzpA)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D102084
2021-01-18 16:50:16 +00:00
longsonr f292216c4e Bug 1687195 - Invalid enums should return the initial value, not the unknown value r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102131
2021-01-18 15:57:55 +00:00
Henri Sivonen 0e936b95f1 Bug 1659383 - Check if focus() is allowed even when Window_Binding::focus() delegates to BrowsingContext::Focus(). r=nika
Differential Revision: https://phabricator.services.mozilla.com/D100005
2021-01-18 12:48:42 +00:00
Simon Giesecke b072bdbb20 Bug 1684838 - Check result of CreateAndExecuteSingleStepStatement in ReadRequest. r=jstutte
Differential Revision: https://phabricator.services.mozilla.com/D102185
2021-01-18 12:57:26 +00:00
Tom Schuster 71555984ed Bug 1687063 - Improve error messages when trying to consume a Reponse for WebAssembly. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D102055
2021-01-18 12:16:33 +00:00
Csoregi Natalia 1091647af5 Backed out changeset ecd3cad19246 (bug 1687195) for reftest failures on /feBlend-1.svg. CLOSED TREE 2021-01-18 14:36:37 +02:00
Edgar Chen 59f2cc6232 Bug 1687069 - Part 2: Remove test_wpt_pointerevent_setpointercapture_to_same_element_twice-manual.html; r=masayuki
As the wpt is not longer a manual test, and we could pass the wpt one.

Depends on D102070

Differential Revision: https://phabricator.services.mozilla.com/D102071
2021-01-18 07:06:52 +00:00
Edgar Chen 1c65254657 Bug 1687068 - Part 2: Remove test_wpt_pointerevent_setpointercapture_override_pending_capture_element-manual.html; r=masayuki
As the wpt is not longer a manual test, and we could pass the wpt one.

Depends on D102068

Differential Revision: https://phabricator.services.mozilla.com/D102069
2021-01-18 07:05:18 +00:00
Edgar Chen ddbdc9a935 Bug 1687066 - Part 2: Remove test_wpt_pointerevent_releasepointercapture_release_right_after_capture-manual.html; r=masayuki
As it is not longer a manual test in wpt, and we could pass the wpt one.

Differential Revision: https://phabricator.services.mozilla.com/D102059
2021-01-18 07:04:50 +00:00
Edgar Chen 79d4538dcb Bug 1687062 - Part 2: Remove test_wpt_pointerevent_element_haspointercapture_release_pending_capture-manual.html; r=masayuki
As it is not longer a manual test in wpt, and we could pass the wpt one.

Differential Revision: https://phabricator.services.mozilla.com/D102057
2021-01-18 06:58:21 +00:00
Simon Giesecke 3ba44f6590 Bug 1685098 - Remove now unused REPORT_TELEMETRY_INIT_ERR macro and telemetry definition. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D102182
2021-01-18 11:36:15 +00:00
longsonr 3beb46b1eb Bug 1687195 - Invalid enums should return the initial value, not the unknown value r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102131
2021-01-18 11:10:56 +00:00
Simon Giesecke b6fbbfced5 Bug 1685098 - Migrate one more call to QM_TRY in QuotaManager::InitializeRepository. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D102181
2021-01-18 11:04:32 +00:00
Emilio Cobos Álvarez e1948af749 Bug 1687126 - Fix HTMLStyleElement::UnbindFromTree to always remove its stylesheet. r=smaug
This matches other browsers and
https://github.com/w3c/csswg-drafts/issues/3096.

It also matches SVGStyleElement and HTMLLinkElement of course.

Differential Revision: https://phabricator.services.mozilla.com/D102089
2021-01-18 11:09:55 +00:00
Csoregi Natalia 76177ae407 Backed out changeset d2c7360e9d01 (bug 1659383) for failures on iframe-focuses-parent-different-site.html. CLOSED TREE 2021-01-18 12:36:49 +02:00
Xidorn Quan c91cd9645e Bug 1130891 part 5 - Add test for the copy behavior. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D102099
2021-01-18 09:26:18 +00:00
Akshat Dixit a1ccc07a39 Bug 1619197 Added .opus file to audiofilter r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D100526
2021-01-18 09:18:43 +00:00
Simon Giesecke 5c961561a7 Bug 1686910 - Check for existence of origin directory explicitly in SaveOriginAccessTimeOp::DoDirectoryWork. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D101943
2021-01-18 07:47:33 +00:00
Simon Giesecke b011d2e6fb Bug 1683828 - Use QM_TRY et al. in QuotaClient. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D100770
2021-01-18 08:52:06 +00:00
Simon Giesecke 4d71349bf7 Bug 1683828 - Use QM_TRY et al. in Manager. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D100769
2021-01-18 08:49:48 +00:00
Henri Sivonen 5a70da036b Bug 1659383 - Check if focus() is allowed even when Window_Binding::focus() delegates to BrowsingContext::Focus(). r=nika
Differential Revision: https://phabricator.services.mozilla.com/D100005
2021-01-18 07:45:29 +00:00
Emilio Cobos Álvarez 562c44a853 Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-17 14:44:41 +00:00
Emilio Cobos Álvarez 5c1a39349e Bug 1551040 - Add const versions of Document casts. r=edgar
Depends on D101516

Differential Revision: https://phabricator.services.mozilla.com/D101517
2021-01-17 14:44:44 +00:00
Dorel Luca dac45cc702 Backed out 3 changesets (bug 1551040) for Browser-chrome failures in browser/base/content/test/static/browser_parsable_css.js
Backed out changeset f48f479bcacd (bug 1551040)
Backed out changeset a6cd4b393999 (bug 1551040)
Backed out changeset 252cbf40efcb (bug 1551040)
2021-01-17 16:38:39 +02:00
longsonr 6feef3dcfc Bug 1687131 - test_pointer-events-5.xhtml is a copy of test_pointer-events-2.xhtml r=emilio
They should be different, test_pointer-events-5.xhtml was intended to test non-existent clip paths as part of bug 975206

Differential Revision: https://phabricator.services.mozilla.com/D102091
2021-01-16 22:55:48 +00:00
Emilio Cobos Álvarez 71b5ff7515 Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-16 19:15:59 +00:00
Emilio Cobos Álvarez edf7671bfc Bug 1551040 - Add const versions of Document casts. r=edgar
Depends on D101516

Differential Revision: https://phabricator.services.mozilla.com/D101517
2021-01-16 18:58:28 +00:00
Bogdan Tara c88a628881 Backed out 3 changesets (bug 1551040) for stylesheets related bustage CLOSED TREE
Backed out changeset 3822fe3e163d (bug 1551040)
Backed out changeset 032025f28d8f (bug 1551040)
Backed out changeset 1aeb38c2dce3 (bug 1551040)
2021-01-16 20:53:31 +02:00
Emilio Cobos Álvarez fcace619be Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-16 10:53:09 +00:00
Emilio Cobos Álvarez b4e254b836 Bug 1551040 - Add const versions of Document casts. r=edgar
Depends on D101516

Differential Revision: https://phabricator.services.mozilla.com/D101517
2021-01-16 10:53:11 +00:00
Mihai Alexandru Michis cc7f02268b Backed out changeset 4934ec1fbb6f (bug 1649611) for causing xpcshell failures in test_DownloadCore.js
CLOSED TREE
2021-01-16 12:50:11 +02:00
Mihai Alexandru Michis f1247be876 Backed out 4 changesets (bug 1551040) for causing mochitest failures.
CLOSED TREE

Backed out changeset 06c07b144db8 (bug 1551040)
Backed out changeset a6ebb45be432 (bug 1551040)
Backed out changeset 38f1416a92c3 (bug 1551040)
Backed out changeset 6c80881c8844 (bug 1551040)
2021-01-16 12:47:04 +02:00
Emilio Cobos Álvarez 08ce37b5ed Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-16 03:19:38 +00:00
Emilio Cobos Álvarez 91d84e11c8 Bug 1551040 - Add const versions of Document casts. r=edgar
Depends on D101516

Differential Revision: https://phabricator.services.mozilla.com/D101517
2021-01-13 11:39:30 +00:00
Edgar Chen a7eb9d0cb4 Bug 1687052 - Part 5: Remove test_wpt_pointerevent_capture_suppressing_mouse-manual.html; r=masayuki
pointerevent_capture_suppressing_mouse-manual.html are no longer a manual test
in wpt after using web-driver, and we could pass most of test in wpt one,
- https://wpt.fyi/results/pointerevents/pointerevent_capture_suppressing_mouse.html?label=experimental&label=master&aligned

Depends on D102050

Differential Revision: https://phabricator.services.mozilla.com/D102051
2021-01-15 23:35:45 +00:00
Edgar Chen 1173ded146 Bug 1687052 - Part 4: Remove test_wpt_pointerevent_pointerenter_does_not_bubble-manual.html; r=masayuki
pointerevent_pointerenter_does_not_bubble-manual.html are no longer a manual test
in wpt after using web-driver, and we could pass most of test in wpt one,
- https://wpt.fyi/results/pointerevents/pointerevent_pointerenter_does_not_bubble.html?label=experimental&label=master&aligned

Depends on D102049

Differential Revision: https://phabricator.services.mozilla.com/D102050
2021-01-15 23:35:09 +00:00
Edgar Chen bc26284dab Bug 1687052 - Part 3: Remove test_wpt_pointerevent_pointerleave_does_not_bubble-manual.html; r=masayuki
pointerevent_pointerleave_does_not_bubble-manual.html are no longer a manual test
in wpt after using web-driver, and we could pass most of test in wpt one,
- https://wpt.fyi/results/pointerevents/pointerevent_pointerleave_does_not_bubble.html?label=experimental&label=master&aligned

Depends on D102048

Differential Revision: https://phabricator.services.mozilla.com/D102049
2021-01-15 23:34:27 +00:00
Edgar Chen a1cdfafa0c Bug 1687052 - Part 2: Remove test_wpt_pointerevent_releasepointercapture_onpointerup_mouse-manual.html; r=masayuki
pointerevent_releasepointercapture_onpointerup_mouse-manual.html are no longer a
manual test in wpt after using web-driver, and we could pass the wpt one,
- https://wpt.fyi/results/pointerevents/pointerevent_releasepointercapture_onpointerup_mouse.html?label=experimental&label=master&aligned

Depends on D102047

Differential Revision: https://phabricator.services.mozilla.com/D102048
2021-01-15 23:33:59 +00:00
Edgar Chen 16481bafe5 Bug 1687052 - Part 1: Remove test_wpt_test_pointerevent_suppress_compat_events_on_*; r=masayuki
pointerevent_suppress_compat_events_on_* are no longer a manual test in wpt after
using web-driver, and we could pass the wpt one,
- https://wpt.fyi/results/pointerevents/pointerevent_suppress_compat_events_on_click.html?label=experimental&label=master&aligned
- https://wpt.fyi/results/pointerevents/pointerevent_suppress_compat_events_on_drag_mouse.html?label=experimental&label=master&aligned

Differential Revision: https://phabricator.services.mozilla.com/D102047
2021-01-15 23:32:10 +00:00
Gijs Kruitbosch 09bc42e69f Bug 1686947 - fix jsactor documentation links in code comments, r=nika DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D101929
2021-01-15 16:28:07 +00:00
Emma Malysz 9497c44dcb Bug 1649611: Remove OS.File usage from DownloadIntegration.jsm and respect umask in IOUtils::SetPermissions r=barret
Differential Revision: https://phabricator.services.mozilla.com/D99729
2021-01-15 21:42:10 +00:00
Csoregi Natalia e2b141a4a9 Backed out 4 changesets (bug 1676942) for failures on test_ioutils_read_write_json.html. CLOSED TREE
Backed out changeset cbd8324d869d (bug 1676942)
Backed out changeset ac0d932fe580 (bug 1676942)
Backed out changeset 3cc0c110b0ec (bug 1676942)
Backed out changeset 3595d192a9e0 (bug 1676942)
2021-01-15 23:28:18 +02:00
Jeff Gilbert c2e4fdeb90 Bug 1686750 - Upload zeros if layers::Image => SurfaceDescriptor fails. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D101948
2021-01-15 19:18:38 +00:00
Barret Rennie ee3629a5a3 Bug 1676942 - Replace remaining usage of NS_ENSURE_TRUE in IOUtils r=nika
This patch is a minor cleanup based on prior feedback to make all of IOUtils
consistent.

Differential Revision: https://phabricator.services.mozilla.com/D100058
2021-01-15 04:57:43 +00:00
Barret Rennie 5218239ac1 Bug 1676942 - Add IOUtils::WriteJSON r=nika,tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D99155
2021-01-15 04:57:36 +00:00
Barret Rennie ff56b503d0 Bug 1676942 - Add IOUtils::ReadJSON r=nika,tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D99154
2021-01-15 04:57:28 +00:00
Barret Rennie 0e2cccc6a3 Bug 1676942 - Refactor RunOnBackgroundThread r=nika
RunOnBackgroundThread has been renamed to RunOnBackgroundThreadAndResolve. The
body dealing with calling InvokeAsync for calling a function on the background
event target and returning a MozPromise has been refactored into a new
function, RunOnBackgroundThread.

This allows us to have more complicated IOUtils methods that do not simply
resolve their promises to whatever is returned by the background methods.

Differential Revision: https://phabricator.services.mozilla.com/D99002
2021-01-15 04:57:15 +00:00
Tim Huang 2d5079d66c Bug 1685807 - Part 2: Add tests including a mochitest and a web platform test. r=smaug
This patch adds two tests, one for the mochitest and another for WPT.
Both tests will test the case of loading the about:blank page. And
mochitest tests the case of setting document.domain additionally.

The WPT framework won't support testing the document.domain case, so
there is no such test in the WPT.

Differential Revision: https://phabricator.services.mozilla.com/D101360
2021-01-15 18:57:28 +00:00
Tim Huang bcedb0720f Bug 1685807 - Part 1: Not to reset the window.name if it's navigating to an about:blank page from a non-about:blank page. r=smaug
This patch changes the checking condition about the cases that we don't
need to reset the window.name.

Also, we take the domain into account when checking the principals of
the old and new documents. This would make the window.name to be
reset if the document.domain was changed to a cross-origin.

Differential Revision: https://phabricator.services.mozilla.com/D101359
2021-01-15 18:57:20 +00:00
Noemi Erli 8ad2a18a79 Backed out 5 changesets (bug 1667998) for breaking a11y checks CLOSED TREE
Backed out changeset 633dda979b22 (bug 1667998)
Backed out changeset c9838cdb1303 (bug 1667998)
Backed out changeset 501c54cf59be (bug 1667998)
Backed out changeset 615b74c822ec (bug 1667998)
Backed out changeset 6d187c01fcb3 (bug 1667998)
2021-01-15 20:16:06 +02:00
Yura Zenevich 33ccace61e Bug 1667998 - converted calls to EventUtils.sendMouseEvent to be async. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97323
2021-01-15 16:53:43 +00:00
Simon Giesecke 36977349f7 Bug 1685677 - Make QuotaManager members const/InitializedOnce where possible. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D101144
2021-01-15 16:26:04 +00:00
Tom Tung e3d152e0a0 Bug 1683299 - Update the schemes for origins in test_localStorageQuota.html to ensure they run in the same process in Fission; r=dom-workers-and-storage-reviewers,janv
Legacy LocalStorage checks if origins are in the same site by checking suffix
so that https://test2.example.com was expected to share site quota with
http://example.com and http://test1.example.com in the test.
However, in Fission, process isolation is based on SiteOrigin and that means
https://test2.example.com runs in one process and the other two run in another
process.

This patch only updates the test to ensure testing origins run in the same
process when Fission enables. The usage synchronization is still an issue and
that means Fission needs LSNG to be enabled.

Differential Revision: https://phabricator.services.mozilla.com/D101888
2021-01-15 15:56:57 +00:00
Simon Giesecke 1575347021 Bug 1685279 - Change QuotaManager::ParseOrigin to return a Result<PrincipalInfo, nsresult>. r=dom-workers-and-storage-reviewers,janv
ParseOrigin is only used to construct a PrincipalInfo, so it makes sense to
return it directly.

Differential Revision: https://phabricator.services.mozilla.com/D100889
2021-01-15 10:53:02 +00:00
Simon Giesecke 9d4e29c97f Bug 1685278 - Change GenerateOriginKey2 to return a Result. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D100888
2021-01-15 10:22:51 +00:00
Simon Giesecke e4626b49ec Bug 1685277 - Use QM_TRY in dom/localstorage/ActorsParent.cpp. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D100887
2021-01-15 10:51:28 +00:00
Masatoshi Kimura a29e207781 Bug 1685900 - Split internal and external contentPolicyType. r=ckerschb,smaug
Differential Revision: https://phabricator.services.mozilla.com/D101271
2021-01-15 12:07:16 +00:00
Simon Giesecke 20362b3c54 Bug 1684912 - Call a handler in case a corrupted database file was detected. r=dom-workers-and-storage-reviewers,janv
The handler is called before opening the connection again. This does not restore
the behaviour before Bug 1684912 exactly. In case removal of the usage or database
file fails, the handler will not be called. Also, the handler can no longer fail,
which simplifies the control flow.

Differential Revision: https://phabricator.services.mozilla.com/D100761
2021-01-15 10:51:15 +00:00
Henri Sivonen 058e02104c Bug 1648464 - Add an Autodetect item to the Text Encoding menu. r=emk,chutten,Gijs
Take a step towards replacing the encoding menu with a single menu item that
triggers the autodetection manually. However, don't remove anything for now.

* Add an autodetect item.
* Add telemetry for autodetect used in session.
* Add telemetry for non-autodetect used in session.
* Restore and revise telemetry for how the encoding that is being overridden
  was discovered.

Differential Revision: https://phabricator.services.mozilla.com/D81132
2021-01-14 07:06:53 +00:00
Christoph Kerschbaumer 4f1c28e9e4 Bug 1671166: Validate received Principal in ContentParent r=nika
Differential Revision: https://phabricator.services.mozilla.com/D96071
2021-01-15 10:10:28 +00:00
Simon Giesecke 34497df94e Bug 1683826 - Replace SanitizeOriginString by pure functions. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D100318
2021-01-15 10:13:06 +00:00
Simon Giesecke 9faf20114d Bug 1685098 - Use QM_TRY in dom/quota/ActorsParent.cpp. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D100783
2021-01-15 10:13:16 +00:00
Olli Pettay b6bb80bd47 Bug 1686716 - Calling event.preventDefault in drop event handler causes a crash after target iframe has been removed, r=masayuki
Outerwindow implements nsIScriptObjectPrincipal.

Differential Revision: https://phabricator.services.mozilla.com/D101774
2021-01-15 10:04:50 +00:00
Henri Sivonen f0af8088e4 Bug 1647310 - Stop storing charset on cache entries. r=necko-reviewers,dragana
Storing the charset on cache entries makes the code path uselessly different
when loading from cache relative to uncached loads. Also, for future
telemetry purposes, caching the charset obscures its original source.

Differential Revision: https://phabricator.services.mozilla.com/D101570
2021-01-15 09:35:56 +00:00
Mirko Brodesser 217ea6c8ea Bug 1685303: part 14) Annotate `SelectByTypeAtPoint` with `MOZ_CAN_RUN_SCRIPT`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D101762
2021-01-15 09:28:07 +00:00
Luke Wagner 96147a3ab6 Bug 1647791 - WebAssembly: add telemetry for duplicate imports r=lth
Differential Revision: https://phabricator.services.mozilla.com/D100555
2021-01-07 23:50:38 +00:00
Edgar Chen abee684546 Bug 1686722 - Part 2: Move wpt resources to wpt/; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D101820
2021-01-15 01:09:07 +00:00
Edgar Chen cb33f7db53 Bug 1686722 - Part 1: Rename mochitest tests that run wpt to test_wpt_*; r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D101819
2021-01-15 01:01:32 +00:00
nirmay b99c8b51c2 Bug 1684647 - Removed 'else' after 'return'. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D101217
2021-01-15 04:42:07 +00:00
Barret Rennie 1775ee67bf Bug 1680151 - Replace WriteUTF8Sync with call to WriteSync r=nika
Differential Revision: https://phabricator.services.mozilla.com/D99153
2021-01-15 04:57:07 +00:00
Barret Rennie 6539ca7596 Bug 1680151 - Reduce copies in IOUtils::Read{,UTF8} r=nika,tcampbell
Previously, in both Read and ReadUTF8, we were doing copies where we did not
need to. Read allocated an nsTArray and passed that to JS, which performed a
copy of its contents to create a Uint8Array. ReadUTF8, on the other hand, would
take that nsTArray, convert it into ns nsString (1 copy), and then pass it to
JS for it to recreate the string (2 copies).

Now, we allocate our string and array buffers up front in JS' memory pools
directly and use the JS API to create the strings and arrays ourselves (instead
of relying on Promise::MaybeResolve() to do a copying conversion). Read now
performs 0 copies in the best case (if the file is not compressed) and ReadUTF8
also does 0 copies in the best case (if the file is not compressed and the
string is ASCII). In the worst case, Read performs a single extra allocation
(to decompress the file) and ReadUTF8 performs 2 (to decompress the file and to
convert a UTF-8 string to either a Latin1 string or a UTF-16 string).

Differential Revision: https://phabricator.services.mozilla.com/D99004
2021-01-15 04:28:08 +00:00
Barret Rennie eaf165033d Bug 1680151 - Accept UTF8String directly in IOUtils::WriteUTF8 r=Gijs
Instead of accepting a DOMString (ie, a UTF16 string) and manually converting
it to UTF-8, we can instead accept a UTF8String from JS, which saves us
manually doing conversions and (and may save an additional conversion if the
JSString* is an ASCII string).

Differential Revision: https://phabricator.services.mozilla.com/D99003
2021-01-15 04:28:00 +00:00
Butkovits Atila db44a41c6c Backed out 5 changesets (bug 1678619) for causing memory leaks. CLOSED TREE
Backed out changeset 64be4bea09dd (bug 1678619)
Backed out changeset 308fda30c166 (bug 1678619)
Backed out changeset efb9bdef89b8 (bug 1678619)
Backed out changeset d26f45eac0b9 (bug 1678619)
Backed out changeset b2f22d6d2725 (bug 1678619)
2021-01-15 12:56:01 +02:00
Narcis Beleuzu 07863cc5ea Backed out changeset 43f2f5614583 (bug 1649611) for bustages on IOUtils.cpp CLOSED TREE 2021-01-15 05:26:47 +02:00
Kagami Sascha Rosylight d4ad0997cf Bug 1686625 - Use proper numbers for mouse 4th/5th buttons r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D101855
2021-01-15 01:39:35 +00:00
Daisuke Akatsuka e97c2c8e87 Bug 1678619: Implement a mechanism to fire pages-rank-changed event. r=mak
Depends on D100458

Differential Revision: https://phabricator.services.mozilla.com/D100459
2021-01-14 23:33:38 +00:00
Emma Malysz 8a1ef36d37 Bug 1649611: Remove OS.File usage from DownloadIntegration.jsm and respect umask in IOUtils::SetPermissions r=barret
Differential Revision: https://phabricator.services.mozilla.com/D99729
2021-01-14 19:05:32 +00:00
Narcis Beleuzu 0322452233 Backed out changeset a52961071dcd (bug 1685900) for Build bustage in nsContentSecurityManager.cpp. CLOSED TREE 2021-01-15 04:04:37 +02:00
Masatoshi Kimura b384f14cde Bug 1685900 - Split internal and external contentPolicyType. r=ckerschb,smaug
Differential Revision: https://phabricator.services.mozilla.com/D101271
2021-01-15 04:02:41 +02:00