Commit Graph

652219 Commits

Author SHA1 Message Date
Razvan Caliman
ad3c70e6a9 Bug 1552275 - Fix Copy Link context menu in DevTools Inspector markup view. r=gl
- Fixes the references to the correct event handler & InspectorFront after a previous mass refactoring in Bug 1529364.
- Augments a test to ensure the clipboard content is correct executing the context menu action to copy a link.

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

--HG--
extra : moz-landing-system : lando
2019-05-20 16:03:00 +00:00
Andreas Farre
c6af33c82e Bug 1552775 git clang-format hook: Ignore deleted files. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D31758

--HG--
extra : moz-landing-system : lando
2019-05-20 11:43:04 +00:00
diana.iacos
967d1baf46 Bug 1533365 - On tablets the icon from Sync page its not displayed correctly; r=petru
Differential Revision: https://phabricator.services.mozilla.com/D31963

--HG--
extra : moz-landing-system : lando
2019-05-21 08:20:55 +00:00
Andrea Marchesini
32c1b6bb89 Bug 1551729 - Revert bug 1548432 - Re-introducing the support for cookies without values, r=mayhemer
This patch reverts the second part of bug 1548432.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 08:57:21 +00:00
Julian Descottes
033f059748 Bug 1553029 - Show WebIDE deprecation message if the new about:debugging is enabled r=daisuke
Rather than having a separate preference for showing the deprecation message, we should reuse the aboutdebugging new pref

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

--HG--
extra : moz-landing-system : lando
2019-05-21 07:37:48 +00:00
Julian Descottes
5bd30911e3 Bug 1553031 - Hide Remote Debugging menu item when new aboutdebugging is disabled r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D31966

--HG--
extra : moz-landing-system : lando
2019-05-21 08:52:18 +00:00
Julian Descottes
2ad7ebc0fc Bug 1553028 - Disable new about:debugging on Beta and Release channels r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D31961

--HG--
extra : moz-landing-system : lando
2019-05-21 08:51:04 +00:00
Julian Descottes
62d2b67271 Bug 1553029 - Update WebIDE deprecation message to stop mentioning release 69 r=flod,daisuke
There was a last minute schedule change for remote debugging release and we will not ride the trains with Firefox 68
The deprecation schedule is therefore shifting by one release. We update the deprecation message in WebIDE here and we should
uplift this change to beta if possible. The patch was written in order to be uplifted, we can go for a simpler version if the
uplift is a no go.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 08:48:51 +00:00
Masayuki Nakano
fc57d9bf0f Bug 1549661 - part 7: Make GetInternalCommand() take nsCommandParams instead of nsAString r=m_kato
`GetInternalCommand()` is currently used only by `EditorCommand` and it
treats the additional parameter only when given command is `cmd_align`.
However, the value is complicated since `AlignCommand` allows both `CString`
value and `String` value.  Therefore, `EditorCommand::DoCommandParams()` may
fail to solve `cmd_align` to a `Command` value without checking both of them.

Therefore, it must make sense that `GetInternalCommand()` take `nsCommandParams`
as optional argument and check it only when given command matches `cmd_align`.
Then, we don't need to waste unnecessary run-time cost.

