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

723790 Коммитов

Автор SHA1 Сообщение Дата
Dimi Lee 9b31461e07 Bug 1591378 - Open a new window for each sub-test in browser_referrerDefaultPolicy.js r=timhuang
Creating iframe/img/sript in the same window for each sub-test sometimes
causes the iframe/img/script fail to load.
This issue fix the intermittent failure by creating a new window for
each sub-test.

Differential Revision: https://phabricator.services.mozilla.com/D88278
2020-08-26 11:37:42 +00:00
Masayuki Nakano a33e89f8b3 Bug 1634262 - Disallow recursive `Document.execCommand()` calls r=smaug
It's disabled in the Nightly channel and early beta half a year ago, but there
are no regression reports and Chrome has already disabled it since 2014.
So, let's disable this feature on the Release channel (and late Beta) too
for better security and making simpler implementation in the future.

Differential Revision: https://phabricator.services.mozilla.com/D87992
2020-08-26 11:27:41 +00:00
Tom Tung e5e50f34c8 Bug 1647316 - Treat all usages in DOM Cache as database usages; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D86529
2020-08-18 09:29:03 +00:00
Tom Tung 9236d0a2d4 Bug 1647316 - Have a test to ensure origin initialization should succeed; r=dom-workers-and-storage-reviewers,janv,sg
Differential Revision: https://phabricator.services.mozilla.com/D80822
2020-08-26 08:47:22 +00:00
Emilio Cobos Álvarez 5b82674837 Bug 1660739 - Fix tabs.printPreview API with the new print preview design. r=mstriemer,mixedpuppy
Return a promise from PrintUtils.printPreview which resolves when the
new print preview dialog is closed.

Differential Revision: https://phabricator.services.mozilla.com/D88013
2020-08-26 03:10:47 +00:00
Sebastian Hengst 04ebe0fe0e Bug 1661193 - Set image-compositing-large-scale-change.html as also fuzzy on Android opt. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D88270
2020-08-26 10:58:41 +00:00
Sebastian Hengst 1be49d9d13 Bug 1661031 - expectation update for navigation-reporting tests on Windows ccov. r=jgraham DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D88250
2020-08-26 10:00:47 +00:00
Jonathan Kew 3c2cb7fd1a Bug 1371386 - Take account of requirements for emoji-style or text-style presentation during font selection & fallback. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87304
2020-08-26 09:31:58 +00:00
Mihai Alexandru Michis a0c890ef7c Backed out 2 changesets (bug 1659781) for causing bustages in nsPrinterListBase.h
CLOSED TREE

Backed out changeset c969b57bb356 (bug 1659781)
Backed out changeset 661dce8409db (bug 1659781)
2020-08-26 12:45:00 +03:00
Jonathan Kew a7a0d9e02f Bug 1659781 - Localized names for the Save to PDF destination's paper sizes. r=jwatt,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D88053
2020-08-26 09:22:02 +00:00
Jonathan Kew 015b0afdcc Bug 1659781 - Create a list of common standard paper sizes for Save to PDF output, and expose them via nsIPrinterList.fallbackPaperList. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D88027
2020-08-26 09:22:02 +00:00
Mihai Alexandru Michis 4a7490750d Backed out changeset 8b1447160ba4 (bug 1651542) as requested by whimboo. 2020-08-26 11:57:30 +03:00
Alexandre Poirot 6238cd4670 Bug 1660892 - Ignore window objects related to remote iframes in thread actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88074
2020-08-26 08:48:23 +00:00
Henrik Skupin 179a2de2af Bug 1660781 - Lazily load all external modules in Marionette's JSWindowActor classes. r=marionette-reviewers,maja_zf
To prevent performance degration and extra memory usage in Firefox
for newly spawned content processes, only load external modules if
required in both the parent and child actor.

Differential Revision: https://phabricator.services.mozilla.com/D88138
2020-08-26 08:42:32 +00:00
Henrik Skupin addce72fc2 Bug 1660781 - [marionette] Refactor code in error.js into a single error namespace. r=marionette-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D88137
2020-08-26 08:42:14 +00:00
Gerald Squelart 23277409cf Bug 1660177 - Fold GetTotalLength into its only caller CopyDataIntoLazilyAllocatedBuffer - r=canaltinova
Normally I believe it's good to keep functionally-distinct code in separate functions when appropriate.
However in this case, this `ChunkedJSONWriteFunc::GetTotalLength()` function was only used internally, so it's easy to hide it. It is not very big, so it's less important to keep it separate. And its code (going through all chunks to collect sizes) is similar to the code that follows (going through all chunks to collect their content), so it makes some sense to have these similar things in the same place; if one day this chunking change, both loops would probably have to be modified at the same time.

