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

20883 Коммитов

Автор SHA1 Сообщение Дата
Christoph Kerschbaumer 357ee3d14c Bug 1609877: Convert prefs for domsecurity to use static prefs. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D60403

--HG--
extra : moz-landing-system : lando
2020-01-22 11:04:17 +00:00
pbz 0d5e5faea7 Bug 1357107 - Remove nsContentBlocker. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D59696

--HG--
extra : moz-landing-system : lando
2020-01-21 19:19:17 +00:00
Narcis Beleuzu cb54b0227b Backed out 5 changesets (bug 1605566) for wpt failures on shared.html . CLOSED TREE
Backed out changeset 622939cef438 (bug 1605566)
Backed out changeset ab98304e6c84 (bug 1605566)
Backed out changeset 7eab8fd2b62e (bug 1605566)
Backed out changeset 99f61f25ed86 (bug 1605566)
Backed out changeset 77bdf4f86052 (bug 1605566)
2020-01-22 12:58:13 +02:00
Oana Pop Rus 1d2bce24ac Backed out 2 changesets (bug 1601660) for gv-junit failures in ContentBlockingControllerTest. on a CLOSED TREE
Backed out changeset ec5d3b078a88 (bug 1601660)
Backed out changeset 06001b30f6cd (bug 1601660)
2020-01-22 12:06:22 +02:00
Andrea Marchesini 47ee255c20 Bug 1605566 - MessagePort + wasm - part 5 - tests, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59616

--HG--
extra : moz-landing-system : lando
2020-01-22 09:34:37 +00:00
Andrea Marchesini 14b6fd8572 Bug 1605566 - MessagePort + wasm - part 2 - implement JS::StructuredCloneScope::UnknownDestination, r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D59613

--HG--
extra : moz-landing-system : lando
2020-01-22 09:32:48 +00:00
Dimi Lee da3402759d Bug 1601660 - Part 2: Remove getContentBlockingLog from nsIDocShell.idl r=Ehsan
This patch removes the unnecessary getContentBlockingLog function from
nsIDocShell.idl.

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

--HG--
extra : moz-landing-system : lando
2020-01-06 20:00:51 +00:00
Emilio Cobos Álvarez cf6728cdd2 Bug 1610059 - Rename Document::SetStyleSheetApplicableState. r=nordzilla
It doesn't set anything, it is just a notification callback.

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

--HG--
extra : moz-landing-system : lando
2020-01-22 01:14:42 +00:00
Emilio Cobos Álvarez 2261c719d0 Bug 1608931 - Ensure we tick the refresh driver at least once after calling IntersectionObserver.observe. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D60015

--HG--
extra : moz-landing-system : lando
2020-01-21 23:21:32 +00:00
Emilio Cobos Álvarez 8a7906f381 Bug 1610064 - Avoid including StyleSheet.h from Document.h. r=nordzilla,firefox-style-system-reviewers
This in turn requires fixing various other include hell / missing include
issues.

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

--HG--
extra : moz-landing-system : lando
2020-01-21 20:31:05 +00:00
Mirko Brodesser eed3b8d8ab Bug 1609662: part 15) Rename some methods in `Selection`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60256

--HG--
extra : moz-landing-system : lando
2020-01-21 16:02:20 +00:00
Mirko Brodesser 9f2d95176c Bug 1609662: part 14) Document some `ContentIterator*` methods. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60255

--HG--
extra : moz-landing-system : lando
2020-01-21 16:02:07 +00:00
Mirko Brodesser 37eb82cb25 Bug 1609662: part 13) Declare some methods in `Selection` const. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60254

--HG--
extra : moz-landing-system : lando
2020-01-21 16:01:59 +00:00
Mirko Brodesser 99856824e5 Bug 1609662: part 12) Replace unreachable code with assertions in `Selection::AddRangeAndSelectFramesAndNotifyListeners`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60227

--HG--
extra : moz-landing-system : lando
2020-01-21 16:01:52 +00:00
Mirko Brodesser ab604ca294 Bug 1609662: part 11) Rename `nsTextFrame::SetSelectedRange` and add `nsIFrame::SelectionStateChanged`. r=emilio,smaug
Differential Revision: https://phabricator.services.mozilla.com/D60157

--HG--
extra : moz-landing-system : lando
2020-01-21 16:01:45 +00:00
Dimi Lee b9aa6a9945 Bug 1603053 - Move reportContentBlockingLog from the child to the parent r=timhuang,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D56737

