Commit Graph

646513 Commits

Author SHA1 Message Date
monikamaheshwari
79c0be7b2b Bug 1540828 De-dupe passwordmgr checkACForm function r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D26695

--HG--
extra : moz-landing-system : lando
2019-04-11 11:45:47 +00:00
Daisuke Akatsuka
c2af90eef6 Bug 1497454: Add a test for focusing existing tab. r=jdescottes
Depends on D26652

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

--HG--
extra : moz-landing-system : lando
2019-04-11 11:39:57 +00:00
Daisuke Akatsuka
c7f59d9619 Bug 1497454: Focus a tab which is inspecting for the debug target. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D26652

--HG--
extra : moz-landing-system : lando
2019-04-11 02:06:41 +00:00
Martin Stransky
f8f3c43a24 Bug 1508378 - Fix round error when damage rect size/position is odd number and scale factor is used, r=lsalzman
We have rendering artifacts when sceen scale is set and damage size/position is odd number.
It's caused by round error so update the size/position accordingly.

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

--HG--
extra : moz-landing-system : lando
2019-04-10 14:17:28 +00:00
Andrea Marchesini
afbad5faf0 Bug 1541934 - mozStorageConnection can crash on shutdown, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D26491

--HG--
extra : moz-landing-system : lando
2019-04-11 11:14:51 +00:00
Peter Van der Beken
7552bea442 Bug 1534638 - Part 3: rename SetRootDocShell to ClearDocShell. r=qdot
Depends on D25763

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

--HG--
extra : moz-landing-system : lando
2019-04-04 16:20:19 +00:00
Peter Van der Beken
e646d6366e Bug 1534638 - Part 2: remove nsISHEntry::getAnyContentViewer. r=qdot
Bug 304860 and bug 1364364 have disabled the bfcache for subframes, so we only
store the contentviewer in the root entry.

Depends on D25761

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

--HG--
extra : moz-landing-system : lando
2019-04-04 16:19:37 +00:00
Peter Van der Beken
023a72eb9b Bug 1534638 - Part 1: remove unused arguments from session history listeners. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D25761

--HG--
extra : moz-landing-system : lando
2019-04-04 16:18:48 +00:00
Tim Nguyen
a98fbc3898 Bug 1543626 - Make browser_all_files_referenced.js parse theme_experiment manifest field. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D27047

--HG--
extra : moz-landing-system : lando
2019-04-11 10:36:24 +00:00
Tim Nguyen
53c127843c Bug 1519548 - Introduce dark mode in-content page preference. r=dao,jaws
Differential Revision: https://phabricator.services.mozilla.com/D16363

--HG--
extra : moz-landing-system : lando
2019-04-11 10:27:55 +00:00
Julian Descottes
4fd5e7af5e Bug 1532993 - Add test for perfomance panel when devtools are in frame type=content r=ochameau
Depends on D26919

This test also needs the fixes from Bug 1538731

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

--HG--
extra : moz-landing-system : lando
2019-04-11 10:06:57 +00:00
Julian Descottes
862fa42f20 Bug 1532993 - Use DOMHelpers to wait for iframe load in widgets/Graphs.js;r=ochameau
Depends on D26900
Fixes the blank chart and load issues for the old perf panel in about:devtools-toolbox (or type=content)

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

--HG--
extra : moz-landing-system : lando
2019-04-11 09:03:41 +00:00
Julian Descottes
bf0b866ca5 Bug 1538731 - Add test for panel reloading with about:devtools-toolbox;r=daisuke
Depends on D26899
This test would timeout with the fix in the previous patch

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

--HG--
extra : moz-landing-system : lando
2019-04-11 09:52:47 +00:00
Julian Descottes
fecd3641a7 Bug 1538731 - Stop using async methods in performance panel initializer.js;r=daisuke
Follow up to 1524982. We started using the browserloader to load almost all perf panel files.
However we kept two async methods in the js file loaded by performance/index.xul, which defeated the purpose.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 09:36:14 +00:00
James Graham
7b45ebc476 Bug 1543244 - Refactor mach addtest support, r=ahal,bgrins
Add addtest support for per-suite arguments and multiple files. Also
support opening the created test in an editor. This allowed supporting
the wpt suite and replaces `mach wpt-create`.

 # Create a wpt test
 ./mach addtest testing/web-platform/tests/accelerometer/test.html

 # Create a wpt reftest
 ./mach addtest --suite wpt-reftesttesting/web-platform/tests/css/example.html --ref example-ref.html

