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

619625 Коммитов

Автор SHA1 Сообщение Дата
Karl Tomlinson aa77ee3384 Bug 1499212 - document reasons for restrictions on EqualsLiteral parameter r=dbaron
"Bound" is the term used in the C++ standard to describe the number of
elements in an array.

EqualsLiteral has no opportunity to optimize for constant and static storage
duration parameters.

Depends on D8773

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

--HG--
extra : moz-landing-system : lando
2018-10-19 00:57:49 +00:00
Karl Tomlinson a53090cdff Bug 1499212 - suggest non-ASCII Assign for non-static-const same-char_type array parameters r=dbaron
There is no advantage in AssignASCII() for char, and AssignASCII() does not
exist for char16_t array and char_type.  Similarly for ReplaceASCII and
AppendASCII.  This AssignLiteral() overload already says it is not only for
ASCII.

Depends on D8771

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

--HG--
extra : moz-landing-system : lando
2018-10-18 21:53:33 +00:00
Karl Tomlinson 70af2a5543 Bug 1499212 Document static storage requirement for same-char_type AssignLiteral overload r=dbaron
Depends on D8770

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

--HG--
extra : moz-landing-system : lando
2018-10-16 21:09:27 +00:00
Karl Tomlinson 99c72e1028 Bug 1499212 remove mention of character pointers in docs for Literal methods r=dbaron
Since https://hg.mozilla.org/mozilla-central/rev/9db7cf4cc385#l13.44 the type
system always excludes calls with character pointers and so there is no need
to mention this in the comment.

The comment for the 8-bit to 16-bit AssignLiteral overload is modified a
little to use "char" instead of "character" so as not to imply that anything
other than 8-bit char parameters may be provided to that overload.

The ReplaceLiteral and InsertLiteral comments are adjusted to use "character"
instead of "char" so as not to imply that the method or comment is limited to
8-bit char parameters.

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

--HG--
extra : moz-landing-system : lando
2018-10-16 21:07:20 +00:00
Matthew Noorenberghe 783e80be91 Bug 1435871 - Open prefs from Payment Request in a tab. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D8497

--HG--
extra : moz-landing-system : lando
2018-10-19 05:06:30 +00:00
Matthew Noorenberghe 28552cda7d Bug 1435871 - Implement a basic tab-modal dialog container for Payment Request. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D7934

--HG--
extra : moz-landing-system : lando
2018-10-19 05:06:22 +00:00
Matthew Noorenberghe 7957bc3803 Bug 1435871 - Back out changeset 3f6664786e85 (Bug 1470584) since it's for a windowed dialog. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D8272

--HG--
extra : moz-landing-system : lando
2018-10-19 05:06:20 +00:00
Daniel Holbert 8d0f407881 Bug 1498281: Make flexbox devtools API report actual flex base size (not its min/max-clamped version). r=bradwerth
This patch also updates the expectations in the mochitest test_flex_items.html.
Before this commit, the test (incorrectly) expected the mainBaseSize API to
return some items' *final sizes*, because that's what our implementation did
return, up until now. As of this patch, that API will now return the item's
actual flex base size, which means the text expectations need to change.

I'm also adding a new flex item to the test, to exercise a formerly-untested
scenario.  And to accommodate this new item, I'm also doubling the width of
the flex container to be sure there's plenty of space.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 23:45:51 +00:00
Cosmin Sabou 11fa187a60 Merge mozilla-central to autoland. a=merge 2018-10-19 07:20:02 +03:00
Cosmin Sabou 9cb3e24150 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-19 07:17:09 +03:00
Cosmin Sabou f55726a8e5 Merge autoland to mozilla-central. a=merge 2018-10-19 07:15:45 +03:00
Brendan Dahl 934e37ef92 Bug 1486888 - Support XUL broadcasters in non-XUL documents. r=smaug
The majority of the XUL broadcaster logic is moved out of XULDocument and
into a separate class (XULBroadcastManager). The hookup points for when
listeners need to be created and listeners need to be notified is now
handled by the XULElement itself and nsDocument. To avoid any overhead,
the XULBroadcastManager is only ever created when a document uses a
listener.