More importantly to justify this change: It was including the final null terminator, which was a bit inconsistent with the usual `Length()` functions in string containers.
Now that code is only used where absolutely necessary (before allocating an output buffer), so it rightly accounts for the null terminator that is added at the end of the contents.

And in upcoming bug 1612799, `ChunkedJSONWriteFunc` will have a new "retired" state (e.g., after an internal memory allocation failed) in which case a public `GetTotalLength()` function could give misleading results -- should it be 0 (nothing to output), 1 (only the null terminator), 5 ("null"), or the length of some error message? So I think it's better not to expose such an ambiguous function.
It could of course be re-introduced if new needs arise in the future.

Differential Revision: https://phabricator.services.mozilla.com/D87833
2020-08-26 08:03:24 +00:00
Gerald Squelart 1628f9ba8d Bug 1660177 - Replace SpliceableJSONWriter::Splice(const char*) with better calls where possible - r=canaltinova
In most calls to `SpliceableJSONWriter::Splice(const char*)`:
- The data comes from a `ChunkedJSONWriteFunc` and is copied to a new buffer, which is then copied again through `Write()`. Instead we can copy the data directly from the `ChunkedJSONWriteFunc`; and this is a nice complement to `TakeAndSplice()` below.
- Or the length is already known, so we can pass it to a new `Splice(const char*, size_t)`, which forwards it to `Write(const char*, size_t)`, saving one `strlen` call.

Differential Revision: https://phabricator.services.mozilla.com/D87703
2020-08-26 08:03:20 +00:00
Gerald Squelart af0143531b Bug 1660177 - Clarify accesses to SpliceableChunkedJSONWriter's WriteFunc - r=canaltinova
`SpliceableChunkedJSONWriter::ChunkedWriteFunc` returns a `ChunkedJSONWriteFunc*`, which is never null and is either used to:
1. Copy data.
2. Or take ownership of the chunks.

In the first case, `ChunkedWriteFunc()` now returns a `const ChunkedJSONWriteFunc&` (notice "const &"), so only const members may be used to copy the data.

In the second case, a new function `TakeChunkedWriteFunc()` returns `ChunkedJSONWriteFunc&&` (notice "&&"), so it's clear that its chunks can be taken away. Some `DEBUG` assertions help ensure that it's not used anymore after that.
`TakeAndSplice()` now takes a `ChunkedJSONWriteFunc&&`.

All callers have been updated to the more appropriate functions.

Differential Revision: https://phabricator.services.mozilla.com/D87702
2020-08-26 08:03:17 +00:00
Sylvestre Ledru da28d33f60 no bug - Fx doc: Replace the record/replay doc by rr DONTBUILD
This is a simple import from:
https://github.com/mozilla/rr/wiki/Recording-Firefox

Differential Revision: https://phabricator.services.mozilla.com/D87946
2020-08-22 15:08:37 +00:00
Simon Giesecke ed2f5ce857 Bug 1659955 - Fix leak counting in nsObserverList. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D88110
2020-08-26 07:24:36 +00:00
Simon Giesecke 23c5914062 Bug 1659955 - Replace output parameter by return value in FillObserverArray and rename accordingly. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D88109
2020-08-26 07:24:21 +00:00
Simon Giesecke 7c4dd7eeb0 Bug 1659955 - Avoid double copy of mObservers in FillObserverArray. r=gsvelto,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D88108
2020-08-26 07:24:12 +00:00
Mihai Alexandru Michis deab73e0e5 Backed out changeset 5b5e0d17dbc3 (bug 1646151) for causing failures in browser_pioneer_ui.js
CLOSED TREE
2020-08-26 10:03:12 +03:00
Masayuki Nakano 5bca4199fb Bug 1660378 - part 9: Avoid QI for getting `nsStyledElement` pointer r=smaug
The editor modules does QI too many times when it sets or removes some style
with `execCommand` or XPCOM API.  Therefore, there should be an API to
retrieve `nsStyledElement` pointer from `nsINode*`.

Differential Revision: https://phabricator.services.mozilla.com/D87990
2020-08-26 05:29:06 +00:00
Masayuki Nakano b500d7d549 Bug 1660378 - part 8: Make `HTMLEditor::IsSimpleModifiableNode()` take `Element&` instead of `nsIContent*` r=m_kato
Although it starts to return error if it causes destroying the editor, but
it should not occur because it modifies new and orphan node and it shouldn't
kick any mutation event listeners.  Therefore, this patch makes the callers
handle error as-is rather than ignoring errors except
`NS_ERROR_EDITOR_DESTROYED`.

