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

629241 Коммитов

Автор SHA1 Сообщение Дата
Matthew Noorenberghe f0fa08a87c Bug 1330228 - Use hasBeenTypePassword in formSubmitListener.js to not save former password fields. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D15211

--HG--
extra : moz-landing-system : lando
2018-12-21 16:57:29 +00:00
Matthew Noorenberghe 5496cbdd15 Bug 1330228 - Use hasBeenTypePassword in FormData.jsm to not save former password fields. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D15208

--HG--
extra : moz-landing-system : lando
2018-12-21 16:56:15 +00:00
Matthew Noorenberghe 1876ae8ede Bug 1330228 - Use HasBeenTypePassword when sanitizing a document for bfcache. r=baku
Check whether an input was ever type=password rather than just checking the current type to handle sites which toggle password visibility.

I haven't yet figured out what this code is used for so haven't made a test yet.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 16:45:19 +00:00
Matthew Noorenberghe 40455b7a34 Bug 1330228 - Use HasBeenTypePassword to skip saving to presentation state. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15148

--HG--
extra : moz-landing-system : lando
2018-12-21 16:44:37 +00:00
Matthew Noorenberghe 9ce78727ba Bug 1330228 - Test input.hasBeenTypePassword. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15147

--HG--
rename : dom/html/test/forms/test_mozistextfield.html => dom/html/test/forms/test_input_hasBeenTypePassword.html
extra : moz-landing-system : lando
2018-12-21 16:47:33 +00:00
Olli Pettay 34fc8f6cc6 Bug 1330228 - Expose a chrome-only API indicating whether an <input> was ever type=password r=baku
Cache whether an input was ever type=password so consumers can handle sites which toggle password visibility and don't want to save the value of the field.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 16:43:23 +00:00
Jeff Muizelaar 017c78e2f9 Bug 1513772. Split out blob mask handling. r=mstange
Currently we use the regular fallback path for the mask images used by blobs.
This isn't really the best fit and is causing test failures with the current
blob re-coordination patches.

This changes the code to be more FrameLayerBuilder and handles
invalidation of the mask without using FrameLayerBuilder.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 18:21:40 +00:00
Mark Banner 3414ce9b54 Bug 1515952 - Allow ESLint rule spaced-comment to accept source-map comments. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D15207

--HG--
extra : moz-landing-system : lando
2018-12-21 18:05:39 +00:00
Andreas Pehrson 8567b073f3 Bug 1512958 - Properly clean up produced tracks in DecodedStream. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D14584

--HG--
extra : moz-landing-system : lando
2018-12-21 16:23:57 +00:00
Andreas Pehrson 63c1afee2b Bug 1512958 - Add mochitest. r=jya,jib
Differential Revision: https://phabricator.services.mozilla.com/D14583

--HG--
extra : moz-landing-system : lando
2018-12-21 16:23:55 +00:00
Alastor Wu 862fdf36a9 Bug 1511235 - part3 : ensure video is visible before starting test r=jya,baku
Add testing function to know whether video is visible or not.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 06:40:10 +00:00
alwu 16fe01f1fd Bug 1511235 - part2 : add test. r=jya,baku
Add new webidl method for testing only and a test.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 20:01:46 +00:00
alwu 41df7a6715 Bug 1511235 - part1 : suspend video decoding for video whose visibility state is UNTRACK. r=jya
If video has not been within the potential visible range (which is larger than viewport) yet, its visibility state won't
be updated and would stay in 'UNTRACK'. As those kinds of video are still invisible to users, we don't need to decode
any video frames, we can suspend their video decoding until they're going to be visible.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 20:02:24 +00:00
Jan Henning 7fb92b8c44 Bug 1478776 - Part 10: Add internal VisualViewport resize/scroll events. r=botond,nika
The VisualViewport events are all nice and shiny, but unfortunately not quite
what is needed for the session store.

Firstly, the spec wants the "scroll" event to be fired only when the *relative*
offset between visual and layout viewport changes. The session store however
records the absolute offset and as such is interested in when *that* changes.

Secondly, again as per the spec the events don't bubble, and with the default
DOMEventTargetHelper implementation they don't escape the VisualViewport during
capturing, either. This means that any event listener must be added directly on
the VisualViewport itself in order to capture any events.

