Commit Graph

616100 Commits

Author SHA1 Message Date
Bogdan Tara
273a59bcda Backed out changeset e7624782898d (bug 1487428) for test_inspector-insert.html failures CLOSED TREE 2018-09-27 23:38:04 +03:00
Jason Laster
b0a0465f39 Bug 1491471 - Move the OI store to the console. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D5911

--HG--
rename : devtools/client/shared/components/reps/reps.js => devtools/client/shared/components/reps/reps-old.js
extra : moz-landing-system : lando
2018-09-27 20:09:51 +00:00
Emilio Cobos Álvarez
d8c0080a10 Bug 1493222 - Expose InspectorUtils to fuzzers. r=bzbarsky
I can be more granular if we want, by adding more ChromeOnly annotations for the
functions that we don't want to expose.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 19:00:33 +00:00
Iain Ireland
4de01379de Bug 1492574: Remove unnecessary MutableHandle r=tcampbell
Depends on D7123

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

--HG--
extra : moz-landing-system : lando
2018-09-27 19:13:48 +00:00
Iain Ireland
0e0311a584 Bug 1492574: Rewrite GetDynamicName to return false if lookup can't be completed r=tcampbell
Depends on D7122

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

--HG--
extra : moz-landing-system : lando
2018-09-27 19:17:06 +00:00
Iain Ireland
e1f5fb98a5 Bug 1492574: Fix OOM handling in NewRope testing function r=tcampbell
Depends on D6404

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

--HG--
extra : moz-landing-system : lando
2018-09-27 19:13:52 +00:00
Iain Ireland
20456aeee2 Bug 1492574 - Avoid leaking OOM exception flag from GetDynamicName r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D6404

--HG--
extra : moz-landing-system : lando
2018-09-27 19:18:07 +00:00
Andrew McCreight
877213ca74 Bug 1493791 - Fix trivial calls to do_QueryInterface in XPCOM unit tests r=froydnj
In TestEventTargetQI.cpp, nsIThreadPool is a subclass of
nsIEventTarget, so we cannot QI from the former to the latter once
trivial QIs are banned. However, we still want to check if a QI to
nsIEventTarget does something, so I added an intermediate cast up to
nsISupports, and then QI from there. I wrapped that all up in a
templated function, because the code is a bit ugly, and used it
everywhere for uniformity, even though it is not always needed.

I fixed TestCOMPtr.cpp in the same way, by casting up to nsISupports.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 18:41:42 +00:00
Chris Manchester
9b4e589152 Bug 1490147 - Require rustc 1.29. r=ted,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D6998

--HG--
extra : moz-landing-system : lando
2018-09-26 22:18:25 +00:00
yulia
26f84dc0e4 Bug 1487428 - Use target.getFront in server browser tests; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D6768

--HG--
extra : moz-landing-system : lando
2018-09-27 15:18:08 +00:00
Timothy Guan-tin Chien
35b063fc71 Bug 1493525 - Part II, Make videocontrols guard itself from reading the layout at the wrong time r=jaws
This patch adds a few guards to the DOM elements the videocontrols holds as
properties. Any future changes that attempt to access the blacklisted layout
properties of the DOM elements will throw.

Depends on D6725

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

--HG--
extra : moz-landing-system : lando
2018-09-27 17:44:53 +00:00
Timothy Guan-tin Chien
52fcb4df46 Bug 1493525 - Part I, Access layout dimensions in resizevideocontrols event only r=jaws
Given that the videocontrols UA Widget initializes when the DOM is inserted
(as opposed to the XBL binding only when the element is visible), the code should
not be tapping into layout until it updates.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 17:44:44 +00:00
Matthew Noorenberghe
05d5fb0939 Bug 1490805 - Add a required CSC/CVV field to the add card page. r=jaws
Depends on D6882

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

--HG--
extra : moz-landing-system : lando
2018-09-27 17:26:24 +00:00
Dana Keeler
b3b9e414bc bug 1493427 - use the docShell to call OnSecurityChange in nsSecureBrowserUIImpl::OnLocationChange r=Gijs
When navigating to an about: page that doesn't exist (e.g.
"about:somethingthatdoesnotexist"), the docShell will call
nsSecureBrowserUIImpl::OnLocationChange with a request that is null.
Consequently, we can't use that to QueryInterface to a nsISecurityEventSink to
call OnSecurityChange. The previous implementation would use the prior
request's nsISecurityEventSink, which was a bug but luckily this produced the
correct behavior. Since the original docShell the nsSecureBrowserUIImpl was
initialized with is what needs to be notified, we can just QueryInterface that
to an nsISecurityEventSink and call OnSecurityChange directly instead.

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