--HG--
extra : moz-landing-system : lando
2020-01-21 14:28:48 +00:00
Sylvestre Ledru 187e9bafaf Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-01-21 09:51:27 +00:00
Makoto Kato 7b3ef75994 Bug 1574307 - Part 3. Dispatch DOMMetaViewportFitChanged when viewport-fit is changed. r=smaug,hiro
Actually, we have `DOMMeta*` event for modifying meta element. But GeckoView wants viewport-fit change only.

@hiro suggests new event that is fired by viewport-fit will be changed. This event doesn't need current viewport-fit value since GeckoView doesn't need current value immediately.

Depends on D57397

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

--HG--
extra : moz-landing-system : lando
2020-01-20 08:41:05 +00:00
Makoto Kato 163a589174 Bug 1574307 - Part 2. Add nsIDOMWindowUtils.getViewportFitInfo r=smaug
Per discussing with @hiro, we should add new method to get viewport-fit
instead of adding parameter of `nsIDOMWindowUtils.getViewportInfo`.

Depends on D55609

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

--HG--
extra : moz-landing-system : lando
2020-01-20 08:40:20 +00:00
Makoto Kato a94e918a29 Bug 1574307 - Part 1. Parse viewport-fit in meta element. r=smaug
For safe area insets (cutout) support, CSS Round Display Level 1 (https://drafts.csswg.org/css-round-display/#viewport-fit-descriptor) has new viewport value as `viewport-fit`.

To support safe area insets that is notch on display, CSS Environment Variables Module Level 1 (https://drafts.csswg.org/css-env-1/#safe-area-insets) adds `safearea-insets-*` (left, top, right and bottom). Also, `meta` element has `viewport-fit` enum value. (ex `<meta name="viewport" content="viewport-fit=cover>`) whether web browser window cover notch area.

`viewport-fit` has 3 enum value, `auto`, `cover` and `contain`.  GeckoView wants to expose this value to browser application such Fenix. Because Android API (https://developer.android.com/guide/topics/display-cutout) uses window root layout (It is set by Application) to cover notch on display.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 08:40:05 +00:00
Ehsan Akhgari 0574a70b8a Bug 1588980 - Part 2: Remove the deprecation warning for HTMLCanvasElement.mozGetAsFile; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D60284

--HG--
extra : moz-landing-system : lando
2020-01-20 22:02:59 +00:00
longsonr ceb7408d28 Bug 984461 - Remove nsIDOMSVGLength from the Components shim. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D58352

--HG--
extra : moz-landing-system : lando
2020-01-20 21:21:52 +00:00
Razvan Maries 41ffa16326 Backed out changeset dbaa31392a53 (bug 1609877) for build bustages on DOMSecurityMonitor.cpp. CLOSED TREE 2020-01-20 22:08:07 +02:00
Christoph Kerschbaumer b7a9b6218a Bug 1609877: Convert prefs for domsecurity to use static prefs. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D60403

--HG--
extra : moz-landing-system : lando
2020-01-20 18:10:38 +00:00
Nazım Can Altınova f70859c47d Bug 1609674 - Add innerWindowID param to AUTO_PROFILER_TEXT_MARKER_CAUSE and use that macro for setTimeout callback marker. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D60270

--HG--
extra : moz-landing-system : lando
2020-01-20 18:53:09 +00:00
Nazım Can Altınova f76aad2740 Bug 1609674 - Add innerWindowID to setTimout markers. r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D60269

--HG--
extra : moz-landing-system : lando
2020-01-20 18:52:41 +00:00
Eugen Sawin beba9129ed Bug 1609701 - [1.1] Ignore resuming of non-suspended windows. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60274

--HG--
extra : moz-landing-system : lando
2020-01-20 18:52:28 +00:00
Mirko Brodesser b81c405274 Bug 1609662: part 10) Update documentation of `Selection::MaybeAddTableCellRange`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60134

--HG--
extra : moz-landing-system : lando
2020-01-20 12:39:33 +00:00
Mirko Brodesser dc2c479f0e Bug 1609662: part 9) Update documentation of `Selection::AddRangesForSelectableNodes`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60133

--HG--
extra : moz-landing-system : lando
2020-01-20 12:39:26 +00:00
Mirko Brodesser ed59dcc979 Bug 1609662: part 8) Rename `aItem` to `aRange` in `Selection::AddRangesForSelectableNodes`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60132