Differential Revision: https://phabricator.services.mozilla.com/D87989
2020-08-26 04:48:36 +00:00
Masayuki Nakano bc279d2448 Bug 1660378 - part 7: Make `CSSEditUtils::SetCSSEquivalentToHTMLStyle()` take `nsStyledElement&` instead of `Element*` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87988
2020-08-26 04:48:32 +00:00
Masayuki Nakano decd85f7d6 Bug 1660378 - part 6: Make `CSSEditUtils::SetCSSProperty()` and its callers take `nsStyledElement&` instead of `Element&` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87987
2020-08-26 04:48:28 +00:00
Masayuki Nakano d03e0e65d8 Bug 1660378 - part 5: Make `CSSEditUtils::RemoveCSSInlineStyle()` take `nsStyledElement&` instead of `nsINode&` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87986
2020-08-26 04:48:25 +00:00
Masayuki Nakano 67e64be5b4 Bug 1660378 - part 4: Make `CSSEditUtils::DoElementsHaveSameStyle()` take `nsStyledElement&` instead of `Element&` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87985
2020-08-26 04:48:22 +00:00
Masayuki Nakano 2a4a68855c Bug 1660378 - part 3: Make `CSSEditUtils::RemoveCSSEquivalentToHTMLStyle()` take `nsStyledElement&` instead of `Element*` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87984
2020-08-26 04:48:19 +00:00
Masayuki Nakano 801ca86f89 Bug 1660378 - part 2: Make `CSSEditUtils::RemoveCSSPoperty()` take `nsStyledElement&` instead of `Element&` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87983
2020-08-26 04:48:16 +00:00
Masayuki Nakano 5d36739f8b Bug 1660378 - part 1: Get rid of `CSSEditUtils::GetInlineStyles()` r=m_kato
It should take `nsStyledElement&` instead of `const Element&`.  Then, it won't
fail and will just return the result of `nsStyleElement::Style()`.  Therefore,
we can get rid of it.

Note that this patch makes all its callers keep using strong pointer because
I'm not sure whether the layout APIs which are called with them are safe or
not.

Differential Revision: https://phabricator.services.mozilla.com/D87982
2020-08-26 04:48:12 +00:00
Mihai Alexandru Michis 6d6f67bc0b Backed out changeset 44d25518ea20 (bug 1660363) for causing bc failures in browser_modal_print.js
CLOSED TREE
2020-08-26 09:07:18 +03:00
James Teh 4f869a9ad6 Bug 1660365: Fix a11y dialog role placement for the Print modal. r=Gijs
Previously, the browser dialogTemplate contained role="dialog" and the Print modal body had no role.
This caused screen readers to extraneously report "dialog, Print grouping".
Dialogs presented with commonDialog.xhtml (e.g. using Services.prompt.alertBC) did have the dialog role on the body, so screen readers would report "dialog, {dialogTitle} dialog".

To fix this, remove role="dialog" from dialogTemplate.
Instead, SubDialog now sets role="dialog" on the dialog document when it loads.
Now, screen readers report just "Print dialog" and "{dialogTitle} dialog", respectively.

Differential Revision: https://phabricator.services.mozilla.com/D87977
2020-08-24 12:07:50 +00:00
James Teh f30d80c39a Bug 1660363: Don't treat elements inside print preview documents as focusable. r=emilio,mstriemer
Previously, IsFocusable returned true on elements in print preview documents, but the element wouldn't accept focus.
This meant that when you tried to tab, focus would get stuck on the document.
Now, IsFocusable returns false.
Thus, tab doesn't try to stop on these elements and can move out of the document.

Differential Revision: https://phabricator.services.mozilla.com/D88000
2020-08-26 04:59:27 +00:00
Razvan Maries b3380a4504 Backed out changeset a716e6202487 (bug 1660964) for Gecko Decision Task bustage. CLOSED TREE 2020-08-26 07:47:14 +03:00
Mike Hommey 9cdb5268e6 Bug 1660964 - Upgrade skopeo to 1.1.1 and kaniko to 1.0.0. r=aki
Differential Revision: https://phabricator.services.mozilla.com/D88116
2020-08-25 20:25:36 +00:00
Razvan Maries ff54551a34 Backed out 12 changesets (bug 1660328, bug 1660015, bug 1649595, bug 1649596, bug 1649593, bug 1659176, bug 1659839, bug 1659838, bug 1657663, bug 1657647, bug 1655460) for xpcshell perma failures. CLOSED TREE
Backed out changeset ff95badf90e3 (bug 1660328)
Backed out changeset a92f8525ab6f (bug 1659176)
Backed out changeset 8ca05470a0d5 (bug 1659839)
Backed out changeset 5de389b735d3 (bug 1649596)
Backed out changeset 73bdddd96664 (bug 1649595)
Backed out changeset 59800d609b55 (bug 1659838)
Backed out changeset 8aca41723313 (bug 1649593)
Backed out changeset dc0d90b3e135 (bug 1657647)
Backed out changeset e3dd5b6b4fbd (bug 1657663)
Backed out changeset f9c823fa14ba (bug 1657663)
Backed out changeset a5aecc7a6469 (bug 1655460)
Backed out changeset 21b64ef30e12 (bug 1660015)
2020-08-26 06:35:20 +03:00
Nicholas Nethercote 810f608c1a Bug 1660946 - Remove telemetry for prefs loading. r=KrisWright
Differential Revision: https://phabricator.services.mozilla.com/D88105
2020-08-25 18:13:55 +00:00
Keefer Rourke 1d0cf6135d Bug 1660328: Implement IOUtils::getChildren method r=barret,Gijs
This change introduces a `getChildren` method to the IOUtils interface, which
returns an array of absolute paths pointing to the immediate children of a
directory.