Note that this bug has been hidden since `AlignCommand` class does not refer
the `Command` value but refers only `nsCommandParams`.  However, the previous
patch makes `EditorCommand::GetParamType()` not allow `Command::DoNothing`.
Therefore, we need this follow-up fix now.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 07:47:51 +00:00
Masayuki Nakano
29dd5c8e74 Bug 1549661 - part 6: Create EditorCommand::DoCommandParam(Command aCommand, nsITransferable* aTransferableParam, TextEditor& aTextEditor) r=m_kato
If `nsIControllerCommand::DoCommandParams()` is called without aParams or
`nsITransferable` pointer, this patch sets nullptr to `aTransferableParam` for
`DoCommandParam()`.  This allows each implementation to choose ignore or
return error.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 07:47:49 +00:00
Masayuki Nakano
276f23b02c Bug 1549661 - part 5: Make commands for MultiStateCommandBase take both CString and String r=m_kato
Only `MultiStateCommandBase::DoCommandParams()` allows `CString` param and
`String` param (the former is preferred).  This patch makes
`EditorCommand::DoCommandParams()` aware of this case.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 07:47:47 +00:00
Masayuki Nakano
3e190307e7 Bug 1549661 - part 4: Create EditorCommand::DoCommandParam(Command aCommand, const nsAString& aStringParam, TextEditor& aTextEditor) r=m_kato
If `nsIControllerCommand::DoCommandParams()` is called with `nullptr` for its
`aParams`, this patch sets `VoidString()` to `DoCommandParam()` for making
each implementation be able to consider whether the case is an error or
treat it as specific default value.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 07:45:55 +00:00
Masayuki Nakano
723ebc93fe Bug 1549661 - part 3: Create EditorCommand::DoCommandParam(Command aCommand, const nsACString& aCStringParam, TextEditor& aTextEditor) r=m_kato
If `nsIControllerCommand::DoCommandParams()` is called with `nullptr` for its
`aParams`, this patch sets `VoidCString()` to `DoCommandParam()` for making
each implementation be able to consider whether the case is an error or
treat it as specific default value.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 07:45:22 +00:00
Masayuki Nakano
2b5a319f77 Bug 1549661 - part 2: Create EditorCommand::DoCommandParam(Command aCommand, const Maybe<bool>& aBoolParam, TextEditor& aTextEditor) r=m_kato
We should use `Maybe` for `bool` because some command may treat the default
value when the parameter is omitted as `true` or `false.  Although, current
implementation does not do that.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 07:44:39 +00:00
Masayuki Nakano
ef7e3647d8 Bug 1549661 - part 1: Create EditorCommand::DoCommandParam(Command aCommand, TextEditor& aTextEditor) and make it just call DoCommand() r=m_kato
Most `EditorCommand` classes don't require additional params for executing
a command.  All of them just calls their `DoCommand()` or returns same result.
So, we can create new virtual method,
`EditorCommand::DoCommandParam(Command aCommand, TextEditor& aTextEditor)`,
which just delegates to `DoCommand()`.

This patch adds some undeclared commands but which are handled by
`EditorCommand` subclasses, and changes `CommandInt` type from `int8_t` to
`uint8_t` since the count of `Command` items becomes over 128.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 07:44:11 +00:00
Mathieu Leplatre
a93a98c46e Bug 1552199 - Include records from dump in Remote Settings sync event created data r=glasserc
Differential Revision: https://phabricator.services.mozilla.com/D31599

--HG--
extra : moz-landing-system : lando
2019-05-21 07:38:29 +00:00
Mirko Brodesser
dff9cbe75c Bug 1552752: Part 2) Rename ConvertAndWrite to EncodeAndWrite and slighlty simplify method. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D31768

--HG--
extra : moz-landing-system : lando
2019-05-21 07:36:49 +00:00
Ran Xu
30d5c2a4db Bug 1547184 - Remove taobao in android search plugins r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D28945

--HG--
extra : moz-landing-system : lando
2019-05-21 04:54:31 +00:00
Mirko Brodesser
d762bd2dd7 Bug 1552869: propagate nsresult values of various Append* calls in SerializeNodeStart, SerializeNodeEnd r=hsivonen
Might helpt to discover and prevent bugs.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 05:38:20 +00:00
Mirko Brodesser
bd167d6f1e Bug 1552752: Part 1) Split off text streaming in nsDocumentEncoder to separate class. r=hsivonen
Abstracts the streaming details away. Reduces complexity of
`nsDocumentEncoder`.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 05:38:06 +00:00
Jon Coppeard
22445824ad Bug 1537909 - Optimise external read barriers r=sfink?
Add a special path for the external read barrier API where we inline most of the checks and then always perform the barrier if we call into the engine.  This also skips dispatching on trace kind since we know the barrier tracer is always a GCMarker.

This is kind of hacky and I'm not sure how much it gains us (it's difficult to tell in profiles where GC may occur at different times).  What do you think?

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

--HG--
extra : moz-landing-system : lando
2019-05-20 17:58:16 +00:00
Jon Coppeard
ea2ed53caf Bug 1395509 - Remove existing malloc accounting for externally allocated memory r=sfink?
Since we now have precise memory accounting for externally allocated memory associated with GC things we should be able to remove use of the existing malloc counter here.  This should help with cases where we trigger too many GCs because we think there is more memory associated than there really is.

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

--HG--
extra : moz-landing-system : lando
2019-05-20 17:27:02 +00:00
Matthew Noorenberghe
6c9f60f8cc Bug 1548381 - Tests for the password generation autocomplete UI. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D31576

--HG--
extra : moz-landing-system : lando
2019-05-21 00:24:16 +00:00
Matthew Noorenberghe
443b0dcc04 Bug 1548381 - Simplify test_autocomplete_new_password and use more common patterns. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D31575

--HG--
extra : moz-landing-system : lando
2019-05-21 00:24:18 +00:00
Matthew Noorenberghe
c7e2647572 Bug 1548381 - Password generation autocomplete UI. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D31211

--HG--
extra : moz-landing-system : lando
2019-05-21 00:24:20 +00:00
Matthew Noorenberghe
49af8c9279 Bug 1548381 - Make a generic two-line autocomplete richlistitem element. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D31210

--HG--
extra : moz-landing-system : lando
2019-05-21 00:24:22 +00:00
Matthew Noorenberghe
1b820e86b4 Bug 1548381 - Password Generation Autocomplete Result. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D31209

--HG--
extra : moz-landing-system : lando
2019-05-21 00:24:24 +00:00
Matthew Noorenberghe
52ce0df40b Bug 1548381 - Simplify login autocomplete footer result to avoid JSON. r=sfoster
We don't need to use JSON since we now support getCommentAt for extra data.

Also add unit tests that are missing.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 00:24:26 +00:00
Matthew Noorenberghe
424c0d0eec Bug 1548381 - LoginManagerParent.doAutocompleteSearch/getGeneratedPassword tests. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D31207

--HG--
extra : moz-landing-system : lando
2019-05-21 05:16:28 +00:00
Matthew Noorenberghe
c2a92f5c65 Bug 1548381 - Generate and cache a password for autocomplete="new-password" password fields. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D31206

--HG--
extra : moz-landing-system : lando
2019-05-21 00:24:30 +00:00
Matthew Noorenberghe
068d2c5c3d Bug 1548381 - Add prefs to release and enable password generation. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D31205

--HG--
extra : moz-landing-system : lando
2019-05-21 00:24:32 +00:00
Makoto Kato
ededb354fa Bug 1540589 - _get_host_platform shouldn't return None. r=nalexander
`./mach run` doesn't work since `_get_host_platform` returns None. So we should
return `win32` on Windows.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 03:28:04 +00:00
Ting-Yu Lin
fe2543f2c4 Bug 1348839 - Add a web platform test which tests max-height imposes constraint on column boxes' height. r=dbaron
This reftest renders correctly since bug 1411422 is landed.

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

--HG--
extra : moz-landing-system : lando
2019-05-20 22:05:09 +00:00
Matt Woodrow
42c9b79f0b Bug 1544995 - Always update overflow areas up to the preserve-3d root. r=dbaron
We don't store post-transform overflow areas for frames within preserve-3d, but we do store pre-transform overflow areas.
Rather than just recomputing the changed overflow for the root, we should recompute overflows for all ancestors up to the 3d root.

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

--HG--
extra : moz-landing-system : lando
2019-05-19 22:39:58 +00:00
Matt Woodrow
90ea5fbc78 Bug 1551389 - Compare line pointers directly, since we're ok with it failing if the lines are in different lists. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D31152

--HG--
extra : moz-landing-system : lando
2019-05-19 21:56:21 +00:00
Chris Pearce
922077eefe Bug 1552712 - Reserve capacity in IntervalSet::Intersection(). r=jya
Profiling shows we can spend a lot of time in IntervalSet::Intersection().

Much of this time is spent appending elements to a temporary buffer as we
loop over the two IntervalSets' arrays comparing them. As we append, the
storage of the temporary array is reallocated as the storage must grow to
hold more elements. These reallocations are expensive, as we must copy the
old elements to the new storage.

So before starting the loop, reserve enough capacity to store the upper
bound; the minimum of the two IntervalSets' lengths. This may waste memory,
but will be faster, as expensive reallocations are avoided.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 02:09:18 +00:00
nils@vulndev.org, Karl Tomlinson
0383d9bf4e bug 1548816 crashtest r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D30160

--HG--
extra : moz-landing-system : lando
2019-05-08 09:35:19 +00:00
Jeff Walden
8b511ad882 Bug 1552977 - Use non-inflating UTF-8 compilation in various C++ testing contexts. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31882

--HG--
extra : moz-landing-system : lando
2019-05-21 01:32:02 +00:00
Jeff Walden
38ead4474b Bug 1552977 - Add JS::EvaluateUtf8PathDontInflate that doesn't inflate UTF-8 file contents to UTF-16 before evaluating them. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31881

--HG--
extra : moz-landing-system : lando
2019-05-21 01:31:53 +00:00
Jeff Walden
bf9676ac23 Bug 1552977 - Add JS::CompileUtf8PathDontInflate with clear non-inflating nature and make existing JS::CompileUtf8Path callers inflate again. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31880

--HG--
extra : moz-landing-system : lando
2019-05-21 01:31:33 +00:00
Bryce Van Dyk
46e5b04e71 Bug 1533625 - Replace assert with early return for mp4 missing IV data. r=jya
This assert could be triggered with malformed files, so replace it with an early
return.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 06:40:17 +00:00
Bryce Van Dyk
1fe446e00c Bug 1533625 - Add crashtest for MP4 with missing cenc aux info. r=jya
Mp4s using the 'cenc' encryption scheme should contain auxiliary information
containing the initialization vector to be used to decode that sample. However,
it's possible for malformed mp4s to contain other relevant crypto information,
but to omit this aux info. This adds such a file to our crashtests.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 05:08:12 +00:00
Jeff Walden
1e8a4f44fd Bug 1553001 - Move module APIs out of jsapi.{cpp,h} into js/public/Modules.h and js/src/vm/Modules.cpp for better isolation of module-related APIs. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31917

--HG--
rename : js/src/jsapi.h => js/public/Modules.h
rename : js/src/jsapi.cpp => js/src/vm/Modules.cpp
extra : moz-landing-system : lando
2019-05-21 00:57:38 +00:00
Coroiu Cristina
c4361da40f Backed out changeset 2e560a9e4bcf (bug 1551690) for build bustages 2019-05-21 03:51:56 +03:00
Bryce Van Dyk
e454136cb1 Bug 1547757 - Use a RefPtr to hold owner element ref when moving media resource load to background. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D31019

--HG--
extra : moz-landing-system : lando
2019-05-16 07:01:02 +00:00
Mike Shal
4e71ffdf9d Bug 1552672 - Use is_tarfile() rather than is_zipfile() in mar repackaging; r=Callek
The zipfile.is_zipfile() function is overly lenient, in that non-zip
files that contain the four bytes "PK\005\006" near the end of the file
are reported as zip files even if the zip structure is not valid.
Occasionally, our target.tar.bz2 files randomly contain those 4 bytes at
the expected location, which causes the mar repackaging code to try to
process the package as a zip file instead of a tar file.

The tarfile.is_tarfile() logic looks a little more robust in that it
actually tries to open the file, so if we try tar first before falling
back to zip we should be a little more resilient.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 00:19:47 +00:00
Dorel Luca
02d3c96fae Backed out 9 changesets (bug 1548381) for XPCShell failures in toolkit/components/passwordmgr/test/unit/test_LoginManagerParent_doAutocompleteSearch.js
Backed out changeset 0e7d8f96bf12 (bug 1548381)
Backed out changeset 738ce5e88e05 (bug 1548381)
Backed out changeset 38e35b6d8d80 (bug 1548381)
Backed out changeset cddbcd92ec10 (bug 1548381)
Backed out changeset 60ff6e363acf (bug 1548381)
Backed out changeset 1e2300b95a59 (bug 1548381)
Backed out changeset e0cf735bdcf5 (bug 1548381)
Backed out changeset fde90ccfb570 (bug 1548381)
Backed out changeset 426750b88fc2 (bug 1548381)

--HG--
extra : rebase_source : af00f81d952ed46b6f140e3a1dd6b5ca5bf638ec
2019-05-21 03:19:42 +03:00
Nathan Froyd
dc2ad25275 Bug 1551690 - be more specific about the LLVM target on OS X; r=nalexander
Our current OS X builds use `--target=x86_64-darwin11` (which
corresponds to OS X 10.7).  This target is problematic for two reasons:

* We're actually targeting for OS X 10.9 (`MACOSX_DEPLOYMENT_TARGET`);
* It's slightly different from the default Rust target.

Let's address these problems in reverse order: differences from the Rust
target are bad, because the `--target` we provide to `clang` and the
Rust target find their way into LLVM bitcode files and the linker will
refuse to link together bitcode files that have incompatible targets.

Why are the two incompatible?  The current `--target` doesn't have a
"vendor" in triple-speak, whereas the Rust one has "apple" as the
vendor (`x86_64-apple-darwin`) We therefore need to change the
`--target` we pass to `clang` to have a vendor of "apple".

This need is behind the {init,toolchain}.configure changes,
but it has ramifications elsewhere, because `clang` looks for
`--target`-prefixed build tools.  So we have to change the `--target`
for cctools to get the right tool prefixes and we have to change the
`--target` for building clang ourselves so that *those* builds can find
the newly renamed cctools.

Once we've done, that's really enough; we don't *need to address the
first problem: While the `--target` might be `x86_64-apple-darwin11`,
both `clang` and `rustc` will dynamically choose the target triple that
eventually lands in LLVM bitcode files based on
`MACOSX_DEPLOYMENT_TARGET`, which we set in all builds.  But the current
target is slightly misleading, and the cctools don't need to be prefixed
with a particular Darwin version, since they work for all Darwin
targets.  Let's just drop the "11" from the `--target` and eliminate a
little bit of confusion.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 21:13:17 +00:00
Dorel Luca
0deab8288d Backed out changeset b8b69c177520 (bug 1551320) for Browser-chrome failures on CreateElement in XUL documents 2019-05-21 03:05:12 +03:00
Boris Chiou
6f268e4980 Bug 1429299 - Part 4: Make offset-distance animatable. r=hiro
Use ComputedValue to animate offset-distance.

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

--HG--
extra : moz-landing-system : lando
2019-05-20 23:42:56 +00:00