The new approach does have the disadvantage that broadcasting can now only
work with XULElements, but going forward we'd like to discontinue this
feature and rely on MutationObservers to implement similar things.

One test had to be modified to use XUL elements instead of HTML elements
because of the reason noted above.

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

--HG--
extra : moz-landing-system : lando
2018-10-19 01:22:46 +00:00
Ryan VanderMeulen 5828c7a6e8 Merge m-c to autoland. a=merge 2018-10-18 20:51:44 -04:00
Cosmin Sabou b1f89e4134 Backed out changeset 7a7d5508f873 (bug 1494537) as requested by tcampbell on irc for causing crashes in bug 1500285, 1500255. a=backout 2018-10-19 03:40:59 +03:00
arthur.iakab 9f8f1698db Backed out 2 changesets (bug 1499209)for failing Android geckoview on AccessibilityTest.testCheckbox
Backed out changeset 12527d50a493 (bug 1499209)
Backed out changeset 4b8f36f9896b (bug 1499209)
2018-10-19 03:27:20 +03:00
Nick Thomas e247dc23b1 Bug 1500274 - increase timeouts for Windows nightly builds, r=RyanVM (irc), a=RyanVM
--HG--
extra : amend_source : 09decc17a1613de7f032187547437c600581526a
2018-10-19 13:22:07 +13:00
arthur.iakab d01d9399cc Backed out changeset b969cbe46b14 (bug 1492656)for Android xpcshell failures on unit/test_CoveragePing.js CLOSED TREE 2018-10-19 03:12:23 +03:00
arthur.iakab 3d3730188f Backed out changeset 89663382dd1e (bug 1499209),for Android build bustages on AccessibleWrap.cpp:416 2018-10-19 01:27:24 +03:00
arthur.iakab 83433f41f3 Backed out changeset 7d3a598c1285 (bug 1499209),for Android build bustages on AccessibleWrap.cpp:416 2018-10-19 01:26:11 +03:00
Kyle Machulis 0bb3246aa5 Bug 1492648 - Move from nsDocShellLoadInfo to nsDocShellLoadState r=bzbarsky,nika
Creates the nsDocShellLoadState object, which is basically
nsDocShellLoadInfo plus a few extra fields to make it usable as a
single argument to nsDocShell::LoadURI (and eventually
nsDocShell::InternalLoad).

Subframe history handling is a huge logic block in
nsDocShell::LoadURI, which is only used on history loads. This patch
also extracts the logic out into its own function to make the body of
LoadURI clearer.

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

--HG--
rename : docshell/base/nsDocShellLoadInfo.cpp => docshell/base/nsDocShellLoadState.cpp
rename : docshell/base/nsDocShellLoadInfo.h => docshell/base/nsDocShellLoadState.h
extra : moz-landing-system : lando
2018-10-18 22:14:54 +00:00
Chris Pearce 00b47a070d Bug 1500251 - Add dummy pref with default value true, report via telemetry. r=mythmon
The Webrender Pref Experiment is reporting its pref via telemetry and that is
reporting a different value than what the Normandy experiments telemetry
indicates should be being seen.

In Bug 1499552 I added a pref and telemetry reporting in preparation for running
a dummy Pref Experiment to verify that prefs set are reported as set, but I
realised I missed a case; where there's an existing default pref set,
we're only covering the case where that default pref has value false. We're seeing
a ~25% failure rate in the pref reporting. So we should cover the other three cases
in the dummy Pref Experiment, just in case it's one of these four cases that
is failing.

So here I add another dummy pref with a default value of true, and I report that
via telemetry. I rename the pref I added yesterday to make things consistent.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 22:02:52 +00:00
Lee Salzman 1e136a0603 Bug 1495919 - ensure IDWriteFontFileStream stays alive with NativeFontResourceDWrite. r=jrmuizel 2018-10-18 18:00:23 -04:00
Cosmin Sabou a833a61a1b Merge mozilla-central to mozilla-inbound. a=merge 2018-10-19 00:59:32 +03:00
Cosmin Sabou 5115d61980 Merge mozilla-inbound to mozilla-central. a=merge 2018-10-19 00:54:29 +03:00
Mark Striemer 1dc02bd39d Bug 1499944 - Don't show detail view when changing plugin state r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D9061