The files created will be opened in the default editor if --editor is
supplied or a specified editor if the argument is given a value.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 09:44:32 +00:00
Chris Pearce
f1b4ef2942 Bug 1533129 - Add extended MIME parameter support to MediaSource.isTypeSupported on YouTube only. r=jya
YouTube.com/tv uses YouTube specific extensions to MediaSource.isTypeSupported
in order to determine whether it serves 4K. It checks with bogus values, and if
we reject the bogus values, it assumes we're responding truthfully to the other
queries. So add support to reject the bogus values on YouTube.com.

With this patch, we can play 4K on YouTube.com/tv.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 09:53:26 +00:00
Jonathan Kew
74101e9931 Bug 1465771 - Add a WPT-reftest for quoted font-family name that matches a CSS generic-family keyword. r=jwatt
Depends on D26916

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

--HG--
extra : moz-landing-system : lando
2019-04-10 21:42:38 +00:00
Jonathan Kew
8f7eaa249c Bug 1465771 - Avoid possibly treating a quoted font-family name as a CSS generic in the fontconfig-based backend. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D26916

--HG--
extra : moz-landing-system : lando
2019-04-10 21:42:26 +00:00
Tim Nguyen
e70373f76a Bug 1543615 - Extend toolbar colors to the customization mode for all themes without a header image. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D27041

--HG--
extra : moz-landing-system : lando
2019-04-11 09:38:19 +00:00
Jonathan Kew
9c39f45719 Bug 723045 - Remove nsUnicodeRange and instead use ICU to look up Unicode blocks. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D25377

--HG--
extra : moz-landing-system : lando
2019-04-10 21:43:22 +00:00
Christian Holler
b3ef3681df Bug 1538465 - WebAssembly Fuzzing Target. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D25919

--HG--
extra : moz-landing-system : lando
2019-04-11 09:22:04 +00:00
Paul Adenot
b774a54cc4 Bug 1531833 - Update libcubeb to c0a717 (and rebase an in-tree patch). r=kinetik
This has been reviewed by snorp, kinetik, achronop, in bug 1531833, and the
rollup has been rubberstamped by achronop in
https://github.com/kinetiknz/cubeb/pull/501.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:39 +00:00
Paul Adenot
387f4ae5fd Bug 1531833 - When the input is voice, activate the global communication mode. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21738

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:35 +00:00
Paul Adenot
7806f50930 Bug 1531833 - Add a way to tell the graph driver that the audio input is voice. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21737

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:34 +00:00
Paul Adenot
b64c360235 Bug 1531833 - Expose a way to set a global "communication mode" in CubebUtils, to be use by real-time duplex audio users. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D21736

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:34 +00:00
Paul Adenot
9936332833 Bug 1531833 - Add a Java method that enables and disable all that is needed to do audio communication with an earpiece. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D21735

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:34 +00:00
Paul Adenot
55767449c2 Bug 1531833 - Add bluetooth permission to GeckoView. r=snorp
This is needed to open an SCO channel and do proper (low-latency) bluetooth
communication when doing a call using WebRTC, or simply recording local audio in
a web application.

I think this is more of a GeckoView thing, but I'm a bit fuzzy on the
distinction, maybe it's the wrong manifest. I tested using Fennec.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 09:19:33 +00:00
nidhi
ad7be73c4a Bug 1543143 - deleted bogus selector in aboutLicense.css r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D27039

--HG--
extra : moz-landing-system : lando
2019-04-11 09:23:08 +00:00
Tim Nguyen
a439aefa4d Bug 1543474 - Stop using netError.css in about:robots. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D26999

--HG--
extra : moz-landing-system : lando
2019-04-11 09:03:53 +00:00
Tim Nguyen
3cd6c19dfd Bug 1531214 - Update remaining library icons to SVG. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D27011

--HG--
extra : moz-landing-system : lando
2019-04-11 08:53:18 +00:00
Florin Strugariu
4348f3974a Bug 1509835 Raptor test raptor-tp6-amazon-chrome is not rendering a completely loaded amazon site r=tarek
Differential Revision: https://phabricator.services.mozilla.com/D25597

--HG--
extra : moz-landing-system : lando
2019-04-09 09:49:03 +00:00
Florin Strugariu
528fad068d Bug 1519827 Measure "loadtime" in all tp6 tests r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D26674

