Commit Graph

551467 Commits

Author SHA1 Message Date
Wes Kocher
47df5726ac Backed out 6 changesets (bug 1275856) for failures in test_interfaces.html and test_all_synthetic_events.html a=backout
Backed out changeset d229d269ac55 (bug 1275856)
Backed out changeset 2fb8d23f1ece (bug 1275856)
Backed out changeset 210e8d6d5f85 (bug 1275856)
Backed out changeset 38739c5a3ae8 (bug 1275856)
Backed out changeset 1c8e6dd99100 (bug 1275856)
Backed out changeset 407dc5f8de5b (bug 1275856)

MozReview-Commit-ID: CeTwTrzfY2P
2017-08-10 16:32:12 -07:00
Brad Werth
4e918570ee Bug 1387243 Part 1: Split nsDocument::EndLoad into a part that runs unconditionally, and a part that runs only when there is a matching BeginLoad call. r=bz
MozReview-Commit-ID: 8Pn6i2f0cez

--HG--
extra : rebase_source : 21897c0ea16d263c297783a6393ee7725c1106c9
2017-08-03 16:27:22 -07:00
Doug Thayer
a70aac6a11 Bug 1388748 - Don't resize histogram ranges on init r=gfritzsche
We were using std::vector::assign, which resizes the vector to
match the incoming data. This isn't what we want, as ranges_ has
already been sized to bucket_count_ + 1. Instead, just use a
copy.

MozReview-Commit-ID: EGuW5jj7Rpq

--HG--
extra : rebase_source : 616d61fc27c7e43c22ea69e11e070ba958bf20a9
2017-08-09 10:21:09 -07:00
Wes Kocher
3c7cc8f012 Backed out changeset d4cc2f1e5c48 (bug 1387077) for windows debug crashtest failures a=backout
MozReview-Commit-ID: kEMoucDCJY
2017-08-10 15:46:38 -07:00
Thom Chiovoloni
9c7fb28561 Bug 1372927 - Show mobile bookmarks folder in places organizer for sync users even if they have no mobile bookmarks. r=markh
This commit also makes a change to test_ensureMobileQuery in test_sync_utils.js
so that it actually runs (previously it had a typo in an import path that was
imported in a try/catch).

MozReview-Commit-ID: Kj8vqKpFi51

--HG--
extra : rebase_source : 48ac8f203bd800fce3128693ba5627ce13b3f4c9
2017-08-08 17:56:33 -04:00
Bryce Van Dyk
2132f1c772 Bug 1275856 - Expand MediaRecorder tests to check stack traces when MediaRecorderErrorEvent is fired. r=jib
MozReview-Commit-ID: 6NnaHt24ecz

--HG--
extra : rebase_source : db836fef72f63ae469f6672362e7418e045f8cb5
2017-08-09 19:55:54 +12:00
Bryce Van Dyk
575792962a Bug 1275856 - Capture MediaRecorder DOMExceptions early in order to capture JS traces. r=jib
In order to expose the JS stack on aync exceptions from the MediaRecorder,
these exceptions must be created at the time of the operation which led to the
exception. E.g. during the start() operation. This changeset creates the
exceptions ahead of time in order to expose the JS stack traces.

MozReview-Commit-ID: HgDJrpjgidD

--HG--
extra : rebase_source : e7ad0b2a30ac2e7161d3805a22b3873a7382b43b
2017-08-07 09:49:24 +12:00
Bryce Van Dyk
f571e0f7e0 Bug 1275856- Update tests to reflect new MediaRecorderErrorEvent. r=jib
MediaRecorderErrorEvent is now fired in response to async errors in the
MediaRecorder. This event wraps a DOMException and tests need to be updated to
reflect this new behaviour.

MozReview-Commit-ID: JIjIZlJJ8PE

--HG--
extra : rebase_source : f9667b8a1b2a82959624831f3ef5109c19fccbd6
2017-07-28 09:04:11 +12:00
Bryce Van Dyk
d30ae6e711 Bug 1275856 - Remove now unused RecrodErrorEvent. r=jib,smaug
MozReview-Commit-ID: GK7L2U6sZSS

--HG--
extra : rebase_source : e906a6deca9167f30d3448dbae0460bfdd0235ce
2017-08-04 11:41:22 +12:00
Bryce Van Dyk
a9924d1aba Bug 1275856 - Fire MediaRecorderErrorEvent in media recorder. r=jib
The MediaRecorder is current not behaving as per the spec in regards to async
errors. The spec states that in such a scenario a MediaRecorderErrorEvent which
wraps a DOMException should be fired. This changeset updates the recorder to do
so.

