Commit Graph

611307 Commits

Author SHA1 Message Date
Andrew Halberstadt
244690e1b9 Bug 1485454 - [mozlint] Fix stylish formatter, issues without a column aren't indented enough, r=sylvestre
After fixing the absolute path issue in codespell, I noticed that the stylish
formatter doesn't indent lint issues that don't have a column properly. This
was never noticed before since most other linters have a column attribute.

Depends on D4012

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

--HG--
extra : moz-landing-system : lando
2018-08-27 13:40:34 +00:00
Razvan Caliman
d92c87d257 Bug 1486891 - (Part 2) Remove old font preview functionality from font editor. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D4475

--HG--
extra : moz-landing-system : lando
2018-08-29 10:37:59 +00:00
Peter Moore
1457b03c54 Bug 1486532 - Don't generate optional payload properties in generic-worker payloads r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D4358

--HG--
extra : moz-landing-system : lando
2018-08-28 08:59:11 +00:00
Razvan Caliman
67fcb745fd Bug 1486891 - (Part 1) Add dedicated input for font preview in font editor. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D4474

--HG--
extra : moz-landing-system : lando
2018-08-29 10:09:28 +00:00
Andrew Halberstadt
7a77f7f879 Bug 1485454 - [lint] Use absolute paths with the codespell linter, r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D4012

--HG--
extra : moz-landing-system : lando
2018-08-29 13:36:46 +00:00
Alexandre Poirot
0a7bb76603 Bug 1482990 - Use different message names for inbound/outbound message between console and netmonitor actors. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D4521

--HG--
extra : moz-landing-system : lando
2018-08-29 12:38:24 +00:00
Arshad Kazmi
43fb2c87eb Bug 1396684 - Allow extensions to access tab's "attention" flag r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D3984

--HG--
extra : moz-landing-system : lando
2018-08-28 14:41:31 +00:00
David Keeler
f42b207622 Bug 1479918 - Batch requests in getHSTSPreloadList.js to avoid livelock. r=sfraser
Prior to this patch, getHSTSPreloadList.js would queue an XHR for every preload
list candidate site. This meant that there would be ~50,000 requests in flight
simultaneously. Simply processing these requests caused them to all time out,
and no useful work was done. This patch resolves them in batches of 250 to
avoid this issue.

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

--HG--
extra : source : e0f0d5824dd8aaaaf1395e569cec1806b028b12e
extra : amend_source : 62f1cd6fc49cbae39c7691c5712906f775862887
2018-08-29 12:04:16 +00:00
Andreea Pavel
d478281b2b Backed out changeset e0f0d5824dd8 (bug 1479918) for eslint failure on a CLOSED TREE 2018-08-29 16:12:24 +03:00
David Keeler
334fcdbe81 bug 1479918 - batch requests in getHSTSPreloadList.js to avoid livelock r=sfraser
Prior to this patch, getHSTSPreloadList.js would queue an XHR for every preload
list candidate site. This meant that there would be ~50,000 requests in flight
simultaneously. Simply processing these requests caused them to all time out,
and no useful work was done. This patch resolves them in batches of 250 to
avoid this issue.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 12:04:16 +00:00
Emilio Cobos Álvarez
5e221bd7d8 Bug 1487027 - Don't care about the placeholder overflow events. r=dao
Filed bug 1487036 for a fix that would avoid triggering events for the
placeholder when it's not showing, though realistically I'm not going to have
cycles to fix it.

Probably moving the <input> to Shadow DOM would allow such a solution, but it's
not clear we want to do that just yet at least.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 12:35:52 +00:00
Nicolas Chevobbe
6f0d1ac596 Bug 1484979 - Fix old-jsterm UI glitches; r=bgrins.
The completion node was wrongly positioned as soon as the input overflowed.
We fix this by setting the completionNode height in resizeInput,
like we do for the inputNode.

The inputNode takes the whole remaining vertical space
when starting the console. But when typing, the height
is computed and set according to what's in the input.
Which means the input wasn't taking the remaining space
anymore, which could be weird (e.g. if the user wants
to select some text by starting dragging below the actual
input, although the UI would indicate it is possible).

