Commit Graph

607235 Commits

Author SHA1 Message Date
Cosmin Sabou
0d26acc69a Backed out changeset bfaeacf41b77 (bug 1475903) for causing leaks at nsTArray_base. 2018-08-02 10:39:02 +03:00
Rob Wu
426550290d Bug 1446956 - Test that activeTab is not granted for bookmarks menu r=mixedpuppy
This ensures that the check that was introduced by bug 1370499 still
continues to work even though it was refactored by the previous commit.

MozReview-Commit-ID: GdbIPA6vxIB

--HG--
extra : rebase_source : 9246a1d6855de45eca8de5ee806d3a3e5ab7f0be
2018-07-19 16:35:22 +02:00
Rob Wu
13e9ee22fa Bug 1446956 - Grant access to the clicked tab in menus.onClicked r=mixedpuppy
MozReview-Commit-ID: 3mVWOEcZFYn

--HG--
extra : rebase_source : aec91b4c8b0770208ca7ce9972d1fcf877d53bb1
2018-07-18 22:04:58 +02:00
Henrik Skupin
0b8af68bd7 Bug 1337899 - [wdspec] Add "Execute Script" test for final comment. r=ato
MozReview-Commit-ID: GwsaEqpEqSz

--HG--
extra : rebase_source : 59b4cf3d1390ed373c0b8cfa44798b621ae9eec5
2018-08-01 16:51:55 +02:00
Henrik Skupin
ad47be0ed3 Bug 1337899 - [marionette] - Fix construction of script src. r=ato
Marionette builds the final javascript source to execute by
using the specified body, and wrapping it into an anonymouse
function.

Because all of this happens in a single line, a comment in
the last line of the script body will cause the source only
half-wise constructed, and the post-wrapping code assumed
as comment too.

MozReview-Commit-ID: CXtUKfr8jKO

--HG--
extra : rebase_source : 8f5e7bce8cb2bcd2d32409212003f9369f2f5a30
2018-08-01 16:48:02 +02:00
Cosmin Sabou
b1ef7da4b4 Backed out 2 changesets (bug 1337899) for linting opt failure on web-platform/meta/MANIFEST.json
Backed out changeset 998c36eeb67e (bug 1337899)
Backed out changeset 22c54c6cc370 (bug 1337899)
2018-08-02 10:06:18 +03:00
Sam Foster
30473eb88f Bug 1477106 - Use a pref to set default checkedness for "Save card to Firefox" and "Save address to Firefox" checkboxes. r=jaws
* Get default checkedness for the card persist checkbox from a new pref: dom.payments.defaults.saveCreditCard
* Get default checkedness for the address persist checkbox from a new pref: dom.payments.defaults.saveAddress
* Remember checked state from card page (only) so it doesnt change back when returning from add/edit address page
* Fix up card form tests to verify behavior in private/not-private windows, pref value, user opt-in for persisting the card
* Fix up address form tests to not conflate private/not-private windows with expected address persisting behaviour

MozReview-Commit-ID: GXMjqStlnlu

--HG--
extra : rebase_source : e267187766d221e4f865cb84065ea18231e7c012
2018-07-26 15:36:07 -07:00
Mantaroh Yoshinaga
e0d6bff4a9 Bug 1477862 - Add white-space property into tooltip's label. r=birtles
If the width of the devtool window is narrow, tooltip's label has a line break.
This patch will prevent it.

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

--HG--
extra : moz-landing-system : lando
2018-08-02 05:29:22 +00:00
Johann Hofmann
8c4398d5d2 Bug 1476217 - Part 5 - Disable content blocking sub-controls when content blocking is disabled. r=jaws
MozReview-Commit-ID: 2WIqsabEXWw

--HG--
extra : rebase_source : dcff3dd2aa1be9d6417924a188f951b7eb896bf7
2018-08-01 15:27:13 +02:00
Johann Hofmann
ca96cd7922 Bug 1476217 - Part 4 - Add tests for content blocking. r=jaws
MozReview-Commit-ID: HhiR25IY3a5

--HG--
extra : rebase_source : e6748121535bfd96c2e206643647f1ed528cac0c
2018-07-23 21:30:01 +02:00
Johann Hofmann
29a5bf3f01 Bug 1476217 - Part 3 - Add FastBlock to Content Blocking categories in about:preferences. r=flod,jaws
MozReview-Commit-ID: kgvPKHaHFZ

