Commit Graph

551437 Commits

Author SHA1 Message Date
Sylvestre Ledru
d2ed1163fe Bug 1387002 - Replace .size() by .empty() when applicable in domv/canvas/WebGL* r=kvark
MozReview-Commit-ID: 3lebYmRI8TS

--HG--
extra : rebase_source : f61511c96a43342f9c53b3d90cd958bd7b926fcb
2017-08-03 12:01:38 +02:00
Sylvestre Ledru
d938e24c4c Bug 1387002 - Replace .size() by .empty() when applicable in webrtc & mtransport r=jesup
MozReview-Commit-ID: 4DyftBRDEcU

--HG--
extra : rebase_source : 92b00b313060c0631e087216c6a30b421b58199d
2017-08-04 09:36:19 +02:00
btian
1acd604a98 Bug 1384030 - Enable setting <input type=file>.files. r=smaug 2017-08-08 17:49:48 +08:00
Tim Huang
5e4b2337bc Bug 1369309 - Part 4: Modify the test case 'test_video_stats_resistfingerprinting.html'. r=cpearce, r=arthuredelstein
This patch modifies the test case 'test_video_stats_resistfingerprinting.html'
to check media statistics report spoofed values when fingerprinting resistance
is enabled.

This test will play a video and test the media statistics when the video is finished.
It will make sure all media statistics report correct spoofed values corresponding
to the play time of the video.

MozReview-Commit-ID: GpYewu7cIbY

--HG--
extra : rebase_source : 0eb771c4a9472436f990d53a042656a60bab22f6
2017-07-17 17:30:08 +08:00
Tim Huang
7af48eb06f Bug 1369309 - Part 3: Making the media statistics reports a spoofed value when fingerprinting resistance is enabled. r=cpearce, r=arthuredelstein
This patch makes the media statistics report values with a fixed frames per second
and a dynamic dropped ratio when resistance fingerprinting is enabled. The dropped
rate is decided by the video resolution that it will report a fixed dropped rate
when the video resolution is greater than 480p. And It will report a zero dropped
rate if the video is below or equal to 480p. In addition, it adds three new prefs
that allow us to change the value of frames per second, the dropped ratio and the
threshold of target video resolution. The three prefs are
'privacy.resistFingerprinting.video_frames_per_sec', 'privacy.resistFingerprinting.video_dropped_ratio'
and 'privacy.resistFingerprinting.target_video_res'. The default values of them
are 30, 5 and 480, which means 30 frames per second, 5 percent dropped ratio and
480p.

This also adds a new helper function 'nsContentUtils::ShouldResistFingerprinting(nsIDocument* aDoc)'
for checking whether fingerprinting resistance is enabled for a given docuemnt.
If it is a chrome document, this function will indicate that fingerprinting
resistance is not enabled regardless of the pref 'privacy.resistFingerprinting'.
If it is a content document, the result will depend on the pref.

MozReview-Commit-ID: FbSuRq6Zdnn

--HG--
extra : rebase_source : a62a1be19d9b38520f9eed7164fb258e3354d228
2017-07-17 15:13:55 +08:00
Tim Huang
f80792ee67 Bug 1369309 - Part 2: Add a test case to check whether media statistics has been spoofed correctly when 'privacy.resistFingerprinting' is true. r=jwwang, r=arthuredelstein
MozReview-Commit-ID: F6jNk58z7bH

--HG--
extra : rebase_source : 749d952286b12db14353b03b254fb74561174e40
2017-06-19 14:43:27 +08:00
Tim Huang
a6420be85e Bug 1369309 - Part 1: Spoofing media statistics to 0 when 'privacy.resistFingerprinting' is true. r=jwwang, r=arthuredelstein
MozReview-Commit-ID: FNALpUGFDTQ

--HG--
extra : rebase_source : 3ba5bfca6178ffdf15ceeeb66cb17e902e82b15a
2017-06-19 14:43:26 +08:00
Dão Gottwald
ba4b775805 Bug 1387496 - Clean up alert.xul styling. r=ntim
MozReview-Commit-ID: JjgdBEMBOEH

--HG--
rename : toolkit/themes/shared/alert-common.css => toolkit/themes/shared/alert.inc.css
extra : rebase_source : 3d9d2bc805d8453b0998c89c3987445507f96ca8
2017-08-10 15:42:55 +02:00
J.C. Jones
b491193ac3 Bug 1383799 - Cancel WebAuthn operations on tab-switch r=ttaubert
WebAuthn operations that are in-flight with authenticators must be cancelled
when switching tabs.