This might have been intended because the events use the same names as the
normal "scroll"/"resize" events, and as such you cannot specify separate event
listeners for VisualViewport and non-VisualViewport "scroll" events if both
events end up being dispatched to the same element (you can only try to filter
after the fact by looking at the originalTarget of the event).

At the same time, the VisualViewport is attached to the inner Window, and so
each time you navigate, you also get a different VisualViewport object.
All of this might be totally fine from the perspective of a page script, because
in that case you won't care anyway about what happens when the current page goes
away.

From the session store perspective on the other hand (especially Fennec's non-
e10s session store design), this is rather unfortunate because we don't want to
have to keep registering event listeners
a) manually for each subframe
b) each time the page navigates

The event target chain problem could be solved by letting the scroll events
escape the VisualViewport during the capturing phase (which the spec doesn't say
anything about), but this would mean that any scroll listener attached to a
window/browser/... that uses capturing will now catch both layout and visual
viewport scroll events.

In some cases this might even be beneficial, but in others (e.g. bug 1498812
comment 21) I'd like to specifically decide which kind of scroll event to
capture. Having to look at event.originalTarget to distinguish the two kinds
might be defensible in test code, but in case this distinction would be needed
in production code as well, given the existence of a C++-based filtering helper
in nsSessionStoreUtils for another use case where (scroll) events need to be
filtered, JS-based scroll event filtering might be a bad idea.

Additionally, in any case this wouldn't solve the fundamental conflict between
the spec and the session store about *when* the "scroll" event should be fired
in the first place.

Hence I'd like to introduce a separate set of events with distinct event names,
which will be dispatched according to the requirements of our internal users
(i.e. currently the session store). To avoid potential web compatibility issues
down the road, for now these events will be dispatched only to event listeners
registered in the system group (allowing *all* Chrome event listeners cannot be
done because checking the Chrome status of each event target might be too
expensive for frequently dispatched events).

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

--HG--
extra : moz-landing-system : lando
2018-12-20 22:14:42 +00:00
Jan Henning fb0460d033 Bug 1478776 - Part 9: Helper function for layout viewport scroll position in PresShell. r=botond
This changes the semantics of the relative visual viewport offset calculation in
the PresShell slightly, in that a missing root scroll frame will no longer
force the relative offset to zero, even if the visual viewport itself has a non-
zero scroll position [1].
On the other hand, the visual viewport's own relative offset calculations
already work that way today, in that layout and visual viewport scroll positions
are retrieved separately and then subtracted from one another regardless of
whether those values are actually valid or merely a fallback because the
PresShell/scroll frame weren't available.

[1] Though I'm not sure under what circumstances this could really be relevant.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 21:35:55 +00:00
Jan Henning c3352661fc Bug 1478776 - Part 8: Add an event flag for dispatching to system group only. r=smaug
The semantics of the VisualViewport resize/scroll events aren't quite what is
needed for internal browser usage, so we need a separate set of events that can
be used e.g. by the session store. To avoid future web compatibility issues,
that event should be kept internal, however none of the existing
options to achieve that are suitable:
- mNoContentDispatch can actually end up being dispatched to content after all
  and as per its comment preferably shouldn't be used any more for new features
- mOnlySystemGroupDispatchInContent would work perfectly, except that it
  shouldn't be used for frequent events, which the resize/scroll events
  arguably are
- mOnlyChromeDispatch doesn't work for the Desktop session store's content
  script, plus it might have the same performance problems as
  mOnlySystemGroupDispatchInContent

Therefore, I propose to introduce a new mOnlySystemGroupDispatch event flag,
which skips the comparatively expensive IsCurrentTargetChrome() check and relies
only on the event listener having been registered in the system group.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 21:35:39 +00:00
Jan Henning 29e0e9331a Bug 1478776 - Part 7: Tune scroll events to only fire when the *relative* offset changes. r=botond
Internally, Gecko stores and updates the *absolute* offset between the visual
viewport and the page, however the spec demands that the scroll event be fired
whenever the *relative* offset between visual and layout viewport changes.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 21:35:38 +00:00
Jan Henning 6011bbb22c Bug 1478776 - Part 6: Initial Visual Viewport event implementation. r=botond
The event rate throttling mechanism is modelled on the logic for "scroll" events
in nsGfxScrollFrame.cpp.

That is
1. When a request to fire an event is posted to the VisualViewport, we create a
   new runnable for this and register it with the RefreshDriver. If we already
   have a pending runnable, calling VisualViewport->Post...Event() becomes a
   no-op.