--HG--
extra : rebase_source : e20c21613ff97d0d954724c8faccdaec557249b6
2018-07-23 13:08:18 +02:00
Johann Hofmann
b4aec391d0 Bug 1476217 - Part 2 - Add a "Restore Defaults" button to Content Blocking preferences. r=flod,jaws
MozReview-Commit-ID: Dhiph7jmTbV

--HG--
extra : rebase_source : 9bc78c04c511d91396822451f540561b16e6855e
2018-07-23 13:07:29 +02:00
Johann Hofmann
26f3cc09b3 Bug 1476217 - Part 1 - Update Tracking Protection preferences for Content Blocking. r=flod,jaws
This adds a new "Content Blocking" UI in place of the Tracking Protection preferences.
The Tracking Protection UI is preserved and the new UI is behind a pref, for now. This
resulted in some inconveniences such as duplicate code or unwieldy long names, but
we're planning to remove one version (likely the TP UI) soon.

The CB preferences can contain several categories of blockers which will be added in
future patches. The first one, Tracking Protection, is added in this patch and offers
a replacement in functionality for the previous TP UI.

MozReview-Commit-ID: 5Oj2glZMTqC

--HG--
extra : rebase_source : 2a33770f21aa96f6ec753856675e6567330660b9
2018-07-23 13:02:47 +02:00
Mark Hammond
91d6bbfba6 Bug 1479998 - use PlacesUtils to get a tab's favicon rather than SessionStore. r=tcsc
MozReview-Commit-ID: DdYbW5r9JfF

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

--HG--
extra : moz-landing-system : lando
2018-08-01 16:41:26 +00:00
Zibi Braniecki
ee6c5d52d3 Bug 1475903 - Add mozIDOMLocalization API. r=mossop
In order to use DOMLocalization from C++ we need an XPIDL interface.
mozIDOMLocalization exposes the class and functionality allowing DocumentL10n to hook into it.

MozReview-Commit-ID: GPMhw61LPEg

--HG--
extra : rebase_source : 65d6e2b84379e78201f0c8b674630d1f485aaf8c
2018-06-22 13:14:23 -07:00
Henrik Skupin
59732ebc24 Bug 1337899 - [wdspec] Add "Execute Script" test for final comment. r=ato
MozReview-Commit-ID: GwsaEqpEqSz

--HG--
extra : rebase_source : a9823fdf86f28ce4cb41cbd22547be53d1fcf371
2018-08-01 16:51:55 +02:00
Henrik Skupin
1a0094134a Bug 1337899 - [marionette] - Fix construction of script src. r=ato
Marionette builds the final javascript source to execute by
using the specified body, and wrapping it into an anonymouse
function.

Because all of this happens in a single line, a comment in
the last line of the script body will cause the source only
half-wise constructed, and the post-wrapping code assumed
as comment too.

MozReview-Commit-ID: CXtUKfr8jKO

--HG--
extra : rebase_source : 931f1452202de6c8f441bbca0c217ce820189cf0
2018-08-01 16:48:02 +02:00
Brian Birtles
8da6404e4c Bug 1477354 - Add role=presentation to MenuItem wrapper element; r=Jamie
Currently we have a structure like the following:

  <div role="menu" id="toolbox-meatball-menu">
    <li class="menuitem">
      <button
        role="menuitemcheckbox"
        aria-checked="true">
        <span class="label">Dock to Bottom</span>
      </button>
    </li>
    <li class="menuitem">
      <button
        role="menuitemcheckbox">
        <span class="label">Dock to Right</span>
      </button>
    </li>
    <hr></hr>
    <li class="menuitem">
      <button
        class="command"
        role="menuitem">
        <span class="label">Documentation…</span>
      </button>
    </li>
  </div>

As a result there is an <li> wrapper element between the role="menuitem" element
at the role="menu" element. By setting role="presentation" on the <li> wrapper
we can produce a more sensible accessibility tree.

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

--HG--
extra : moz-landing-system : lando
2018-08-02 03:55:26 +00:00
Karl Tomlinson
defeece367 bug 1476231 remove now-unused libav from lgpllibs r=jya
MozReview-Commit-ID: AjFS01DBXqT

--HG--
extra : rebase_source : 09923977cb864066fc56502427104234bab90f7d
2018-07-16 17:35:34 +12:00
Karl Tomlinson
9687fa6c7d bug 1476231 switch FFTBlock from libav to ffvpx r=jya
This results in a speed improvement of about 6% on the "Convolution reverb"
webaudio-benchmark (measured with Linux x86_64 build on Skylake).