--HG--
rename : browser/base/content/test/siteIdentity/browser_tls_handshake_failure.js => browser/base/content/test/siteIdentity/browser_navigation_failures.js
extra : moz-landing-system : lando
2018-09-27 17:26:00 +00:00
Nicolas Chevobbe
433264a3b1 Bug 1410820 - Extensively test top-level await evaluation; r=bgrins.
We add several tests and modify the existing one to make sure we handle
top level await correctly in different situation (resolving, rejecting,
when paused in the debugger, when using $_, …).

Depends on D6925

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

--HG--
extra : moz-landing-system : lando
2018-09-27 16:01:16 +00:00
Nicolas Chevobbe
674b26da5e Bug 1410820 - Enhance webconsole test helpers; r=bgrins.
1. Allow passing a selector to waitForMessage helper function:

This will allow to wait for specific message (warning, error, result, …).
This patch also fixes 2 tests that were already passing an erroneous selector
to waitForMessage.

2. Add an executeAndWaitForMessage function:

This will make a lot of our tests much easier to read. The function takes
an input, an expected output and an optional selector, execute the input
and resolves when a message matching the provided text (and selector
if passed) is displayed in the output.

Depends on D6903

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

--HG--
extra : moz-landing-system : lando
2018-09-27 16:00:32 +00:00
Nicolas Chevobbe
2aa2e07452 Bug 1410820 - top-level await evaluation should be handled as regular evaluation; r=bgrins.
This patch turns the current top-level handling, which relies on
the console API to print the result of the await expression, into
something natively handled by the server.

First, we don't add a .then handler to the generated async iife by
the mapper. We also removes the case we added in the JsTerm to *not*
print the result for top-level await expression.

In order to make the server capable of handling generated async iife
caused by the mapper, we send to evaluateJsAsync the `mapped` object
that `mapExpression` returns. This way, the server can check if an
expression was originally a top-level await.

If it is the case, we get the promise from the async iife and wait for
it to settle. If it resolves, we simply return the result, as a grip,
to the client. If it rejects, we return a special packet indicating to
not print anything to the client. The error will be reported by the
engine as `uncaught exception: …`.

We add several tests and modify the existing one to make sure we handle
top level await correctly in different situation (resolving, rejecting,
when paused in the debugger, when using $_, …).

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

--HG--
extra : moz-landing-system : lando
2018-09-27 15:59:47 +00:00
Nicolas Chevobbe
237c4ba134 Bug 1494545 - Make Ctrl+Space open the autocomplete popup in the console; r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D7049

--HG--
extra : moz-landing-system : lando
2018-09-27 16:36:11 +00:00
Gurzau Raul
a8d8876e9e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-27 19:45:35 +03:00
Gurzau Raul
00b3974ac0 Backed out 5 changesets (bug 1494613) for failing at testing/geckodriver/src/marionette.rs
Backed out changeset 09e9cefc19ca (bug 1494613)
Backed out changeset f9f4e7c55d61 (bug 1494613)
Backed out changeset 457da8a172be (bug 1494613)
Backed out changeset 8d26a58f754e (bug 1494613)
Backed out changeset 729d8f3e1341 (bug 1494613)
2018-09-27 18:49:58 +03:00
Mark Banner
d50e3a7301 Bug 1493668 - Change UrlbarInput unit test to be a mochitest for easier setup. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D6664

--HG--
rename : browser/components/urlbar/tests/unit/test_UrlbarInput_unit.js => browser/components/urlbar/tests/browser/browser_UrlbarInput_unit.js
extra : moz-landing-system : lando
2018-09-27 15:04:07 +00:00
Andrew McCreight
5a1eb609f9 Bug 1493276 - Statically prevent CallQueryInterface to a base class r=froydnj
If a class A is derived from a class B, then an instance of A can be
converted to an instance of class B via a static cast, so QI is not
needed. QIs are slower than static casts.

TestCallTemplates seems to be testing that CallQueryInterface compiles
even if the first argument's class is only ambiguously castable to
nsISupports, so I changed the second argument to be a class unrelated
to the concrete class.