There's an Issue [1] opened with the WebAuthn spec for this already, but the
language is _not_ in spec. Still, it's necessary for security, spec or not.

This also matches how Chromium handles U2F operations during a tab switch.

[1] https://github.com/w3c/webauthn/issues/316

MozReview-Commit-ID: 6Qh9oC4pqys

--HG--
extra : rebase_source : ad1665b8140f74b1291f17994285e6146c4ec468
2017-08-04 12:34:18 -07:00
Mantaroh Yoshinaga
fc6de5f2b5 Bug 1383512 - Skip test_user_select.html on windows of opt and pgo. r=gbrown
This patch skip the test_user_select.html test since windows build of
pgo/opt will fail this test sometimes on try.
This is temporaly solution until clarifying the reason of it.
(We track it on same bug).

MozReview-Commit-ID: BlwdoYxNTxP

--HG--
extra : rebase_source : 7201de141da43a3fd395a7f8ba4fdfb9fad1e6bf
2017-08-09 12:55:58 +09:00
Jonathan Kingston
90991b9e6e Bug 1388907 - Add @mozilla.com and @testpilot- extension identifiers for SVG context-fill icons. r=jwatt
MozReview-Commit-ID: 7yHdgNfsrTc

--HG--
extra : rebase_source : 40601e03b5f214dc691aedc16c66e575d44456ae
2017-08-10 01:19:14 +01:00
Anthony Miyaguchi
4dac17d5ae Bug 1376605 - Refactor process payload assembly. r=gfritzsche
--HG--
extra : rebase_source : d5999242f5ea899a33327482e685491a03ed919e
2017-08-07 19:09:04 +02:00
Richard Marti
394044ba25 Bug 1389179 - Use an SVG icon for the navigation buttons. r=dao
--HG--
extra : rebase_source : 15bd52a0e4ee1be19ab5744b52c89cf899f3b07b
2017-08-10 20:04:36 +02:00
Dale Harvey
3586f12bd4 Bug 1388394 - Follow up to remove unneeded comment. r=dao
MozReview-Commit-ID: 5wUMU2Y4rIc

--HG--
extra : rebase_source : 71dd3525636e5648fbefd55b5444152c9911d623
2017-08-10 04:35:00 -04:00
flyingrub
795597a654 Bug 1388456 - Make the ping selection in about:telemetry clearer r=gfritzsche
Show the ping selector popup next to its toggle button in
about:telemetry.
Underline the fact that no archived pings are available.

MozReview-Commit-ID: CwSLOvuhXFn

--HG--
extra : rebase_source : 200b81af3abfea98beffa2c8c0460027a9c58f73
2017-08-09 01:31:28 +02:00
Alex Gaynor
2cc89c3380 Bug 1388454 - remove access to the com.apple.pasteboard.1 mach service from content processes; r=haik
MozReview-Commit-ID: EXb6UDYohZT

--HG--
extra : rebase_source : 321ebf0ce810b4fde9ce99acb56b15ca7acfbd8e
2017-08-08 13:51:48 -04:00
Alex Gaynor
b4ba668be6 Bug 1388360 - remove access to the com.apple.iconservices mach service from content processes; r=haik
MozReview-Commit-ID: D20alO2PKR0

--HG--
extra : rebase_source : 2bc809d161eb373220f1de174abc8032207b5dac
2017-08-08 10:15:16 -04:00
bechen@mozilla.com
264c2a6732 Bug 1385092 - Null check for the sParserWrapper. r=alwu
From the crash report and code logic, it is possible that the KillClearOnShutdown comes and the NS_XPCOM_SHUTDOWN_OBSERVER_ID never comes when getting obsercerService fail.
So add null check for the sParserWrapper and combine mShutdown to a new function.

MozReview-Commit-ID: Cj5ph2JrO7v

--HG--
extra : rebase_source : 4f9982a3e44e6f1a4db48739af92dc04cb0112d6
2017-08-09 17:30:52 +08:00
J.C. Jones
28cc1969ee Bug 1265472 - Add Telemetry to Web Authentication r=francois,keeler datareview=francois
This patch intends to obtain a 1) rough sense of the percentage of telemetry
population using Web Authentication over time, and 2) whether or not the
Authentication request was successful or errored out as a scalar. It also tracks
3) how long it takes for requests to complete as a histogram.

It counts Register (enrollment) and Sign (login) separately as we would
anticipate there being far, far more Sign uses than Register.

MozReview-Commit-ID: 8DFyKAG8XJw