MozReview-Commit-ID: xt4ipCmbiu

--HG--
extra : rebase_source : 50124e6c878438a84c8a440bf79e50b3b7da3998
2017-08-07 09:48:42 +12:00
Bryce Van Dyk
02f1e4cbb7 Bug 1275856 - Add MediaRecorderErrorEvent webidl files and update moz.build. r=jib,smaug
This adds the webidl definition of the MediaRecorderErrorEvent given in the
spec. It also updates the build system to give us generated C++ code for this
event.

MozReview-Commit-ID: Bi1f0tD9iUj

--HG--
extra : rebase_source : 0cb10aab1a8a8fd7720c5d069cf4ac65817a9855
2017-07-25 08:46:59 +12:00
Gijs Kruitbosch
2de2d3a7e9 Bug 1377967 - make middle clicking history, bookmarks and closed tabs items work correctly, r=mikedeboer
MozReview-Commit-ID: VQUuQHyCXi

--HG--
extra : rebase_source : 8f2edec2e0de448d4814b254f5c2458aa645be32
2017-08-10 23:05:33 +01:00
Gijs Kruitbosch
35bd3646b1 Bug 1388753 - unbreak bookmarks/history item clicks and tidy up code in browserPlacesViews.js, r=mikedeboer
MozReview-Commit-ID: 1vjP6IeIiPz

--HG--
extra : rebase_source : 9d07a961de011395366f2736eab62e5bbcbcd19d
2017-08-10 23:04:54 +01:00
Blake Kaplan
a7cc551058 Bug 1375243 - Explicitly create a URI object to avoid sync URI fixups from the content process. r=Gijs
I'm not entirely certain that we need to pass the charset here, but it seems
like it might be needed based on my reading of the code.

MozReview-Commit-ID: En9voHg8ti9

--HG--
extra : rebase_source : 8595baf25b650b2382f781f809a294af0a9c182c
2017-08-08 16:00:25 -07:00
Mike Hommey
889e867916 Bug 1388981 - Fixup EVENT__SIZEOF_OFF_T. r=jld
There are two problems related with EVENT__SIZEOF_OFF_T:
- When building Firefox with -D_FILE_OFFSET_BITS=64, off_t is 64 bits,
  but the in-tree event-config.h still defines EVENT__SIZEOF_OFF_T to 4.
- When building Firefox *without* -D_FILE_OFFSET_BITS=64 (the default)
  against a system libevent that was built with -D_FILE_OFFSET_BITS=64,
  its event-config.h defines EVENT__SIZEOF_OFF_T to 8, which then
  doesn't match off_t size.

For the latter, libevent actually defines its own off_t type, that
callers are supposed to use instead of off_t. So that's what our
static_assert should be checking.

--HG--
extra : rebase_source : 4231530e3c260b2cdd53e15206d48ef0779e394c
2017-08-10 14:03:08 +09:00
Mike Hommey
ccd43013f6 Bug 1388713 - Change how elfhack looks for the bss section. r=froydnj
In bug 635961, elfhack was made to (ab)use the bss section as a
temporary space for a pointer. To find it, it scanned writable PT_LOAD
segments to find one that has a different file and memory size,
indicating the presence of .bss. This usually works fine, but when
the binary is linked with lld and relro is enabled, the end of the
file-backed part of the PT_LOAD segment containing the .bss section
ends up in the RELRO segment, making that location read-only and
subsequently making the elfhacked binary crash when it tries to restore
the .bss to a clean state, because it's not actually writing in the .bss
section: lld page aligns it after the RELRO segment.

So instead of scanning PT_LOAD segments, we scan for SHT_NOBITS
sections that are not SHF_TLS (i.e. not .tbss).

--HG--
extra : rebase_source : f18c43897fd0139aa8535f983e13eb785088cb18
2017-08-10 07:55:55 +09:00
Mike Conley
f41361f1d2 Bug 1387583 - Avoid leaking a window in SelectParentHelper. r=jaws
MozReview-Commit-ID: 6YILe7gi2fZ

--HG--
extra : rebase_source : 96ed7c7b960b5a5e4da5c699d1f6fab09fecb9c0
2017-08-10 16:26:37 -04:00
Jared Wein
8880224f6b Bug 1387077 - Reimplement Pocket animation in the Page Action area. r=adw
MozReview-Commit-ID: 5pJ96un8W5t