The autocompletionPopup was a bit off due to 2 things:
- in the function that was returning the chevronWidth, we
were subtracting the autocomplete popup padding. But the
autocomplete popup already handles that itself.
- in the function that was computing the character width,
we were using offsetWidth which returned a rounded value.
This means that the further the autocompletion was displayed
at, the more the popup would be off. We use getBoundingClientRect().width
instead which gives us a decimal value.

And we also make sure to not alter the scrolling position in the inputNode
when accepting an autocompletion result (a test is added).

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

--HG--
extra : moz-landing-system : lando
2018-08-29 05:41:52 +00:00
Julian Descottes
18e537a5ef Bug 1486798 - Do not connect/disconnect when selecting the same page again;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D4455

--HG--
extra : moz-landing-system : lando
2018-08-29 12:27:34 +00:00
Nicolas Chevobbe
3885af5165 Bug 1486611 - Fix SearchBox styling; r=ntim.
In Bug 1478435 a selector was removed causing the background
of the SearchBox autocomplete to be transparent and without
box-shadow.
This patch add the needed rule in the CSS. We take this as an
opportunity to fix a small positioning issue by making sure
the element stick to the left.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 11:13:04 +00:00
Rob Wu
88ec13510d Bug 1465388 - Resume about:blank parser upon unblocking the document r=hsivonen
When `document.blockParsing()` is called, the nsIParser is suspended
until the document is unblocked. For about:blank documents, this is a
nsParser.

When a document is unblocked, nsParser::ContinueInterruptedParsingAsync
is invoked, which delegates its implementation to nsIContentSink, which
is a nsHTMLContentSink for about:blank documents. Due to a missing
implementation of nsHTMLContentSink::ContinueInterruptedParsingAsync,
the parser was never resumed, causing bug 1465388 and bug 1407501.

This patch fixes the problem, by implementing the required method (and
using a load blocker to ensure that the (about:blank) document does not
finish before the parser finishes).

This patch is tested through extension tests: Currently document_start
stylesheets always activate the parser blocker, and document_start
scripts trigger the parser blocker when the script has not been
preloaded yet (e.g. at the first run).
Before this patch, the test failed due to the assertion failure as
reported in the linked bugs. After this patch, the tests pass.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 11:52:49 +00:00
Andreea Pavel
c68b2fe678 Backed out changeset 2f46b98d41d9 (bug 1486798) for eslint failure at builds/worker/checkouts/gecko/devtools/client/aboutdebugging-new/src/reducers/ui-state.js on a CLOSED TREE 2018-08-29 14:59:34 +03:00
Arshad Kazmi
72a32c6aa4 Bug 1486313 makeURI replaced with Services.io.newURI r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D4389

--HG--
extra : moz-landing-system : lando
2018-08-29 07:55:08 +00:00
Julian Descottes
658e327202 Bug 1486798 - Do not connect/disconnect when selecting the same page again;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D4455

--HG--
extra : moz-landing-system : lando
2018-08-28 15:37:38 +00:00
Andi-Bogdan Postelnicu
64682f8e84 Bug 1486729 - [Static-Analysis][Clang-Tidy] As default, a checker should be publish by default. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D4436

--HG--
extra : moz-landing-system : lando
2018-08-29 10:10:54 +00:00
Benjamin Bouvier
3323938896 Bug 1486829: Make a proper enum class out of jit::FrameType; r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D4462

--HG--
extra : moz-landing-system : lando
2018-08-29 10:07:10 +00:00
Emilio Cobos Álvarez
899e1ccf63 Bug 1485668 - followup: Update manifest. r=me 2018-08-29 12:00:17 +02:00
Emilio Cobos Álvarez
88aaf93f4e Bug 1486957 - Don't use the textoverflow attribute decide whether to set the tooltip text. r=dao
That attribute is set async, _inOverflow should work equally well, and work if
there's a mousemove before the next promiseDocumentFlush callback runs.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 09:22:27 +00:00
Margareta Eliza Balazs
b45b01e82c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-29 12:47:56 +03:00
Margareta Eliza Balazs
2fe43133db Merge inbound to mozilla-central. a=merge 2018-08-29 12:43:37 +03:00
Margareta Eliza Balazs
7bc4b7b684 Merge autoland to mozilla-central. a=merge 2018-08-29 12:42:34 +03:00
Johan Lorenzo
f810fe40ea Bug 1483521 - PushAPK shouldn't depend on single-locale android r=Callek
PushAPK shouldn't depend on single-locale android

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