--HG--
extra : rebase_source : 0c168b32b995ffffda804538d2b92009d4dc38c5
2017-08-09 12:22:48 -07:00
Andrew Halberstadt
f625fd5c37 Bug 1385352 - Enable 'mozilla/no-arbitrary-setTimeout' eslint rule on browser-chrome tests, r=standard8
MozReview-Commit-ID: 5lO0uAjHMsw

--HG--
extra : rebase_source : d72a88962ec8d843e7be99e25f710887f01b6e1a
2017-08-10 14:48:21 -04:00
Aryeh Gregor
ee2971cce8 Bug 1388775 - extractContents should copy nodes in tree order, not backwards; r=smaug
Per spec, Range.prototype.extractNodes() should copy the nodes in tree
order:

https://dom.spec.whatwg.org/#dom-range-extractcontents

Gecko instead copies them in reverse order.  This causes us to fail a
wpt MutationObserver test.

MozReview-Commit-ID: 8MYXGhDsJCd

--HG--
extra : rebase_source : 94fb2e96370e575906ba9927d904561744a1d7bb
2017-08-09 18:40:21 +03:00
Nicolas Chevobbe
54c956f344 Bug 1307931 - Make urls in output clickable; r=bgrins.
This passes an openLink callback to the Reps which handles the output.

MozReview-Commit-ID: L6q9wAWmwrp

--HG--
rename : devtools/client/webconsole/test/browser_webconsole_clickable_urls.js => devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_clickable_urls.js
extra : rebase_source : d439fe0596f0fdc2b3c529814bcd07c0c08c7200
2017-08-03 16:25:40 +02:00
Nicolas Chevobbe
49d16112c4 Bug 1307931 - devtools reps: update bundle to v0.12.1. r=bgrins
This required some changes in the ConsoleTable component. Since
it uses GripMessageBody, we need to pass it props that it might
need.

MozReview-Commit-ID: DNeBsmJqCFI

--HG--
extra : rebase_source : 34f4b6acc34fdd79b4111f07162ede46b96ae363
2017-08-10 19:02:56 +02:00
Kartikaya Gupta
b239f49bcb Bug 1370682 - Send DisplayItemClip's RoundedRect clips to WR. r=mstange
This was spot-tested by taking the
layout/reftests/border-radius-clipping-1.html testcase, removing the
border, and fiddling with the border-radius values. Without this patch,
the div always appears with rectangular corners but with this patch the
border-radius value is respected correctly.

MozReview-Commit-ID: 1wBFnJnYCwC

--HG--
extra : rebase_source : 542f814af9369fe712af76fc2a8c78de26c6227f
2017-08-10 14:00:08 -04:00
Kartikaya Gupta
96b110eb9e Bug 1370682 - Allow passing in LayoutDeviceSize to wr::ToBorderRadius for convenience. r=jrmuizel,mstange
There's no real reason to restrict this to LayerSize, since we use
use Layer and LayoutDevice coordinate spaces interchangeably for
webrender. With the templating of the function the compiler doesn't know
what type to use for {0, 0} so I added a new function to deal with that.

MozReview-Commit-ID: BA83Sy9UjYH

--HG--
extra : rebase_source : 15e5b31d0275628713c5eb584d622d22485dfda9
2017-08-10 14:00:01 -04:00
Sebastian Hengst
e5aac1d087 Backed out changeset bf603affd1e0 (bug 1388753) for failing browser-chrome's browser_947914_button_history.js. r=backout 2017-08-10 20:02:44 +02:00
Sebastian Hengst
c3b5851db2 Backed out changeset e4d1389a96ca (bug 1377967) because it blocks the backout of bug 1388753. r=backout 2017-08-10 20:01:44 +02:00
Gijs Kruitbosch
b584e361b6 Bug 1381556 - adjust panel widths to accommodate longer/wider content, r=mikedeboer
MozReview-Commit-ID: 6bOoRIfttEy

--HG--
extra : rebase_source : d7748809abe4ee617d0cb1a9d66a3e88728ecc63
2017-08-09 14:04:21 +01:00
Chris Peterson
801d7c7d38 Bug 1388978 - Suppress some more clang warnings in media/ffvpx. r=rillian
Since I am already poking around in ffvpxcommon.mozbuild's CFLAGS, also suppress these clang -Wvisibility and -Wstring-conversion warnings:

media/ffvpx/libavutil/dummy_funcs.c:83:34 [-Wvisibility] declaration of 'struct AVBufferRef' will not be visible outside of this function
media/ffvpx/libavutil/dummy_funcs.c:83:67 [-Wvisibility] declaration of 'struct AVFrame' will not be visible outside of this function
media/ffvpx/libavutil/utils.c:119:26 [-Wstring-conversion] implicit conversion turns string literal into bool: 'char [19]' to '_Bool'