--HG--
extra : moz-landing-system : lando
2019-04-11 07:22:17 +00:00
Hiroyuki Ikezoe
700ec53c21 Bug 1535232 - Take account the scroll-snap-margin and scroll-snap-padding into the position where we scroll to on Element.focus() call. r=masayuki,botond
We also take account those values in the case of `Find in page`.

The corresponding web platform tests will be coming from this PR.
https://github.com/web-platform-tests/wpt/pull/8575

Though some of them will not be passed, the failure reason is not related
to this change, I will take a look when the PR gets merged into mozilla-central.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:22:38 +00:00
Hiroyuki Ikezoe
5a15da458f Bug 1534070 - Factor scroll-margin into the position calculation where nsIPresShell::ScrollFrameRectIntoView() is going to scroll. r=botond
Depends on D23084

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:22:31 +00:00
Hiroyuki Ikezoe
7b600a0531 Bug 1534070 - Factor scroll-padding into the position calculation where nsIPresShell::ScrollContentIntoView() is going to scroll if necessary. r=botond
In the case where scroll-snap-type is specified for the scroll container, the
scroll-padding is also factored into in ScrollFrameHelper::ComputeScrollSnapInfo
which is called via ScrollFrameHelper::ScrollToWithOrigin.  It doesn't double
the scroll-padding value, but it's actually redundant, we should avoid it.
We could separate the functionality of ScrollToWithOrigin, one is to scroll
to a given element, the other is to scroll to a given position.  The former will
be used for Element.scrollIntoElement and relevant stuff, the latter will be
used for Element.scrollTo and relevant stuff.  That's being said, as of now, we
have still the old scroll snap implementation, so the separation will introduce
complexity, the separation should be done once after the old implementation
removed.

There are 9 call sites of nsIPresShell::ScrollContentIntoView:
  nsIPresShell::GoToAnchor
  nsIPresShell::ScrollToAnchor
  Element::ScrollIntoView
   We definitely needs scroll-padding and scroll-margin for these functions.

  nsCoreUtils::ScrollTo
   This is used for Accesible::ScrollTo which scrolls to a given accesible node,
   probably we should behave as what Element::ScrollIntoView does.

  Accessible::DispatchClickEvent
   Similar to the above, similated various mouse events on a given target node.

  PresShell::EventHandler::PrepareToUseCaretPosition
  PresShell::EventHandler::GetCurrentItemAndPositionForElement
   Both are for context menu, we shouldn't consider scroll-padding and
   scroll-margin.

  nsFormFillController::SetPopupOpen
   This is used for autocompletion popup, we shouldn't consider scroll-padding
   and scroll-margin.

  nsFocusManager::ScrollIntoView
   This is bit unfortunate, we should use scroll-padding and scroll-margin
   depending on call site of this function. Bug 1535232 is for this case.

cssom-view/scrollIntoView-scrollPadding.html which has some tests that is
actually testing scroll-padding with scrollIntoView passes with this change.

The reftest in this change is a test case that the browser navigates to an
element with specifying the anchor to the element.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:22:14 +00:00
Hiroyuki Ikezoe
f7645a5770 Bug 1531228 - Enable the new scroll snap and disable the old scroll snap on nightly. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D22804

--HG--
extra : moz-landing-system : lando
2019-04-11 06:22:01 +00:00
Hiroyuki Ikezoe
d239072cac Bug 1373832 - Deflate the snapport by scroll-padding and adjust the snap positions by the padding value. r=botond
https://drafts.csswg.org/css-scroll-snap-1/#scroll-padding

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:21:48 +00:00
Hiroyuki Ikezoe
019f6cae6e Bug 1373833 - Factor scroll-margin values into scroll snap position calculation. r=botond
scroll-margin is for each elements in the scroll container and snap positions
are shifted by the value.

https://drafts.csswg.org/css-scroll-snap-1/#scroll-margin
https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-area

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:21:36 +00:00
Hiroyuki Ikezoe
ee992bd0bb Bug 1373835 - Cull out elements which will be invisible in the snapport for programatic scrolls. r=botond
As for scrolling on the compositor we don't cull out them since we don't know
the final snapport rect at the time when we send the information about
snapping to the compositor.  And we will handle it for APZ in bug 1531589.

https://drafts.csswg.org/css-scroll-snap-1/#snap-scope