--HG--
extra : moz-landing-system : lando
2018-08-29 09:37:56 +00:00
Andreea Pavel
65e947cc68 Backed out changeset 126368a5c3ec (bug 1465388) for causing topcrash bug 1487004 a=backout 2018-08-29 11:39:19 +03:00
Tom Ritter
7e0fefeaa0 Bug 1475566 Disable #pragma comments for MinGW Builds r=glandium
In the MinGW browser build job, we're going to use -fms-extensions,
which will tell clang to start processing these comments. Clang
cannot process them correctly (it's an upstream bug) but it doesn't
need to, because we include the libs we need in moz.build files.

So we exclude them for MinGW builds. mingw-clang gets them wrong and
mingw-gcc (which doesn't even work anymore on -central) ignored them.

In the future, with a llvm fix, we could clean up the moz.build
files and re-enable these comments.

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

--HG--
extra : moz-landing-system : lando
2018-08-29 03:50:39 +00:00
Andreea Pavel
eb68a1e6db Backed out changeset 097c92352197 (bug 1484987) for failing gtests at Base64.TruncateOnInvalidDecodeCString on a CLOSED TREE 2018-08-29 10:15:50 +03:00
Henri Sivonen
a459f8cbf4 Bug 1484987 - Avoid writing past the logical length of a string in XPCOM. r=froydnj
MozReview-Commit-ID: 3qkhOiQduLQ

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

--HG--
extra : moz-landing-system : lando
2018-08-29 06:04:57 +00:00
Ciure Andrei
d716a04e20 Merge inbound to mozilla-central. a=merge 2018-08-29 00:58:21 +03:00
Dorel Luca
c70ff33958 Backed out 2 changesets (bug 1476921) for build bustage. CLOSED TREE
Backed out changeset 25af0b19ec39 (bug 1476921)
Backed out changeset 873cd2e119b3 (bug 1476921)
2018-08-28 22:33:24 +03:00
Henri Sivonen
c3d01b0fe9 Bug 1484045 - Prohibit shrinking of the string's buffer in appends of Latin1 to UTF-16 and vice versa. r=froydnj
This restores the old allocation semantics for "append" operations between
Latin1 and UTF-16 while keeping the buffer re-use optimization for the
"assign" cases.

MozReview-Commit-ID: 8JCw3AaCNLN

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

--HG--
extra : moz-landing-system : lando
2018-08-28 14:13:17 +00:00
Henri Sivonen
569510fbdc Bug 1485289 - Use BeginWriting() instead of GetMutableData() in LateWriteChecks. r=froydnj
MozReview-Commit-ID: G64L8b6wnO0

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

--HG--
extra : moz-landing-system : lando
2018-08-28 14:50:11 +00:00
Henri Sivonen
acc4596637 Bug 1486470 - Avoid overwriting newData when there's an OOM failure on buffer shrinking attempt. r=froydnj
MozReview-Commit-ID: F54grcUOwBG

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

--HG--
extra : moz-landing-system : lando
2018-08-28 14:49:20 +00:00
Joel Maher
924aa36a1b Bug 1486788 - make sunspider lower_is_better and indicate it is a 'ms' benchmark. r=ahal
Adjust sunspider raptor test to make lower_is_better=true and treat it as 'ms' and not a 'score'

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

--HG--
extra : moz-landing-system : lando
2018-08-28 16:30:58 +00:00
Brian Grinstead
faa5c193d5 Bug 1486834 - Remove browserConsoleUsesHTML and browserConsoleURL from webconsole definition;r=nchevobbe
These were used when we were working on the HTML version of the frontend, but now
we don't even ship the XUL version, and these properties got missed during removal.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 16:21:57 +00:00
Henri Sivonen
876f7ad09f Bug 1482828 - Introduce C++ analogs of Rust's nsA[C]StringBulkWriteHandle. r=froydnj
MozReview-Commit-ID: BZyHd4VzNur

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

--HG--
extra : moz-landing-system : lando
2018-08-28 16:42:26 +00:00
Julian Descottes
fe4aadb7c5 Bug 1482868 - Show no devices... message when devices list empty;r=daisuke,ladybenko
Depends on D3227

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

--HG--
extra : moz-landing-system : lando
2018-08-28 14:00:39 +00:00
Julian Descottes
8718800de4 Bug 1482868 - Prevent empty values only when submitting network location;r=daisuke
Depends on D3222

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

--HG--
extra : moz-landing-system : lando
2018-08-28 13:42:43 +00:00
Andrew Halberstadt
bbd3ba0a18 Bug 1460856 - [mozlint] Encapsulate all result state in a ResultSummary class r=sylvestre
Currently there are 3 things that can impact the result of a lint run:

1. The list of lint issues found
2. The set of failures that happened during the setup phase
3. The set of failures that happened during the execution phase

All three of these things are stored as instance variables on the LintRoller
object, and then passed into a formatter when it comes time to print the
results. I'd like to add even more things that can impact the result, and it
became clear that the current scenario does not scale well.

This patch moves all data that could impact the end result of a lint run off of
the LintRoller object and onto a new 'result.ResultSummary' class. To avoid
confusion, this patch also renames the 'result.ResultContainer' class to
'result.Issue'.

With this new nomenclature:

result  -> overall state of an entire lint run (can comprise multiple linters)
issue   -> one specific lint infraction (at either 'warning' or 'error' level)
failure -> a non-recoverable error in the linter implementation itself

A "result" is comprised of 0 or more "issues" and 0 or more "failures".

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

--HG--
extra : moz-landing-system : lando
2018-08-28 13:51:04 +00:00
Francesco Lodolo (:flod)
cb706ec643 Bug 1486211 - Remove unused key browser.search.defaultenginename from region.properties r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D4419

--HG--
extra : moz-landing-system : lando
2018-08-28 13:14:27 +00:00
Julian Descottes
8ffc58288b Bug 1482868 - Show network locations as non selectable sidebar items;r=daisuke,ladybenko
Depends on D3226

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

--HG--
extra : moz-landing-system : lando
2018-08-28 13:43:37 +00:00
Andreea Pavel
a7c7a16e37 Backed out changeset 9216e8942ed6 (bug 1484987) for build bustages at builds/worker/workspace/build/src/xpcom/io/nsStorageStream.cpp on a CLOSED TREE 2018-08-29 08:36:19 +03:00
Henri Sivonen
5969209bdc Bug 1484987 - Avoid writing past the logical length of a string in XPCOM. r=froydnj
MozReview-Commit-ID: 3qkhOiQduLQ

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

--HG--
extra : moz-landing-system : lando
2018-08-28 14:29:40 +00:00
James Graham
8dbce11d8b Bug 1485668 - Fix reftest chain comparisons in marionette reftest implementation, r=ato
We were previously using the original test url as the lhs for each
comparison after the top level, rather than the previous rhs url as
expected.

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

--HG--
extra : moz-landing-system : lando
2018-08-28 12:29:02 +00:00
Andreea Pavel
f5d1a4b1c3 Backed out changeset 510decfb443d (bug 1484990) for breaking many test suites e.g. Wr on a CLOSED TREE 2018-08-29 12:16:24 +03:00
Razvan Caliman
cf0b883e11 Bug 1486409 - Guard against a font property value of zero. Catch NaN and Infinity in unit conversion. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D4326

--HG--
extra : moz-landing-system : lando
2018-08-29 09:04:45 +00:00
Henri Sivonen
f725924171 Bug 1485943 - Avoid writing past the logical length of a string in AlternateServices.cpp. r=dragana
MozReview-Commit-ID: 4xPYaAbGaEI

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

--HG--
extra : moz-landing-system : lando
2018-08-29 08:39:42 +00:00
Johan Lorenzo
04619e947c Bug 1484932 - Update GeckoView maven group id: org.mozilla.geckoview r=sebastian,jchen
Update GeckoView maven group id: org.mozilla.geckoview

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

--HG--
extra : moz-landing-system : lando
2018-08-28 13:04:09 +00:00