And remove -Wno-logical-op-parentheses because clang does not currently report any -Wlogical-op-parentheses warnings for ffvpx.

MozReview-Commit-ID: 1kEwEHeD1PC

--HG--
extra : rebase_source : 133fa139f5389467919b88b96b8cbbf632bf002d
2017-08-10 09:55:42 -07:00
Chris Peterson
8107e99d4c Bug 1388978 - Fix -Wunknown-warning-option warnings in media/ffvpx. r=rillian
clang doesn't support gcc warning options -Wdiscarded-qualifiers or -Wmaybe-uninitialized in media/ffvpxcommon.mozbuild (added in bug 1369791), so only suppress those warnings for real gcc.

warning: unknown warning option '-Wno-discarded-qualifiers'; did you mean '-Wno-ignored-qualifiers'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]

MozReview-Commit-ID: JUEqa6AN59x

--HG--
extra : rebase_source : 45e3c43d57e58119170700f7a339d1f2dfacff2c
extra : source : ee4a75aeb3585719700e1700746ce55984eba6fa
2017-07-29 11:05:34 -07:00
Sam Foster
10784050f6 Bug 1373341 - Use --toolbarbutton-icon-fill-attention consistently; correct its values in light & dark themes. r=johannh
* Correct blue used as attention/accent color in the toolbar to #0a84ff (#45a1ff for brighttext) as specified.
* Use context-fill and context-stroke consistently in the animation svgs to pick up the current value of the attention color.
* Use --toolbarbutton-icon-fill-attention consistently to pick up the current value of the attention color.

MozReview-Commit-ID: 4NvzkQs66Nj

--HG--
extra : rebase_source : d519674faf0f4dd8a068a3ff3d4ef672bd03e7d8
2017-08-09 13:48:11 -07:00
Dale Harvey
1ce670eb2c Bug 1386718 - Reduce margin between icon and url in awesomebar. r=dao
MozReview-Commit-ID: 1gfP0IlVERv

--HG--
extra : rebase_source : 6da66fe627b9fd088f6de28ff42059578a6ee207
2017-08-10 17:11:30 +01:00
Andrew Halberstadt
10f8b7e161 Bug 1379151 - Add --fix and --edit to mozlint, r=standard8
While --fix previously worked with eslint, it is now more official (will show
up in the |mach lint --help|).  ESlint is still the only thing that implements
it, but we can implement it for flake8 using the `autopep8` module.

--edit is a new concept that will open an editor for each failing file to let
you fix the errors manually.  For now it is very naive (just opens the file),
and is only really useful if you have an editor integration for the linter(s).
But in the future I'd like to have editor-specific implementations for this.
For example, with vim, we can use -q to pass in an error file that will start
the editor pre-populated with a list of all errors that can then be easily
jumped to. Other editors may just open up to the line containing the error.

--fix and --edit can be used in conjunction with one another. Doing that means
only errors that can't be fixed automatically will show up in your editor.


MozReview-Commit-ID: 5JJJhMIrMIB

--HG--
extra : rebase_source : 2f78a77a91133d7fcc5620ecd5caa500decbce1b
2017-08-10 09:21:17 -04:00
Sebastian Hengst
015f8de9b5 Backed out changeset e5936d7c91ba (bug 1370682) for bustage: missing return statement at WebRenderTypes.h:361. r=backout on a CLOSED TREE 2017-08-10 18:30:00 +02:00
Sebastian Hengst
5d5e6ac39c Backed out changeset 972371dc461b (bug 1370682) 2017-08-10 18:28:55 +02:00
Ian Bicking
4f7c074ae7 Bug 1388805 - Export Screenshots 10.11.0 to Firefox; r=mossop
MozReview-Commit-ID: Ik7V2Wd6EOO

--HG--
extra : rebase_source : bb53244e415dedff77841238d6b9dabd5d84650c
2017-08-09 12:35:27 -05:00
Emilio Cobos Álvarez
82eac4bff7 Bug 1362338: Manually whitelist nsIAtom::Release in the root analysis. r=froydnj,sfink
This is the only approach that I managed to make work.

MozReview-Commit-ID: CUnkDoYN3di

--HG--
extra : rebase_source : 469912d015a403ef481685c617010613ea36b0b3
2017-08-10 12:20:10 +02:00
Emilio Cobos Álvarez
9f02c96781 Bug 1362338: Make nsIAtom::AddRef and nsIAtom::Release final. r=froydnj
MozReview-Commit-ID: CFWcSNocGIm