I also removed some useless null checks on the return value of new.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 14:59:55 +00:00
Julien Wajsberg
9ce2cbff3e Bug 1494337 - Do not display the 'triggers refresh' note if there's no option needing it r=ochameau
Depends on D6923

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

--HG--
extra : moz-landing-system : lando
2018-09-27 14:33:41 +00:00
Julien Wajsberg
f74fc26e96 Bug 1494337 - Move the 'tool not supported' label to the right place r=ochameau
Depends on D6922

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

--HG--
extra : moz-landing-system : lando
2018-09-27 14:33:39 +00:00
Julien Wajsberg
b29f25d7b3 Bug 1494337 - Insert the settings for nightly before the 'reloads the page' indication r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D6922

--HG--
extra : moz-landing-system : lando
2018-09-27 14:33:38 +00:00
Jared Wein
3dc4f24d54 Bug 1470168 - Add tooltip beside 'Save to Firefox' checkbox. r=MattN
I had to move the tooltip to appear above the help icon to make sure that it cause scrollbars to appear on the address form.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 14:11:39 +00:00
Emilio Cobos Álvarez
1b0a0261a1 Bug 1494622 - Simplify CSSValue and co a bit more. r=xidorn
Just remove the useless stuff.

Differential Revision: https://phabricator.services.mozilla.com/D7071
2018-09-27 16:11:45 +02:00
Emilio Cobos Álvarez
b4bba4d593 Bug 1494622 - Remove nsDOMCSSRect. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D7070
2018-09-27 16:11:44 +02:00
Emilio Cobos Álvarez
45ef068d56 Bug 1494622 - Serialize -moz-image-region and clip with Servo. r=xidorn
This changes the serialization of -moz-image-region to be consistent with that
of clip(), but it's an internal property and the specified value is already
serialized by servo so I think it's the right thing to do.

There are also no internal callers of the getter.

Differential Revision: https://phabricator.services.mozilla.com/D7069
2018-09-27 16:11:43 +02:00
Emilio Cobos Álvarez
864a303a8c Bug 1494622 - Remove nsDOMCSSRGBColor. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D7068
2018-09-27 16:11:42 +02:00
Emilio Cobos Álvarez
8654e90627 Bug 1494332 - Avoid setting the has-first-letter child bit on a first-line. r=bzbarsky
We rely on the bit being on the block to restyle them in the right order.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 13:16:00 +00:00
David Major
cf67c848e4 Bug 1494077: Remove unused macro and its supporting #define to fix a unified build problem. r=mak
--HG--
extra : rebase_source : ecb363e35dee56a2c4d1c3cd4c5825a7017569ea
2018-09-27 08:58:55 -04:00
Eliza Balazs
4367a5a4ab Bug 1464541 - Disable fetch-canvas-tainting-video.https.html for frequent failures on all platform. r=jmaher 2018-09-27 01:48:00 +03:00
Jared Wein
7da631f438 Bug 1469935 - Ctrl+M should mute/unmute all selected tabs in a multiselect context. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D6948

--HG--
extra : moz-landing-system : lando
2018-09-26 20:46:09 +00:00
Jared Wein
b08075b904 Bug 1492702 - Send the contextual link to the device, not the selected tab when a link is right-clicked. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D6980

--HG--
extra : moz-landing-system : lando
2018-09-27 07:49:05 +00:00
Andreas Tolfsen
a64e86917a bug 1494613: geckodriver: convert logging::Level to Pref r=whimboo
The patch c1df1c2e46f6 contained a faulty rebase where the coercion
of logging::max_level() changed from the Pref type to a string.

The string representation of geckodriver::logging::Level is given
in upper-case, e.g. "INFO", and the Pref representation is given as
"Info" to be compatible with managing the log level from Log.jsm in Gecko.

This inadvertently caused
https://github.com/web-platform-tests/wpt/issues/12166 to reappear
in almost the same way: before the problem was that Marionette’s
frame script always included all log level entries.  This was fixed
with https://bugzilla.mozilla.org/show_bug.cgi?1482829, but then
https://bugzilla.mozilla.org/show_bug.cgi?id=1396821 broke it so
that log entries also from chrome space appeared.

Depends on D7077

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