2. When the RefreshDriver is ready, it executes the runnable, which in turn
   fires the actual event and then cleans itself up.

To keep this patch manageable, we simply fire a scroll event every time the
stored visual viewport offset is changed. Because we are storing the absolute
offset of the viewport relative to the page, this behaviour doesn't match the
spec, which demands that scroll events are fired only when the relative offset
between visual and layout viewport changes. We'll fix this up in the next patch.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 21:35:26 +00:00
Jan Henning af9bb8e48e Bug 1478776 - Part 5: Define Visual Viewport event handlers. r=botond,Ehsan
As per https://wicg.github.io/visual-viewport/#the-visualviewport-interface.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 17:08:47 +00:00
Jan Henning dc15f822e0 Bug 1478776 - Part 4: Add basic tests for visual viewport events. r=botond
This will use the existing APZ basic pan/pinch-zoom tests to check that
scrolling/zooming will also generate the expected visual viewport events.

Because the various scroll-related events are throttled by the refresh driver
and only fire once per tick, merely flushing APZ repaints is no longer enough.
We now have to actually wait for the paints themselves, so we're sure that we've
had an opportunity to receive the corresponding events, too.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 21:35:04 +00:00
Jan Henning 3e9a58268b Bug 1478776 - Part 3: Forward todo/todo_is to APZ mochitests, too. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D14040

--HG--
extra : moz-landing-system : lando
2018-12-20 21:34:57 +00:00
Jan Henning 0455f90365 Bug 1478776 - Part 2: Add utility class for counting events. r=botond,masayuki
Differential Revision: https://phabricator.services.mozilla.com/D14039

--HG--
extra : moz-landing-system : lando
2018-12-20 21:34:50 +00:00
Jan Henning 7d3611429d Bug 1478776 - Part 1: Rewrite APZ panning test without callbacks. r=botond
I want to check that panning also triggers the appropriate scroll events, and
that will be easier without callbacks to worry about.
The test has been reorganised after the model given by helper_basic_zoom.html.

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

--HG--
extra : moz-landing-system : lando
2018-12-20 21:34:43 +00:00
Mark Banner bdad30d68b Bug 1500486 - QuantumBar: Handle loading of non-urls entered in the new address bar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D10346

--HG--
extra : moz-landing-system : lando
2018-12-21 16:58:47 +00:00
Eitan Isaacson 70e2a64ff1 Bug 1513912 - Null check return from TextToSpeech.getFeatures() r=agi
Differential Revision: https://phabricator.services.mozilla.com/D15158

--HG--
extra : moz-landing-system : lando
2018-12-21 15:28:05 +00:00
Shane Caraveo e194dff2bf Bug 1515153 - make osx attributions work with both utm and plain params, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D14884

--HG--
extra : moz-landing-system : lando
2018-12-21 16:46:20 +00:00
Matthew Noorenberghe 5b6cacf4cc Bug 1515427 - Remove #ifndef RELEASE_OR_BETA guard on formautofill license references. r=mhoye
Differential Revision: https://phabricator.services.mozilla.com/D15009

--HG--
extra : moz-landing-system : lando
2018-12-21 15:58:20 +00:00
Gurzau Raul d939455801 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-21 18:39:42 +02:00
Gurzau Raul 55697e5bce Merge inbound to mozilla-central. a=merge 2018-12-21 18:36:36 +02:00
Margareta Eliza Balazs 5cb5823e4f Backed out changeset 3a328e80b02c (bug 1510860) for failures e.g.: dom/tests/mochitest/general/test_storagePermissionsLimitForeign.html CLOSED TREE 2018-12-21 18:31:20 +02:00
Margareta Eliza Balazs d5a7e1c3a5 Backed out changeset 338f4fbbfddf (bug 1515665) for bc failures browser/components/sessionstore/test/browser_339445.js CLOSED TREE 2018-12-21 18:29:48 +02:00
Margareta Eliza Balazs b1bfef86d6 Backed out changeset 6745799b8cbf (bug 1500486) for X1 perma failures in browser/components/extensions/test/xpcshell/test_ext_url_overrides_newtab.js CLOSED TREE 2018-12-21 18:13:07 +02:00
Margareta Eliza Balazs be60f2ecdd Backed out changeset a9a84d2e19ef (bug 1515015) for X perma failures in toolkit/components/places/tests/unit/test_telemetry.js CLOSED TREE 2018-12-21 18:11:55 +02:00
Dão Gottwald efd44eae02 Bug 1515902 - Introduce panel-footer class to fix common color problem with footer buttons. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D15188