--HG--
extra : moz-landing-system : lando
2020-01-20 12:39:19 +00:00
Mirko Brodesser 639cedc77f Bug 1609662: part 7) Extend documentation of `MaybeAddRangeAndTruncateOverlaps`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60131

--HG--
extra : moz-landing-system : lando
2020-01-20 12:39:11 +00:00
Mirko Brodesser 7fca9557d2 Bug 1609662: part 6) Update documentation of `Selection::GetIndicesForInterval`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60130

--HG--
extra : moz-landing-system : lando
2020-01-20 12:39:04 +00:00
Mirko Brodesser 0996bebd47 Bug 1609662: part 5) Update documentation of `Selection::FindInsertionPoint`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60129

--HG--
extra : moz-landing-system : lando
2020-01-20 12:38:56 +00:00
Mirko Brodesser 91911cded2 Bug 1609662: part 4) Move documentation of `Selection::FindInsertionPoint`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60128

--HG--
extra : moz-landing-system : lando
2020-01-20 12:38:49 +00:00
Mirko Brodesser dd5adc7ab5 Bug 1609662: part 3) Rename `Selection::AddTableCellRange` to `Selection::MaybeAddTableCellRange`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60127

--HG--
extra : moz-landing-system : lando
2020-01-20 12:38:42 +00:00
Mirko Brodesser 553a3b8cc8 Bug 1609662: part 1) Add minimal documentation to `Selection::GetRangeAt`. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D60125

--HG--
extra : moz-landing-system : lando
2020-01-20 12:38:22 +00:00
Emilio Cobos Álvarez 256c124f94 Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj
This was done by:

This was done by applying:

```
diff --git a/python/mozbuild/mozbuild/code-analysis/mach_commands.py b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
index 789affde7bbf..fe33c4c7d4d1 100644
--- a/python/mozbuild/mozbuild/code-analysis/mach_commands.py
+++ b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
@@ -2007,7 +2007,7 @@ class StaticAnalysis(MachCommandBase):
         from subprocess import Popen, PIPE, check_output, CalledProcessError

         diff_process = Popen(self._get_clang_format_diff_command(commit), stdout=PIPE)
-        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format]
+        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format, '-sort-includes']

         if not output_file:
             args.append("-i")
```

Then running `./mach clang-format -c <commit-hash>`

Then undoing that patch.

Then running check_spidermonkey_style.py --fixup

Then running `./mach clang-format`

I had to fix four things:

 * I needed to move <utility> back down in GuardObjects.h because I was hitting
   obscure problems with our system include wrappers like this:

0:03.94 /usr/include/stdlib.h:550:14: error: exception specification in declaration does not match previous declaration
0:03.94 extern void *realloc (void *__ptr, size_t __size)
0:03.94              ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/malloc_decls.h:53:1: note: previous declaration is here
0:03.94 MALLOC_DECL(realloc, void*, void*, size_t)
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozilla/mozalloc.h:22:32: note: expanded from macro 'MALLOC_DECL'
0:03.94     MOZ_MEMORY_API return_type name##_impl(__VA_ARGS__);
0:03.94                                ^
0:03.94 <scratch space>:178:1: note: expanded from here
0:03.94 realloc_impl
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozmemory_wrap.h:142:41: note: expanded from macro 'realloc_impl'
0:03.94 #define realloc_impl mozmem_malloc_impl(realloc)

   Which I really didn't feel like digging into.

 * I had to restore the order of TrustOverrideUtils.h and related files in nss
   because the .inc files depend on TrustOverrideUtils.h being included earlier.

 * I had to add a missing include to RollingNumber.h

 * Also had to partially restore include order in JsepSessionImpl.cpp to avoid
   some -WError issues due to some static inline functions being defined in a
   header but not used in the rest of the compilation unit.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:19:48 +00:00
Emilio Cobos Álvarez aa3a695712 Bug 1609996 - Remove mozilla/Move.h. r=froydnj
rg -l 'mozilla/Move.h' | xargs sed -i 's/#include "mozilla\/Move.h"/#include <utility>/g'

