Commit Graph

616088 Commits

Author SHA1 Message Date
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
yulia
72f9e83eb1 Bug 1473513 - move ActorRegistry module to server/actors/utils; r=ochameau
Summary: Depends on D6477

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
rename : devtools/server/actor-registry.js => devtools/server/actors/utils/actor-registry.js
extra : rebase_source : ae52db7b028b4d866d8a363eae9ae7c124714458
2018-09-26 10:09:15 +02:00
yulia
29af71d6af Bug 1473513 - resolve memory leak
Summary: Depends on D6476

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 61ccae905e3136ad3c293db692551786e83075c7
2018-09-26 10:08:43 +02:00
yulia
c6dbe43c8e Bug 1473513 - reduce number of poolFor calls; r=ochameau
Summary:
MozReview-Commit-ID: 9VqKPauAP9j

Depends on D6475

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 1bebc34bf805dfcf7bce0b5d8f3a2a13bab11173
2018-09-26 10:08:10 +02:00
yulia
dd29e366ea Bug 1473513 - refactor main.js to use protocol.js pools; r=ochameau
Summary:
MozReview-Commit-ID: FNMK4f553yI

Depends on D6474

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : c61d394da0a20991def49968f01ee563fea9afde
2018-09-26 10:07:27 +02:00
yulia
9c120b705d Bug 1473513 - separate registerModule behavior from DebuggerServer; r=ochameau
Summary:
MozReview-Commit-ID: 3GsXRxcIKfx

Depends on D6473

Reviewers: ochameau

Reviewed By: ochameau

Subscribers: reviewbot

Bug #: 1473513

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

--HG--
rename : devtools/server/main.js => devtools/server/actor-registry.js
extra : rebase_source : 3ea4edd91ca8b09ad5e25ae01df885c587bee7b1
2018-09-26 10:06:43 +02:00
yulia
0c9522358e Bug 1473513 - Ensure that actorPools in root are destroyed on destroy; r=ochameau
Summary: Depends on D6472

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 075dd9b2128adf04f0bbf6fc7f0708ca532a49aa
2018-09-26 10:06:00 +02:00
yulia
e1c0e43fff Bug 1473513 - remove other instances of ActorPool from browsingContext and root; r=ochameau
Summary:
MozReview-Commit-ID: GxkLzvxJgdY

Depends on D6471

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 8877be9e01d379375a167c58c61d94efd4997e19
2018-09-26 10:05:31 +02:00
yulia
99bb10079e Bug 1473513 - make log function safer so that tests do not time out; r=ochameau
Summary:
MozReview-Commit-ID: BIk5pWzxJcx

Depends on D6470

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : 0284679e1a6d33ed915ebf69cf56557847bceb66
2018-09-26 10:04:57 +02:00
yulia
4a8f74eb3e Bug 1473513 - create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor; r=ochameau
Summary:
create LazyActorClass based off ObservedActorFactory and RegisterdFactory classes for use in RootActor and BrowsingContextActor;

Depends on D6468

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
rename : devtools/server/actors/common.js => devtools/shared/protocol/lazy-pool.js
extra : rebase_source : 09a1c8eac3cbb5856a5e3e61a1c0540efe32e5bd
2018-09-26 10:03:33 +02:00
yulia
7caf289dbe Bug 1473513 - use Protocol.js pools for workerTargetActorPool in Target Actors; r=ochameau
Summary: MozReview-Commit-ID: 5uIWwOR7CHp

Reviewers: ochameau

Reviewed By: ochameau

Bug #: 1473513

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

--HG--
extra : rebase_source : b5f560e404727a168c5b35924961a49c51b849df
2018-09-26 10:02:54 +02:00
Emilio Cobos Álvarez
2893c9ebf3 Bug 1494519 - Use float division to avoid an MSVC warning. r=me 2018-09-27 12:43:42 +02:00
Jonathan Kew
f72a100c9b Bug 1473314 - Make nsRange::GetUsedFontFaces accumulate font faces in the order they are encountered in the document. r=xidorn 2018-09-27 11:33:25 +01:00