--HG--
extra : moz-landing-system : lando
2018-10-18 18:43:03 +00:00
Mark Striemer 90421228f4 Bug 1499504 - Always include search icon in search boxes on Mac r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9021

--HG--
extra : moz-landing-system : lando
2018-10-18 18:56:11 +00:00
Henrik Skupin f75e4b1e72 Bug 1494229 - [marionette] Advertise Phabricator for submitting patches in the docs. r=ato
DONTBUILD

Depends on D8981

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

--HG--
extra : moz-landing-system : lando
2018-10-18 19:06:53 +00:00
Henrik Skupin 50aaf57a2b Bug 1494229 - [marionette] Improve documentation for new contributors. r=ato
DONTBUILD

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

--HG--
extra : moz-landing-system : lando
2018-10-18 19:06:25 +00:00
Andreas Tolfsen e9047f00f5 bug 1499057: webdriver: remove known web element cache; r=whimboo
The known web element cache in the WebDriver test client, or
webdriver.Session._element_cache, is used only to avoid constructing
new webdriver.Element instances of the same web element and serves
no practical purpose beyond that

Since this client is intended for testing purposes, we would like
to be able to construct duplicate webdriver.Element instances,
so that e.g. fake elements can be constructed and send to the remote end.

Depends on D9127

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

--HG--
extra : moz-landing-system : lando
2018-10-18 15:34:06 +00:00
Andreas Tolfsen 05540feaf4 bug 1499057: webdriver: fix element comparison assertions; r=whimboo
The Python "is" operator tests object identity, but the tests should
rely on the webdriver.Element equality implementation, __eq__.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 18:33:09 +00:00
Henrik Skupin 487c30e181 Bug 1493796 - [mozprocess] Revert poll() behavior on Windows due to regression. r=gbrown
Originally landed as changeset 8793e332890e via bug 1433905 the
patch caused a regression because GetExitCodeProcess() returns
0 for an inside of Firefox restarted process.

It can be relanded once the process id of the job object can
successfully be tracked.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 15:32:28 +00:00
James Willcox 2133b1b95d Bug 1496745 - Allow GeckoResult to be used without a Looper r=agi,jchen
GeckoResult can now be created on a thread with no Looper present.
You can use `then` as before after creating a derived GeckoResult
with a Handler via `withHandler`, or poll for the value via
the new `poll` method.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 18:01:18 +00:00
Jonathan Kingston 580c9a51e4 Bug 1483458 - Change HTML parser to look at .py Atom files. r=hsivonen,heycam
--HG--
extra : amend_source : 9285251fc49d4f56b67557ef77e163d6acbc2b1e
2018-10-17 20:40:37 +01:00
Florian Quèze 36fea05e0e Bug 1241024 - follow-up to fix eslint failure, rs=bustage-fix. 2018-10-18 18:53:54 +02:00
Ciure Andrei bae4d8bacf Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-10-18 19:40:31 +03:00
Ciure Andrei dec678a34d Merge inbound to mozilla-central. a=merge 2018-10-18 19:37:23 +03:00
Florian Quèze 9e9fb05eb0 Bug 1241024 - Make about:performance localizable, r=gandalf,flod. 2018-10-18 18:35:44 +02:00
Emilio Cobos Álvarez 36e49f6198 Bug 1500097 - Enable @supports selector() in those tests. 2018-10-18 16:04:14 +02:00
Neil Deakin 51f69a2c2a Bug 1494000, use Element::GetFrame in XULMenuElement and XULPopupElement, r=bz 2018-10-18 08:40:10 -04:00
Andrea Marchesini 4ebf5b4364 Bug 1496581 - Split nsISeekableStream in 2 classes: nsISeekableStream and nsITellableStream, f=mayhemer, r=froydnj
In the current code there are 3 main issues:

1. nsFileStream is not really thread-safe. There is nothing to protect the
internal members and we see crashes.

2. nsPipeInputStream doesn't implement ::Seek() method and that caused issues
in devtools when a nsHttpChannel sends POST data using a pipe. In order to fix
this, bug 1494176 added a check in nsHttpChannel: if the stream doesn't
implement ::Seek(), let's clone it. This was an hack around nsPipeInputStream,
and it's bad.

3. When nsHttpChannel sends POST data using a file stream, nsFileStream does
I/O on main-thread because of the issue 2. Plus, ::Seek() is called on the
main-thread causing issue 1.

Note that nsPipeInputStream implements only ::Tell(), of the nsISeekableStream
methods. It doesn't implement ::Seek() and it doesn't implement ::SetEOF().

With this patch I want to fix point 2 and point 3 (and consequentially issue 1
- but we need a separate fix for it - follow up). The patch does:

1. it splits nsISeekableStream in 2 interfaces: nsITellableStream and
nsISeekableStream.
2. nsPipeInputStream implements only nsITellableStream.  Doing this, we don't
need the ::Seek() check for point 2 in nsHttpChannel: a simple QI check is
enough.
3. Because we don't call ::Seek() in nsHttpChannel, nsFileStream doesn't do I/O
on the main-thread, and we don't crash doing so.
2018-10-18 13:35:35 +02:00
Nathan Froyd f3eed4c3a6 Bug 1499850 - make MediaTimer slightly more efficient; r=pehrsons
Instead of creating a timer and then setting the timer's target, we can
determine the timer's target and pass it in directly when the timer is
created.  This reordering of steps is slightly more efficient, since
SetTarget() is both a virtual call and requires locking, both of which
can be skipped if we know the target at timer creation time.
2018-10-18 07:00:11 -04:00
Margareta Eliza Balazs 201d77abf9 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-18 13:27:07 +03:00
Margareta Eliza Balazs c56977420d Merge inbound to mozilla-central. a=merge 2018-10-18 13:20:43 +03:00
Margareta Eliza Balazs f4ce95166f Merge autoland to mozilla-central. a=merge 2018-10-18 13:19:19 +03:00
Nicolas Chevobbe 84670f5242 Bug 1499614 - Enable top-level await support on every release channel; r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D8955

--HG--
extra : moz-landing-system : lando
2018-10-18 10:10:37 +00:00
Nicolas Chevobbe ee4dfd3370 Bug 1499070 - Fix timestamp for evaluation result; r=Honza.
When sending a command to the server, a timestamp is
computed before evaluating the string, and is then
sent back to the client in the packet.
However, if top-level await, or somme :commands, the
evaluation takes more time, which means the timestamp
is now innacurate.
For those cases, we update the timestamp before sending
the packet to the client.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 09:41:53 +00:00
Margareta Eliza Balazs 53fc8ddacd Backed out 4 changesets (bug 1486954) for hangs on Linux. a=backout
Backed out changeset c895888bdddc (bug 1486954)
Backed out changeset 27e9286503e8 (bug 1486954)
Backed out changeset 87e64652386d (bug 1486954)
Backed out changeset 96a6e1ceb697 (bug 1486954)

--HG--
rename : browser/extensions/formautofill/OSKeyStore.jsm => browser/extensions/formautofill/MasterPassword.jsm
rename : browser/extensions/formautofill/test/browser/browser_creditCard_fill_cancel_login.js => browser/extensions/formautofill/test/browser/browser_creditCard_fill_master_password.js
2018-10-18 12:40:21 +03:00
Jon Coppeard 034bf3c449 Bug 1498980 - Remove module environment from live debugger envionments after execution r=jorendorff 2018-10-18 10:33:33 +01:00
Andrea Marchesini d4e4884960 Bug 1499788 - midi feature policy should have 'self' as default allowlist, r=qdot 2018-10-18 11:08:37 +02:00
Andrea Marchesini 39b3c89ada Bug 1499768 - camera, microphone and speaker feature policies should have 'self' as default allowlist, r=jib 2018-10-18 11:08:37 +02:00