--HG--
extra : rebase_source : bef396788013f8ed60d72b01bf59e34e01d36209
2017-08-08 11:56:49 -04:00
Brian Stack
7cdf3d96ac Bug 1370343 - Update action task metadata to be more useful r=dustin
MozReview-Commit-ID: 2OAkAlA6sW4

--HG--
extra : rebase_source : 819cbc71229d52f0bf67b75ccee1755939007218
2017-08-09 16:56:02 -07:00
Brian Stack
95f9a0f17d Bug 1370343 - Remove dashes from names in actions files r=dustin
MozReview-Commit-ID: Qhzf5UMxhF

--HG--
rename : taskcluster/taskgraph/actions/add-new-jobs.py => taskcluster/taskgraph/actions/add_new_jobs.py
rename : taskcluster/taskgraph/actions/test-retrigger-action.py => taskcluster/taskgraph/actions/mochitest_retrigger.py
extra : rebase_source : bee8f336652c94a9659ad6d81f488f7fb3a939de
2017-08-09 16:33:53 -07:00
Brian Stack
724d5303bc Bug 1370343 - Update mochitest actions to be up to the new spec r=dustin
MozReview-Commit-ID: ItpfzhvqnN5

--HG--
extra : rebase_source : 4b43c0905b14c0bf6689a1d4e4c581e75a3b18cb
2017-08-09 16:30:07 -07:00
Brian Stack
1d997f4054 Bug 1370343 - Make add-new-tasks context be for groups rather than tasks r=dustin
MozReview-Commit-ID: SxIRKBORON

--HG--
extra : rebase_source : 1529957e2456eb9da6ac33721e0047a367f5f70b
2017-08-09 14:21:04 -07:00
Sylvestre Ledru
8c03b39a29 Bug 1387002 - Replace .size() by .empty() when applicable in xpcom/ r=froydnj
MozReview-Commit-ID: LWzpVGVV7Py

--HG--
extra : rebase_source : 1e3aa342a096afcdd194b1272ac693b225081599
2017-08-03 12:08:32 +02:00
Sylvestre Ledru
29a95df74d Bug 1387002 - Replace .size() by .empty() when applicable in profiler/ r=njn
MozReview-Commit-ID: 275AVJyhejr

--HG--
extra : rebase_source : b7281214b30b44d51f2d7869b4faf590f3a41ed5
2017-08-03 12:08:04 +02:00
Sylvestre Ledru
3ba96071c8 Bug 1387002 - Replace .size() by .empty() when applicable in crashreporter/ r=ted
MozReview-Commit-ID: DNh3Pe3FYxG

--HG--
extra : rebase_source : e9239ccfcd470e2536b27420bc5f5b0d8c0eca5f
2017-08-03 12:07:24 +02:00
Sylvestre Ledru
22a57591b0 Bug 1387002 - Replace .size() by .empty() when applicable in mfbt r=froydnj
MozReview-Commit-ID: 9S5oZQkykKv

--HG--
extra : rebase_source : dfc6b9bccb3a388486efb7179a5864b19e0952ec
2017-08-03 12:07:07 +02:00
Sylvestre Ledru
b68c15fce4 Bug 1387002 - Replace .size() by .empty() when applicable in layout/tables/ r=kats
MozReview-Commit-ID: 2O9BJcQSRIY

--HG--
extra : rebase_source : 1e406bc767116999a80325c9daff2e9a640437a7
2017-08-03 12:06:35 +02:00
Sylvestre Ledru
1441227f14 Bug 1387002 - Replace .size() by .empty() when applicable in dom/media/webspeech/ r=padenot
MozReview-Commit-ID: 6gS9NBbn4wv

--HG--
extra : rebase_source : 249400421cb95b6980cf8962ecd22ac365f32335
2017-08-03 12:05:50 +02:00
Sylvestre Ledru
8382a92592 Bug 1387002 - Replace .size() by .empty() when applicable in gfx/ r=nical
MozReview-Commit-ID: BIrMZHj6BBZ

--HG--
extra : rebase_source : df064bc9628d3a78c153f2455fa4861a95abca8e
2017-08-03 12:02:35 +02:00
Sylvestre Ledru
9ce875d87a Bug 1387002 - Replace .size() by .empty() when applicable in gmp r=cpearce
MozReview-Commit-ID: HhYJ6BK4oOG

--HG--
extra : rebase_source : 8177ad33ebafafc27ba2f809743cfd2c223a10d7
2017-08-04 09:09:38 +02:00
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