MozReview-Commit-ID: 94W6h3qE1tB

--HG--
extra : rebase_source : f6fe4f3fa0338a90a1e389450134027d9389af09
2018-07-14 14:44:43 +12:00
Karl Tomlinson
146c0a09dd bug 1476231 add accessor for ffvpx real DFT functions r=jya
MozReview-Commit-ID: AF2jl6ZnD4z

--HG--
extra : rebase_source : c7f6c60e3f1b282db5aef2f7b84f23b46734513f
2018-07-14 12:32:20 +12:00
Karl Tomlinson
c0bf3f57b9 bug 1476231 link ffmpeg real DFT functions r=jya
MozReview-Commit-ID: 1K5tta51rBB

--HG--
extra : rebase_source : 11355d14e69ca8f79c504274e4cdc78748af1a1d
2018-07-14 11:57:45 +12:00
Karl Tomlinson
b99ba5e660 bug 1476231 add ffmpeg floating point real FFT functions to ffvpx when MOZ_LIBAV_FFT is configured r=jya
New files are from ffmpeg n3.4-1-g587fadaef1.

MozReview-Commit-ID: E9eLPySCpCz

--HG--
rename : media/libav/libavcodec/avfft.c => media/ffvpx/libavcodec/avfft.c
rename : media/libav/libavcodec/avfft.h => media/ffvpx/libavcodec/avfft.h
rename : media/libav/libavcodec/dct.h => media/ffvpx/libavcodec/dct.h
rename : media/libav/libavcodec/fft-internal.h => media/ffvpx/libavcodec/fft-internal.h
rename : media/libav/libavcodec/fft.h => media/ffvpx/libavcodec/fft.h
rename : media/libav/libavcodec/fft_float.c => media/ffvpx/libavcodec/fft_float.c
rename : media/libav/libavcodec/fft_template.c => media/ffvpx/libavcodec/fft_template.c
rename : media/libav/libavcodec/rdft.c => media/ffvpx/libavcodec/rdft.c
rename : media/libav/libavcodec/rdft.h => media/ffvpx/libavcodec/rdft.h
rename : media/libav/libavcodec/x86/fft.asm => media/ffvpx/libavcodec/x86/fft.asm
rename : media/libav/libavcodec/x86/fft.h => media/ffvpx/libavcodec/x86/fft.h
rename : media/libav/libavcodec/x86/fft_init.c => media/ffvpx/libavcodec/x86/fft_init.c
extra : rebase_source : 35a960b3248bb23dbf56c19baad91b665094fbac
2018-07-15 20:08:27 +12:00
Karl Tomlinson
2ab37ac350 bug 1476231 remove unnecessary x86/cpuid.s, which does not exist in libav-11.3 r=jya
MozReview-Commit-ID: Ldani0i3n2e

--HG--
extra : rebase_source : 97a18b49d3810fc85951a29667fe6945f8a36259
2018-07-07 17:57:01 +12:00
Kartikaya Gupta
5090ab5988 Bug 1368603 - Fix intermittent scrollbar drag test failure on Linux. r=botond
On Linux, when synthesizing mousemove events interleaved with button
press/release events, the caller is responsible for waiting for the
mousemove events be dispatched before attempting to synthesize the
press/release buttons, otherwise the events can be delivered by the OS
out of order. This updates a few tests to ensure this is done correctly.

MozReview-Commit-ID: 42HkqTCWToP

--HG--
extra : rebase_source : 57fbc84bcfbed345d8f6d90aaadb3399e691894e
2018-08-01 23:25:05 -04:00
Kartikaya Gupta
a17fda2acb Bug 1479277 - Don't try to send APZ messages after teardown. r=botond
MozReview-Commit-ID: 8l0h197hfTj

--HG--
extra : rebase_source : a65b07f66a05b9ec54aa859fa0d9384061332120
2018-07-30 10:00:34 -04:00
Andreea Pavel
7c754d1621 Backed out changeset fbbb0327f0f1 (bug 1475903) for failing intl/l10n/test/test_mozdomlocalization.js 2018-08-02 06:14:05 +03:00
Abdoulaye O. Ly
c45c4fbe32 Bug 1458066 - Implement ability to move a selection of tabs within the same window through drag and drop. r=jaws
MozReview-Commit-ID: A3t0CAgrI5Z