--HG--
extra : moz-landing-system : lando
2018-09-27 13:35:12 +00:00
Andreas Tolfsen
ed28f66567 bug 1494613: mozprofile: add docs for Pref::new and ::new_sticky r=whimboo
Depends on D7076

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

--HG--
extra : moz-landing-system : lando
2018-09-27 13:17:56 +00:00
Andreas Tolfsen
c3fce9b592 bug 1494613: geckodriver: log reason for not being able to write profile r=whimboo
mozprofile gives us an error and we can forward it to the user so
we know what the underlying reason is for not being able to write
the Firefox profile.

Depends on D7075

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

--HG--
extra : moz-landing-system : lando
2018-09-27 13:17:16 +00:00
Andreas Tolfsen
d1886a0a8b bug 1494613: geckodriver: drop try!() macro from MarionetteHandler r=whimboo
Done automatically by running MarionetteHandler through rustfmt(1).

Depends on D7074

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

--HG--
extra : moz-landing-system : lando
2018-09-27 13:15:41 +00:00
Andreas Tolfsen
36c735b76e bug 1494613: geckodriver: remove unnecessary owned string conversion r=whimboo
PrefValue implements From<&'static str>, and this makes the calling
code slightly nicer to look at.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 13:14:51 +00:00
StefanYohansson
41d490dca9 Bug 1172314 - Print arguments passed into console.trace. r=bgrins.
Added trace extra parameters to be printed alongside console.trace() output.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 13:27:57 +00:00
Ted Campbell
af49304413 Bug 1494159 - Allow LIR to throw muliple errors r=jandem
Error handling for LIRGenerator lets us defer handling until the end of
the instruction but this can result in tripping some sanity checks. Only
report the first error up to caller.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 12:54:11 +00:00
Henrik Skupin
421c63d12b Bug 1494617 - [geckodriver] Fix evaluation of "desiredCapabilities" and "requiredCapabilities". r=ato
The refactoring of the webdriver crate to use Serde (bug 1396821)
caused this regression. By instructing Serde to correctly rename
both properties fixes it.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 12:06:00 +00:00
Gurzau Raul
f9e73257fd Backed out changeset 55be882db711 (bug 1494589) at developer's request 2018-09-27 15:13:38 +03:00
ffxbld
dbf253a4b5 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D7081

--HG--
extra : moz-landing-system : lando
2018-09-27 12:07:07 +00:00
Nicolas Chevobbe
89eca29ba9 Bug 1492827 - Remove unused listeners and handlers from webconsole-connection-proxy; r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D7073

--HG--
extra : moz-landing-system : lando
2018-09-27 11:46:26 +00:00
Dragana Damjanovic
0b0b0258ef Bug 1481251 - Optimize non-A/AAAA type DNS records. r=bagder
Split nsHostRecord into AddrHostRecord and TypeHostRecord for standard address dns queries and queries by-type.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 09:28:36 +00:00
Vlad Baicu
e02e9115e1 Bug 1478053 - Remove persistent notifs from the clearable list. r=jchen
Persistent notifications were not properly distinguished from clearable notifications
because they would first start as not persistent and got updated afterwards. Also added
a handle action in BrowserApp's onCreate for whenever the process gets removed.

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

--HG--
extra : moz-landing-system : lando
2018-09-26 22:45:35 +00:00
Emilio Cobos Álvarez
366ee403da Bug 1494030 - Fix an assertion. r=mats
We're trying to insert a table caption via an append into a display: contents
element. We pass the content-insertion-frame (the table frame) instead of the
siblings' parent (the table wrapper frame).

This is the right thing to pass though, we adjust the caption parent frame
later, on AdjustCaptionParentFrame, and we ensure that we don't get here for a
non-caption thing because of IsValidSibling (though note that that can actually
lie, see bug 1424656, we'd get the layout wrong if the title element was a
replaced element for example), so a normal append without a previous sibling
will still be correct.

It'd be nice to make this a bit less messy, fwiw, but I don't have the ideas or
the time to do it now.

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

--HG--
extra : moz-landing-system : lando
2018-09-27 11:20:47 +00:00
yulia
a5898d79c0 Bug 1473513 - fix faulty path for actor-registry;
Summary: Depends on D6479

Bug #: 1473513

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

--HG--
extra : rebase_source : 2455fe48b2be756e1b5bae0b2846051ed8283a68
2018-09-26 10:11:23 +02:00