Depends on D21632

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:21:23 +00:00
Hiroyuki Ikezoe
fdc43c56d5 Bug 1373835 - Make positions in the range that the element covers the snapport valid snap positions. r=botond
https://drafts.csswg.org/css-scroll-snap-1/#snap-overflow

Depends on D21631

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:21:11 +00:00
Hiroyuki Ikezoe
3a6373adc1 Bug 1373835 - Add a test case for unreachable snap positions. r=botond
The snap alignment position of the target element is the top left of the target
and the position is located out of scroll port (top: -100px, left: -100px).
Even so we try to snap a position as much as possible.

From the spec [1];
 If a snap position is unreachable as specified, such that aligning to it would
 require scrolling the scroll container’s viewport past the edge of its
 scrollable overflow region, the used snap position for this snap area is the
 position resulting from scrolling as much as possible in each relevant axis
 toward the desired snap position.

[1] https://drafts.csswg.org/css-scroll-snap-1/#unreachabLe

Depends on D21630

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:20:58 +00:00
Hiroyuki Ikezoe
f905a44094 Bug 1373835 - Add a test case that the snap target element is transformed. r=botond
Depends on D21629

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:22:21 +00:00
Hiroyuki Ikezoe
9497022bc3 Bug 1373835 - Implement scroll-snap-align. r=botond,jfkthame
https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align

The main logic here is basically same as the old scroll snap implementation,
just iterating over all descendant elements in the scroll container and collect
snap positions.  The differences are;

 1) the snap positions are specified based on descendant elements instead of
    points
 2) the snap positions are able to be specified by `block` or `inline` keywords
    so that we also need to care the element flow.
    more test cases for this are coming in the next commit
 3) the target rect is calculated by nsLayoutUtils::TransformFrameRectToAncestor
    which means transform is already taken account into it (we have a bug for
    the old scroll snap, it's bug 1218745)
    some of web platform tests will be added in a subsequent commit

Some of test cases in overflowing-snap-areas.html that accidentally have
passed start failing with this change, all of them will be passed with
subsequent changes in these commit series.

Depends on D21627

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:20:36 +00:00
Hiroyuki Ikezoe
eab0011ba9 Bug 1373835 - Make ComputeScrollSnapInfo a private method of ScrollFrameHelper. r=botond
Depends on D21626

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:20:24 +00:00
Hiroyuki Ikezoe
a7fb73dd6e Bug 1373835 - Enable scroll snap for Element.scrollIntoView. r=botond
Depends on D21625

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:20:11 +00:00
Hiroyuki Ikezoe
66dd57767b Bug 1373835 - Enable scroll snap for programatic scrolls. r=botond
From the spec [1];

 Using the scroll-snap-type property on the relevant scroll container, the
 author can request a particular bias for the scrollport to land on a snap
 position after scrolling operations (including programmatic scrolls such
 as the scrollTo() method).

The target here are functions exposed in web contents other than
Element.scrollIntoView which will be changed in the next commit.

[1] https://drafts.csswg.org/css-scroll-snap-1/#overview

Depends on D21624

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:20:04 +00:00
Hiroyuki Ikezoe
7fa6058b78 Bug 1373835 - Use scrollBy instead of scrollTo in a test in scrollTo-scrollBy-snaps.html. r=botond
Given the test description is mentioning scrollBy, scrollBy should be used
there.

Depends on D21623

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:19:51 +00:00
Hiroyuki Ikezoe
ff60fc5656 Bug 1373835 - Make the largest element wider. r=botond
The right top element is positioned at left:1000px and its width is 600px and
the width of the largest element in the content is 2100px.  So if the browser
window width (precisely documentElement clientWidth) is greater than 1100px, the
right top element is not suitable for scroll-snap-align:start, thus some test
cases fail.

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:19:39 +00:00
Hiroyuki Ikezoe
eab764a7ae Bug 1312163 - Switch to the new scroll-snap-type syntax for the old scroll snap implementation and drop the scroll-snap-type-{x,y} longhands. r=emilio
Now scroll-snap-type is a longhand property.

Depends on D21621

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:19:31 +00:00
Hiroyuki Ikezoe
19102cb3b9 Bug 1312163 - Rename ScrollSnapType to ScrollSnapStrictness. r=emilio
The scroll snap strictness is defined in the new spec [1], and the structure
is the exactly same as the old scroll snap type structure.

[1] https://drafts.csswg.org/css-scroll-snap-1/#snap-strictness

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

--HG--
extra : moz-landing-system : lando
2019-04-11 06:19:13 +00:00