This method should provide equivalent (though not the same) functionality to
iterating directory entries using a new `OS.File.DirectoryIterator`.

Differential Revision: https://phabricator.services.mozilla.com/D87875
2020-08-25 17:54:56 +00:00
Keefer Rourke 6cd6afcf45 Bug 1659176: Document return values for IOUtils r=barret,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D87873
2020-08-24 15:47:37 +00:00
Keefer Rourke e4abec2ea6 Bug 1659839: Assert XRE_IsParentProcess in IOUtils methods r=barret,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D87872
2020-08-24 18:28:04 +00:00
Keefer Rourke 766145a111 Bug 1649596: Use IOUtils instead of OS.File in CrashService.jsm r=barret,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87495
2020-08-24 15:47:25 +00:00
Keefer Rourke d6ac0ac16a Bug 1649595: Use IOUtils instead of OS.File in CrashMonitor.jsm r=barret
Differential Revision: https://phabricator.services.mozilla.com/D87488
2020-08-24 15:42:31 +00:00
Keefer Rourke b1744ebbe9 Bug 1659838: Change IOUtils shutdown blocker phase from XPCOMWillShutdown to ProfileBeforeChange r=Gijs
IOUtils is meant to act as a drop-in replacement for OS.File. Previously,
IOUtils would block shutdown at the XPCOMWillShutDown phase to allow pending
I/O tasks to finish, however, OS.File blocks for the same reason during the
ProfileBeforeChange phase.

To make IOUtils directly compatible with OS.File, we now match this behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D87511
2020-08-24 18:28:25 +00:00
Keefer Rourke 07edf2a38a Bug 1649593: Use IOUtils instead of OS.File in ExtensionParent.jsm r=barret,zombie
Differential Revision: https://phabricator.services.mozilla.com/D87483
2020-08-24 16:28:23 +00:00
Keefer Rourke 4a65302d85 Bug 1657647: Implement IOUtils methods to read and write UTF-8 text r=barret,froydnj
This change introduces two new methods to the IOUtils interface:

1. `readUTF8` will read an entire file as an UTF-8 encoded text
2. `writeAtomicUTF8` will encode a provided DOMString to UTF-8 and write it
   to file

Differential Revision: https://phabricator.services.mozilla.com/D87020
2020-08-24 16:28:30 +00:00
Keefer Rourke 43eea80eef Bug 1657663: Update OS.File.setDates precision and fix failing extension tests r=barret,mixedpuppy
This changes fixes some failing extension tests on unixes. These failures were
caused by a mismatch in time precision used by nsIFile and OS.File's
implementations.

The fixes are as follows:

 1. Use IOUtils (the C++ port of OS.File) methods where possible.
 2. Update the OS.File.setDates implementation to use a higher time precision
    when setDates is called. Eventually, all calls to OS.File.setDates will
    be replaced by IOUtils.touch.

Differential Revision: https://phabricator.services.mozilla.com/D86831
2020-08-24 15:41:25 +00:00
Keefer Rourke c438dddf23 Bug 1657663: Improve timestamp precision for nsLocalFileUnix r=froydnj,barret
This change updates the unix implementation of nsLocalFile
Set/GetLastModifiedTime methods to improve the precision of file modification
times from a 1 second resolution to a 1 millisecond resolution.

Differential Revision: https://phabricator.services.mozilla.com/D86238
2020-08-24 15:41:07 +00:00
Keefer Rourke 71d39442cf Bug 1655460: Implement IOUtils::touch method r=barret,Gijs
This patch introduces a touch method to the IOUtils method, which allows
callers to update the modification time for a file on disk.

Differential Revision: https://phabricator.services.mozilla.com/D86832
2020-08-24 16:13:04 +00:00