--HG--
rename : browser/base/content/test/general/browser_tabReorder.js => browser/base/content/test/tabs/browser_tabReorder.js
extra : rebase_source : d3c329ab3ff02bdcae03cbd749ac83a0e34a9512
2018-07-23 19:01:17 +00:00
Tom Ritter
a0749a18ce Bug 1479506 Propogate group symbol into upload-symbols task r=Callek
MozReview-Commit-ID: 6KC60mdPI6F

--HG--
extra : rebase_source : 012b090de02500dfcc7c310f51199c1e9d82281a
2018-07-30 12:20:35 -05:00
Chris Pearce
2e3c4bd9af Bug 1478208 - Implement HTMLMediaElement.allowedToPlay. r=alwu,bz
Various web authors have expressed desire to know in advance whether autoplay
will work.

They want this in order to avoid paying the price for downloading media that
won't play. Or they want to take other action such as showing a poster image
instead.

This is of particular interest to Firefox, as we're planning on showing a
prompt to ask the user whether they would like a site to play. If sites want to
determine whether they can autoplay but avoid the prompt showing, they won't be
able to just call play() in Firefox and see whether it works, as that would
likely show the prompt if the user doesn't already have a stored permission.

We've been working out a spec here:
https://github.com/whatwg/html/issues/3617#issuecomment-398613484

This implements what is the consensus to date there;
HTMLMediaElement.allowedToPlay, which returns true when a play() call would not
be blocked with NotAllowedError by autoplay blocking policies.

MozReview-Commit-ID: AkBu0G7uCJ0

--HG--
extra : rebase_source : 3f31db79aa1e570fdd9fc7062d0ddac7c96a8931
2018-07-25 14:25:17 +12:00
Xidorn Quan
ea042b2ab2 Bug 1478455 - Add overflow-wrap: normal for table to html.css. r=dbaron
This would fix this bug as well as webcompat/web-bugs#17900.

The argument for this to be a reasonable change is that, table cells can
never shrink below the min intrinsic size, so overflow-wrap: break-word
doesn't make any sense in table when it didn't affect intrinsic size.
So this change basically revert the behavior of bug 1472386 for tables
which seems to be the biggest problem so far.

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

--HG--
extra : moz-landing-system : lando
2018-08-02 01:18:26 +00:00
Kyle Machulis
e8ad4d6c8a Bug 1450164 - Don't update URIs on history adds on docshells that are being shut down; r=bzbarsky
If we add to history on a docshell that is being shut down, add
history entry but skip trying to load the new URI.

MozReview-Commit-ID: JCF9muhxbFd

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

--HG--
extra : moz-landing-system : lando
2018-08-02 00:51:09 +00:00
Zibi Braniecki
0ce3ff104d Bug 1475903 - Add mozIDOMLocalization API. r=mossop
In order to use DOMLocalization from C++ we need an XPIDL interface.
mozIDOMLocalization exposes the class and functionality allowing DocumentL10n to hook into it.

MozReview-Commit-ID: GPMhw61LPEg

--HG--
extra : rebase_source : 62d5909d9db8858c2ad1b4234d6f9b9be8da7efd
2018-06-22 13:14:23 -07:00
Xidorn Quan
8421040c69 Bug 1479995 - Rename ScrollbarStyles to ScrollStyles. r=mstange
This change also renames several related functions, as well as fields,
and the header is moved into EXPORTS.mozilla given it is defined under
mozilla namespace.

MozReview-Commit-ID: LqCdcW8fmUN

--HG--
rename : layout/base/ScrollbarStyles.cpp => layout/base/ScrollStyles.cpp
rename : layout/base/ScrollbarStyles.h => layout/base/ScrollStyles.h
extra : rebase_source : 8933f3bca88d5db4b9508e3947f695ecf7511b3e
2018-08-01 16:14:26 +10:00
alwu
c3ae952e6e Bug 1466926 - part3 : add test. r=kmag
MozReview-Commit-ID: 50Eo65ZFkhF

--HG--
extra : rebase_source : d5f01b7936abeaffc5dc20e8448c7ff0cc7fcf6f
2018-07-10 14:29:22 -07:00
alwu
e3159f95dd Bug 1466926 - part2 : add a new preference to control autoplay from background script. r=kmag
MozReview-Commit-ID: K4fX7gumON