--HG--
extra : rebase_source : 6b8e28f76e2d4fff13f3a89ac68388a0b090bf74
2017-08-09 14:20:17 +02:00
Emilio Cobos Álvarez
76de548d1e Bug 1389113: Mark a few tests as passing. r=manishearth
MozReview-Commit-ID: GRn4709A3Nt

--HG--
extra : rebase_source : a8614e0ae52ad5c28a384439f357c6fbcf9f9b52
2017-08-10 17:09:59 +02:00
Kartikaya Gupta
7027ecc44b Bug 1370682 - Send DisplayItemClip's RoundedRect clips to WR. r=mstange
This was spot-tested by taking the
layout/reftests/border-radius-clipping-1.html testcase, removing the
border, and fiddling with the border-radius values. Without this patch,
the div always appears with rectangular corners but with this patch the
border-radius value is respected correctly.

MozReview-Commit-ID: Cu1K3rLjm0V

--HG--
extra : rebase_source : b5994faceb9dd7e52222714bdbc5b06886d26415
2017-08-09 19:19:03 -04:00
Kartikaya Gupta
9d778bce61 Bug 1370682 - Allow passing in LayoutDeviceSize to wr::ToBorderRadius for convenience. r=jrmuizel,mstange
There's no real reason to restrict this to LayerSize, since we use
use Layer and LayoutDevice coordinate spaces interchangeably for
webrender. With the templating of the function the compiler doesn't know
what type to use for {0, 0} so I added a new function to deal with that.

MozReview-Commit-ID: KyabB6P6LiA

--HG--
extra : rebase_source : d5fff8f21a17c433d3c8c580fdd3153140d61545
2017-08-09 19:19:03 -04:00
Gijs Kruitbosch
a824d7cc43 Bug 1383009 - fix logic for url bar autocomplete item positioning to allow it to position items in more cases, r=adw
MozReview-Commit-ID: 8D5WzfzoNOV

--HG--
extra : rebase_source : 555be4edbaf0df92658e8fe3726e57ee9bc40cc4
2017-08-08 21:16:44 +01:00
Gijs Kruitbosch
8b5c74561f Bug 1383009 - fix tests, BrowserUITelemetry and pocket to deal with the changes to the navbar, r=jaws
MozReview-Commit-ID: 9dZI5AI3kvP

--HG--
extra : rebase_source : 5be8516451149b34b1ac758436027fde10f623f5
2017-08-08 15:09:44 +01:00
Gijs Kruitbosch
ce10833235 Bug 1383009 - add flexible spacers and library button to the navbar by default, r=jaws
Because we generate IDs for special nodes, we should update the inDefaultState getter to actually consider
these nodes to match even when the ids differ. This wasn't an issue before because specials weren't in the
default set for any nodes.

MozReview-Commit-ID: AI85yt2LuJD

--HG--
extra : rebase_source : 819e27885148deb588c057c4e811371a87f1d2fc
2017-08-07 19:10:40 +01:00
Brad Werth
1dc1406e58 Bug 1371395 Part 3: Add a test of media query list serialization of valid, invalid, and malformed types. r=emilio
MozReview-Commit-ID: IzKmbIuCZ5c

--HG--
extra : rebase_source : b738aae806aedc4af87ff039f9ed3d838f9eec70
2017-08-07 12:42:03 -07:00
Brad Werth
702a7fc542 Bug 1371395 Part 2: Test media emulation of an unsupported type. r=jryans
MozReview-Commit-ID: L5tswjbGd97

--HG--
extra : rebase_source : 8b67fb05594c4330ee44c7d39ab2fb47c82a4342
2017-08-04 17:06:27 -07:00
Andrew Swan
7b6925f69a Bug 1388946 Part 2 Disable legacy extensions by default r=kmag
Also bump the xpi database schema version to force compatibility
recomputation (since we're not changing the application version number)

MozReview-Commit-ID: vVFIWmtN5v

--HG--
extra : rebase_source : 6e3e9a534aa390887573e538fa0bf14dd05dca50
2017-07-31 16:06:08 -07:00
Andrew Swan
51e91c702d Bug 1388946 Part 1 Fix test for default-disabled legacy extensions r=kmag
MozReview-Commit-ID: 6NK5SSq36EZ

--HG--
extra : rebase_source : a93e0dea52938f00ba9b6875bcdeb623022bb640
2017-08-09 20:00:35 -07:00
Sebastian Hengst
cc56cbe3ff merge mozilla-central to autoland. r=merge a=merge 2017-08-10 17:23:44 +02:00
Sebastian Hengst
4b79f3b23a merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: mN7ThnGN3X
2017-08-10 17:20:12 +02:00