--HG--
rename : toolkit/themes/shared/close-icon.inc.css => toolkit/themes/shared/global.inc.css
extra : moz-landing-system : lando
2018-12-21 15:44:44 +00:00
Margareta Eliza Balazs 7ef930fffa Backed out changeset 2eab9d9bd89e (bug 1514655) for geckoview-junit perma failures NavigationDelegateTest.loadData_noMimeType CLOSED TREE 2018-12-21 15:34:27 +02:00
longsonr e160f38d5f Bug 1515607 - Move nsSVGFE into the mozilla::dom namespace r=dholbert 2018-12-21 12:32:35 +00:00
longsonr f68bd8c718 Bug 1515705 - Rename NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT as all SVG elements are now namespaced r=dholbert 2018-12-21 11:43:29 +00:00
Emilio Cobos Álvarez 7cd760932e Bug 1513749 - Deduplicate NodesFromRect and Element(s)FromPoint. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D14358

--HG--
extra : moz-landing-system : lando
2018-12-21 11:00:47 +00:00
Emilio Cobos Álvarez 019dbe4244 Bug 1513749 - Rename and make nodesFromRect infallible. r=mats
This way it has a more WebIDL-like signature, which will be helpful in a second.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 11:00:38 +00:00
Emilio Cobos Álvarez c9c94f0ee1 Bug 1513749 - Move NodesFromRectHelper to DocumentOrShadowRoot. r=mats
We'll factor the commont bits out in a bit.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 11:30:28 +00:00
Emilio Cobos Álvarez 99521806a2 Bug 1513749 - Modernize a bit nsLayoutUtils::GetFrameForPoint / GetFrameForArea. r=mats
Also add an IsElement check in GetElementFromPoint in the APZ code since I think
the element cast is unsound in presence of Shadow DOM.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 11:22:07 +00:00
Jan Varga 2c3d7e1bb6 Bug 1510410 - Enable Next Generation Local Storage Implementation on Nightly; r=asuth 2018-12-21 11:54:53 +01:00
Daniel Holbert 234ebbeea8 Bug 695385: Add a mochitest to validate that cross-origin svg filters are blocked. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D13844

--HG--
rename : layout/reftests/filters.svg => layout/svg/tests/filters.svg
extra : moz-landing-system : lando
2018-12-21 06:46:19 +00:00
Ehsan Akhgari eeab7cf802 Bug 1510860 - Ensure that the cookie service checks the content blocking allow list even for first-party cookies since that's required when we're blocking all cookies; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15109

--HG--
extra : moz-landing-system : lando
2018-12-21 11:47:18 +00:00
Ehsan Akhgari 0439cf3142 Bug 1515665 - Ensure that DOM Storage checks the content blocking allow list when performing storage access checks; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15110

--HG--
extra : moz-landing-system : lando
2018-12-21 11:53:03 +00:00
Mark Banner 1e2dcbea63 Bug 1500486 - QuantumBar: Handle loading of non-urls entered in the new address bar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D10346

--HG--
extra : moz-landing-system : lando
2018-12-21 14:31:08 +00:00
Andrew Halberstadt fea1d97f08 Bug 1436037 - [ci] Run mozbase and mozlint python-test tasks on OSX, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D14901

--HG--
extra : moz-landing-system : lando
2018-12-21 13:43:12 +00:00
Andrew Halberstadt 828485d8db Bug 1436037 - [taskgraph] Support OSX generic-worker in run-task, r=Callek
This enables OSX generic-worker based tasks to use the run-task script.

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

--HG--
extra : moz-landing-system : lando
2018-12-21 13:43:04 +00:00
Dão Gottwald a90b373483 Bug 1515907 - Remove styling for unused XUL window "dialog" class. r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D15189

--HG--
extra : moz-landing-system : lando
2018-12-21 13:39:18 +00:00
Marco Bonardo 3ebdf2f1a9 Bug 1515015 - Quantum Bar results are messed up. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D14960

--HG--
rename : toolkit/components/places/tests/unifiedcomplete/data/engine-suggestions.xml => browser/components/urlbar/tests/unit/data/engine-suggestions.xml
extra : moz-landing-system : lando
2018-12-21 13:38:00 +00:00