--HG--
extra : rebase_source : 480e0052a920d573135358ee1a0fb562ce7e30e1
2018-07-31 09:03:31 -07:00
alwu
81ae6fd494 Bug 1466926 - part1 : always allow extension background script to autoplay. r=cpearce
In present web extension design (both Firefox and Chrome), background script can autoplay.
We don't want to break this design, so we would always allow it to autoplay.

MozReview-Commit-ID: 9BfWgll7PNx

--HG--
extra : rebase_source : 7996daa06c31a84a2aea9008daa9bddfcde98c74
2018-07-10 10:37:33 -07:00
Andreea Pavel
e3d83161a1 Backed out changeset d69e19bad6c1 (bug 1477106) for eslint failure at builds/worker/checkouts/gecko/browser/components/payments/content/paymentDialogFrameScript.js 2018-08-02 02:11:57 +03:00
Sam Foster
5275a24aca Bug 1477106 - Use a pref to set default checkedness for "Save card to Firefox" and "Save address to Firefox" checkboxes. r=jaws
* Get default checkedness for the card persist checkbox from a new pref: dom.payments.defaults.saveCreditCard
* Get default checkedness for the address persist checkbox from a new pref: dom.payments.defaults.saveAddress
* Remember checked state from card page (only) so it doesnt change back when returning from add/edit address page
* Fix up card form tests to verify behavior in private/not-private windows, pref value, user opt-in for persisting the card
* Fix up address form tests to not conflate private/not-private windows with expected address persisting behaviour

MozReview-Commit-ID: GXMjqStlnlu

--HG--
extra : rebase_source : eb5931bff4ba348503144139d3f7f625e0a4af91
2018-07-26 15:36:07 -07:00
Rob Wu
2edcbfa7c8 Bug 1417052 - Use unique keyword in browser_ext_omnibox.js r=aswan
Manually verified using the STR from
https://bugzilla.mozilla.org/show_bug.cgi?id=1417052#c47

I am not re-enabling the test by default because the same test file is
reported to have another intermittent (bug 1416103).

MozReview-Commit-ID: 1xsyjMMby1H

--HG--
extra : rebase_source : 67080c8d7d7d804bf66aa40b577486c68dcaeb4b
2018-08-01 13:49:27 +02:00
Brian Birtles
575af8cffc Bug 1473211 - Stop using string concatenation for string IDs in MeatballMenu; r=jdescottes
Using the full string each time, although more verbose, allows us to easily
search for string IDs and see where they are used.

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

--HG--
extra : moz-landing-system : lando
2018-08-01 13:26:53 +00:00
dvarga
09eac64963 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-02 01:19:44 +03:00
dvarga
e487e6e564 Merge inbound to mozilla-central. a=merge 2018-08-02 01:09:38 +03:00
dvarga
d050f46b93 Merge autoland to mozilla-central. a=merge 2018-08-02 01:07:53 +03:00
Brian Grinstead
d2ba8811dc Bug 1479543 - Expose getBoxObjectFor on Document instead of XULDocument;r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D2570

--HG--
extra : moz-landing-system : lando
2018-08-01 22:00:44 +00:00
L10n Bumper Bot
3e1a118720 no bug - Bumping Fennec l10n changesets DONTBUILD r=release a=l10n-bump
en-CA -> ['android', 'android-api-16', 'android-multilocale']
lij -> ['android', 'android-api-16', 'android-multilocale']
2018-08-01 11:04:05 -07:00
Dorel Luca
d0a0ae30d5 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-01 12:51:56 +03:00
Andrea Marchesini
6c0e1e4469 Bug 1479519 - WPT for Clear-Site-Data executionContexts, r=smaug 2018-08-01 09:01:40 +02:00
Paul Bone
7e1a1e1400 Bug 1479360 - Share and optimize bump-pointer allocation code r=sfink
--HG--
extra : rebase_source : d1fed866371f8ff6698e2d8dbf103199778fe1d4
extra : histedit_source : aa09c06e71b94e0f59b787795d2b760f81830d42%2C76fa097963924f79e13187c2dfa9dcf6a46f491d
2018-08-01 14:51:40 +10:00
Andrea Marchesini
44ce53c72e Bug 1476592 - Remove the cache from nsCSPContext - part 2 - sendViolationReports parameter, r=ckerschb, r=aosmond 2018-08-01 06:35:24 +02:00