Further manual fixups and cleanups to the include order incoming.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:18:20 +00:00
Emilio Cobos Álvarez 5cd5e6f148 Bug 1609996 - Remove mozilla::Swap in favor of std::swap. r=froydnj
Now mfbt/Move.h is empty except for that excellent comment about move
semantics... Should we put it somewhere else and delete the header as a
follow-up? Or just delete the header and carry on?

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:17:06 +00:00
Cosmin Sabou 38f8a8661d Backed out 2 changesets (bug 1588980) for mochitest failures on dom/canvas/test/mochitest.ini.
Backed out changeset dc0733b283e7 (bug 1588980)
Backed out changeset aaff3fef7fd6 (bug 1588980)

--HG--
extra : rebase_source : 2ec145cfc7d648cf78b927cce22210070ef579a2
2020-01-20 18:06:11 +02:00
Ehsan Akhgari 131bc87db8 Bug 1588980 - Part 2: Remove the deprecation warning for HTMLCanvasElement.mozGetAsFile; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D60284

--HG--
extra : moz-landing-system : lando
2020-01-18 05:06:27 +00:00
Andreas Farre 68ac0a2401 Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D56743

--HG--
extra : moz-landing-system : lando
2020-01-20 14:58:52 +00:00
Nazım Can Altınova 4c5b7c4344 Bug 1609659 - Rename "TTFI" marker to "TimeToFirstInteractive (TTFI)". r=gerald
Depends on D60232

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

--HG--
extra : moz-landing-system : lando
2020-01-17 21:27:05 +00:00
Nazım Can Altınova d8afe0647a Bug 1609708 - Rename PROFILER_TRACING to PROFILER_TRACING_MARKER. r=gerald
Depends on D60229

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

--HG--
extra : moz-landing-system : lando
2020-01-17 21:29:15 +00:00
Sylvestre Ledru cc2040bf21 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

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

--HG--
extra : moz-landing-system : lando
2020-01-18 13:48:34 +00:00
Dorel Luca 506e65bcab Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c 2020-01-18 15:39:55 +02:00
Sylvestre Ledru 6689a37527 Bug 1605934 - Use nested namespaces r=sg
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files

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

--HG--
extra : moz-landing-system : lando
2020-01-18 13:16:39 +00:00
Brad Werth 465b225500 Bug 1569626 Part 1: Save and restore the presshell resolution when creating and destroying an MVM. r=botond
We need the resolution to be restored when and if the presshell creates
a MobileViewportManager. That decision happens in
PresShell::UpdateViewportOverridden. In order for the resolution to be
saved somewhere it has to exist outside the presshell itself, since
the presshell will be destroyed and recreated during some of the
operations that also destroy the MVM -- such as closing the devtools'
Responsive Design Mode. So Document holds this resolution and gets
accessor methods to allow the presshell to get and set that resolution
as needed.

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

--HG--
extra : moz-landing-system : lando
2020-01-17 21:57:56 +00:00
Masayuki Nakano 487e463bb5 Bug 1543315 - part 21: Mark `PresShell::DidCauseReflow()` as `MOZ_CAN_RUN_SCRIPT` r=smaug
It removes a script blocker.  Therefore, although it depends on the caller
whether it causes running script or not.  However, we should mark it as
`MOZ_CAN_RUN_SCRIPT` for safer code.

It's called only by the destructor of `nsAutoCauseReflowNotifier`.  Therefore,
this patch also marks its constructor as `MOZ_CAN_RUN_SCRIPT` for making
each creator method marked as `MOZ_CAN_RUN_SCRIPT` or
`MOZ_CAN_RUN_SCRIPT_BOUNDARY`.

Most of the creators is mutation listener methods.  However, `PresShell`
does nothing after destroying `nsAutoCauseReflowNotifier`.  Therefore,
this patch does not change the callers in MutationObserver.cpp to use
`RefPtr<PresShell>` at calling them because changing it may cause performance
regression.

Perhaps, we should create another methods of `WillCauseReflow()` and
`DidCauseReflow()` to avoid unnecessary `MOZ_CAN_RUN_SCRIPT` marking.
However, I'm not sure whether most callers may run script or not because
of outside of my knowledge.

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

--HG--
extra : moz-landing-system : lando
2020-01-17 10:00:28 +00:00
Tetsuharu OHZEKI 14f56e1538 Bug 1597414 - Fix uses of nsIDocShellTreeItem in mozilla::dom::ScreenOrientation::GetLockOrientationPermission. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D59453

--HG--
extra : moz-landing-system : lando
2020-01-17 09:46:45 +00:00