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

5508 Коммитов

Автор SHA1 Сообщение Дата
Wes Kocher 60785fce6d Merge inbound to central, a=merge
MozReview-Commit-ID: I54WGOLqHI2
2016-12-22 18:37:07 -08:00
Ryan Hunt 0da2f2a52c Bug 1312881 - Add a telemetry probe to track the max scrollY of a page. r=mconley data-review=bsmedberg
--HG--
extra : rebase_source : c575bf8da0ea6e3a732520f48a0f12a9d922646b
2016-12-14 13:21:45 -06:00
Ryan Hunt f8e537b751 Bug 1297867 - Add a telemetry probe to track the amount of scrolling in a page. r=mconley data-review=bsmedberg
--HG--
extra : rebase_source : adb84dea4dd2ed21da90404866bea56a6026cc4e
2016-12-14 13:19:52 -06:00
Masayuki Nakano 4f6e3ae44a Bug 1320467 <scrollbox>.lineScrollAmount should return average width or height r=mstange
Currently, <scrollbox>.lineScrollAmount returns its font height.  However, according to the other methods, <scrollbox> is designed for scrolling elements in it.  Additionally, old implementation declared that1 line is 1 element.  Therefore, this patch makes it returns avarage width or height of the children.

MozReview-Commit-ID: E9qfhHy5sTt

--HG--
extra : rebase_source : a85c632242e5824596e9363c80323f1c9a89b39a
2016-12-10 11:39:34 +09:00
Masayuki Nakano b1ff93bdf7 Bug 1320609 part.2 Rewrite test_mousescroll.xul with generator for async-scroll-aware r=mstange
test_mousescroll.xul becomes permanent orange due to the animation at handling wheel event.  Therefore, this patch rewrites it with generators.

Note that this removes |delta(X|Y) == 0| cases from testArrowScrollbox() because it doesn't cause wheel events, therefore, it's impossible to test without timer and it's not worthwhile to test the cases that no wheel events are fired.

Additionally, this adds todo to testArrowScrollBox() because |scrollPosition += px| in <scrollbox>.scrollByPixels doesn't work fine only on macOS with this test.  Even when the px is larger than its scrollSize, the result isn't set to scrollSize.  This issue shouldn't be the scope of bug 1320609, therefore, this patch makes it todo. (Of course, I don't see any problem with actual UI such as tabbar and bookmark menus.)

MozReview-Commit-ID: AmAf1YmgkBn

--HG--
extra : rebase_source : 7462845098d35da4c952048738e570a8a915b36a
2016-12-22 20:10:39 +09:00
Masayuki Nakano fa3151a9d8 Bug 1320609 part.1 wheel event handler of <scrollbox> should use |_smoothScrollByPixels| instead of |scrollByPixels| when the deltaMode is DOM_DELTA_LINE or DOM_DELTA_PAGE r=mstange
<scrollbox> should scroll its contents smoothly even if wheel device doesn't support high resolution scroll.

This patch makes the wheel event handler use |_smoothScrollByPixels| when deltaMode is DOM_DELTA_LINE or DOM_DELTA_PAGE.  The reason why ignoring DOM_DELTA_PIXEL is, such devices are typically supports high resolution scroll.  Therefore, <scrollbox> doesn't need to animate its scroll by itself.

However, |_smoothScrollByPixels| doesn't work fine without some additional fixes.

First, this patch doesn't stop pending scroll from |_smoothScrollByPixels| because discarding some pending scroll causes slower scroll.  Actually, when you turn mouse wheel faster, scroll amount becomes smaller without this fix.

Next, this patch adds continous scroll mode to |_scrollAnim| object.  If it's requested new animation during processing previous scroll, it keeps previous scroll amount and restart animation with new destination.  Additionally, accumulating the scroll distance as fractional value.  Therefore, it scrolls 3px when 1.5px scroll is requested twice.

Finally, this patch discards pending scrolls when user tries to scroll to reverse direction.  When user tries to scroll to reserse direction, the user must want to scroll the contents from current position rather than actual scroll destination.  Therefore, this patch discards pending scrolls in |_smoothScrollByPixels|.  Although, it might be better to handle this in |_scrollAnim|.  However, |_isScrolling| is not managed by it and changing the behavior in private method is safer than changing utility object (i.e., |_scrollAnim|).

Additionally, this patch fixes timestamp issue at callback of requestAnimationFrame().  Sometimes, the given timestamp is older than start time.  In that case, current code scrolls to reverse diretion.  Therefore, we should treat such old timestamp as same as start time.

MozReview-Commit-ID: DluWUN2VhVw

--HG--
extra : rebase_source : 067467444c7a0aee4d551410c50de3a8a97601c5
2016-12-22 20:04:35 +09:00
Michael Layzell 0fa642800b Bug 1315105 - Part 2: Implement <link rel=prerender> behind a pref, r=smaug
MozReview-Commit-ID: ARET98o1FTU

--HG--
extra : rebase_source : fd549baa1a4a180db1ca6701191f081033811d0f
2016-12-19 15:05:31 +08:00
Phil Ringnalda 4f5f9f3222 Merge m-i to m-c, a=merge
MozReview-Commit-ID: EI1fU13SR79
2016-12-20 20:15:20 -08:00
malayaleecoder 118a096748 Bug 1324067 - Clear the findBar value before test end. r=jmaher 2016-12-20 00:09:41 +05:30
Wes Kocher 584a2f0f62 Merge inbound to central, a=merge
MozReview-Commit-ID: Cr9L1dhIzP2
2016-12-20 11:41:57 -08:00
Jessica Jong 556aae19f0 Bug 1286182 - Implement the layout for <input type=date>. r=mconley,smaug
--HG--
rename : dom/html/test/forms/test_input_time_focus_blur_events.html => dom/html/test/forms/test_input_datetime_focus_blur_events.html
2016-12-19 00:50:00 +08:00
Wes Kocher 0b3c388b2f Merge m-c to autoland, a=merge 2016-12-20 11:48:21 -08:00
Masayuki Nakano 7436f01057 Bug 564411 Move all methods/attributes of nsIEditorIMESupport to nsIEditor r=smaug
Doing QI from nsIEditor to nsIEditorIMESupport doesn't make sense because editor should always support all methods and attributes of nsIEditorIMESupport (it does NOT mean that all nsIEditor implementation need to support IME).

This patch moves all of them to nsIEditor for avoiding redundant QIs.

MozReview-Commit-ID: DzIKuGHG4iy

--HG--
extra : rebase_source : cc5e9a6ae4572ebe461d9770ffa5c23d33dc8526
2016-12-20 21:47:31 +09:00
lochang e65e157c70 Bug 1323120 - Add license for Chromium and third party code in mortar project. r=gerv
--HG--
extra : rebase_source : ccdb16e7287fad3566587b73b1654252f017d36d
2016-12-13 00:52:00 -05:00
Ray Lin 5148fc1d9d Bug 1319569 - Remove unused timeThumb binding in videocontrols.xml and unreferenced statistics formatting styling from videocontrols.css. r=jaws
The timeThumb is no longer used since bug 1271765 and the statistics were removed by bug 1270853.

MozReview-Commit-ID: 3Pwl381IBdz
2016-12-16 02:22:00 -05:00
Gabriele Svelto 1b8ffd2807 Bug 1293656 - Send crash pings for content crashes complete with stack traces r=bsmedberg
* * *
Bug 1293656 - Fix the test_process_error.xul test
2016-10-19 12:51:29 +02:00
Carsten "Tomcat" Book a244c7fb4a merge mozilla-inbound to mozilla-central a=merge 2016-12-16 16:04:50 +01:00
Jared Wein 0070259e2a Bug 1323767 - Fix the indentation and inconsistent brace-style, and switch to using ES6 method definitions in videocontrols.xml. r=ralin
MozReview-Commit-ID: 9GNVgX5gZpc

--HG--
extra : rebase_source : 2f47a742d8486218041f5f717b209aa8f4d1d881
2016-12-15 12:29:04 -05:00
Ryan Kelly 3afd5ad0f3 Bug 1321687 - Improve documentation of security checks in WebChannel code. r=ehsan
--HG--
extra : amend_source : 6ea449ee935a4be6d9d69df66d065daf2ca84f6e
2016-12-01 18:46:00 -05:00
Scott Wu d9cd33f405 Bug 1323109 - Fixed date time pickers popup position; r=mconley
MozReview-Commit-ID: DuY4ZVyszBE

--HG--
extra : rebase_source : 68e42287c3526bffd5785c20ffd3c12ab3a7fe0b
2016-12-01 16:45:16 +08:00
Phil Ringnalda f680e72cc6 Merge m-i to m-c, a=merge
MozReview-Commit-ID: 4iKvEwhyJQJ
2016-12-15 17:47:41 -08:00
Gijs Kruitbosch cb6c0c81ac Bug 1322414 - part 2,3,4: use a separate 'primary' attribute for primary child browsers, r=bz,mconley
MozReview-Commit-ID: 2yb0WGFYBsH

--HG--
extra : rebase_source : 376171077c577e41e82cec5e994c425c6d9f2d80
extra : histedit_source : 39aad91381749a263042cd0452fe32019a1974b8
2016-12-09 09:23:24 -10:00
Carsten "Tomcat" Book 877ffa1db2 merge mozilla-inbound to mozilla-central a=merge 2016-12-15 14:17:53 +01:00
Matheus Longaray c0a7494d43 Bug 1319067 - Make the printing media section respect the font size. r=Gijs 2016-12-13 08:22:00 -05:00
Joel Maher 9f60f5a226 backout aba885aafee0210b1f063a423b1c0b3ce28d15f7 for intermittent bug 1272834
MozReview-Commit-ID: BTJ13wWojaI
2016-12-14 10:59:43 -05:00
Carsten "Tomcat" Book fd4709f9c1 merge mozilla-inbound to mozilla-central a=merge 2016-12-14 16:41:28 +01:00
Carsten "Tomcat" Book ed466535b0 Backed out changeset effd2d3a31e0 (bug 1283385i) for eslint failures 2016-12-14 09:42:27 +01:00
Carsten "Tomcat" Book 5937bbccd6 Backed out changeset 315469b40e6d (bug 1283385)
--HG--
rename : toolkit/themes/shared/datetimeinputpickers.css => toolkit/themes/shared/timepicker.css
2016-12-14 09:39:44 +01:00
Ray Lin d311f181a5 Bug 1323640 - declare domUtils in getAnonElementWithinVideoByAttribute function. r=jaws
MozReview-Commit-ID: E5YsKb0N1w3

--HG--
extra : rebase_source : b9b45ef257de2514db76c1bf23130a3398d26a80
2016-12-15 14:47:18 +08:00
Ray Lin 0397c97086 Bug 1321416 - remove border to get rid of scrollbar in top level synthetic video document. r=jaws
MozReview-Commit-ID: IckmhyasDmN

--HG--
extra : rebase_source : f16a5dd646da303e5d24d624560441857040c299
2016-12-14 17:57:49 +08:00
Scott Wu 03eac1039b Bug 1283385 - (2/2) Rename timepicker.css to datetimeinputpickers.css; r=mconley
MozReview-Commit-ID: AvLRWiY5y62

--HG--
rename : toolkit/themes/shared/timepicker.css => toolkit/themes/shared/datetimeinputpickers.css
extra : rebase_source : d181093e5d03897f1f36e495c282ab68f425caf5
2016-11-29 15:14:38 +08:00
Michael Layzell 5d13424101 Bug 1318767 - Part 2: Correctly swap web progress listeners when swapping frameloaders, r=dao
MozReview-Commit-ID: KbUd2Os5qac
2016-11-25 10:06:00 +08:00
Carsten "Tomcat" Book 46b566a7e0 Merge mozilla-central to autoland 2016-12-15 14:26:10 +01:00
Marco Bonardo 96cd40a062 Bug 1323600 - Some fields have been converted to properties and won't reset anymore when the binding is recreated. r=mossop
MozReview-Commit-ID: CHxBFpbW6aS

--HG--
extra : rebase_source : caa8602ca6e0648b8f52e8de9c430298528d3286
2016-12-15 00:58:21 +01:00
Scott Wu 54ad40c942 Bug 1283385 - (1/2) Implement date picker UI; r=mconley
MozReview-Commit-ID: 8uscU75qrkR

--HG--
extra : rebase_source : 3040a648c0e744e2a8f7b1b4d07ff02e0cee318b
2016-11-09 23:38:11 +08:00
Scott Wu 0e47e587a0 Bug 1283385 - (2/2) Rename timepicker.css to datetimeinputpickers.css; r=mconley
MozReview-Commit-ID: AvLRWiY5y62

--HG--
rename : toolkit/themes/shared/timepicker.css => toolkit/themes/shared/datetimeinputpickers.css
extra : rebase_source : d9be833cf257fb97272aebb85a71d7af87a61869
2016-11-29 15:14:38 +08:00
Scott Wu 7b525c00a2 Bug 1283385 - (1/2) Implement date picker UI; r=mconley
MozReview-Commit-ID: 8uscU75qrkR

--HG--
extra : rebase_source : d3907de7978c1e9241c696d5c2c73115bba455f8
2016-11-09 23:38:11 +08:00
Mark Banner 4f94e4bd68 Bug 1322343 - Enable no-unused-vars in the local scope in toolkit/.eslintrc.js. r=mossop
MozReview-Commit-ID: CiIsUjQzp4D

--HG--
extra : rebase_source : 1b98e88673625a52ef82c1fad5d56aec3e2e8e80
2016-11-09 22:06:32 +00:00
Michael Froman eb76cebbf2 Bug 1321628 - add ice restart and rollback counts to about:webrtc. r=drno,smaug
MozReview-Commit-ID: FmZMtwzvmhX

--HG--
extra : rebase_source : 701ec66eabfa0411c4b755fbec8f94b2d4c133b0
2016-11-23 11:48:04 -06:00
Ray Lin 14843cd6da Bug 1319301 - Part 2. add a regression test for controlsSpacer. r=jaws
MozReview-Commit-ID: 2yhiaZgReRQ

--HG--
extra : rebase_source : 0abace7a2d508e3374fcc0ebc34cfb001b75e8ab
2016-11-23 18:10:51 +08:00
Ray Lin a28321d288 Bug 1319301 - Part 1. fadeout grey spacer when play event is not triggered by controls. r=jaws
MozReview-Commit-ID: AouOiY9EGo8

--HG--
extra : rebase_source : f9bc781a3d87bee64d8b5b87e403b1d0c6a299dc
2016-11-22 11:48:04 +08:00
Tomer Cohen efa50e08cc Bug 902596 RTL Support for about:networking r=jaws
MozReview-Commit-ID: Fif7yAXfY6Y

--HG--
extra : rebase_source : cf7329eb5b0e2a187811a58df7916d401818f915
2016-12-14 02:19:21 +02:00
Carsten "Tomcat" Book 51614d31e4 Backed out changeset 059753ec9117 (bug 1315105) for test failures in own test
--HG--
extra : rebase_source : de2846d1205d3e885c1040379f2816629a925d22
2016-12-19 15:59:14 +01:00
Michael Layzell b5fd619e72 Bug 1315105 - Part 2: Implement <link rel=prerender> behind a pref, r=smaug
MozReview-Commit-ID: ARET98o1FTU
2016-12-19 15:05:31 +08:00
Jim Chen e9532b9a3f Bug 1321418 - Use GekcoBundle events in GeckoApp/BrowserApp; r=snorp r=sebastian r=gbrown
Bug 1321418 - 1. Use GekcoBundle events in GeckoApp; r=snorp r=sebastian

Switch GeckoApp to using GeckoBundle events everywhere. UI or Gecko
events are used if the event requires the UI or Gecko thread,
respectively, and background events are used for all other events.

There are changes to some other Java classes, such as SnackbarBuilder
and GeckoAccessibility, due to the switch to GeckoBundle.

For "Snackbar:Show", we need the global EventDispatcher because the
event can be sent to both GeckoApp and GeckoPreferences. Howveer, we
only want one listener registered at the same time, so we register and
unregister in GeckoApp's and GeckoPreferences's onPause and onResume
methods.

Bug 1321418 - 2. Use appropriate JS EventDispatcher to send GeckoApp events; r=snorp r=sebastian

Change JS code that sends events to GeckoApp to use either the global
EventDispatcher or the per-window EventDispatcher.

"Session:StatePurged" is not used so it's removed. "Gecko:Ready" in
geckoview.js is not necessary because it's only used for GeckoApp, so
it's removed from geckoview.js.

Bug 1321418 - 3. Use GeckoBundle events in BrowserApp; r=snorp r=sebastian

Switch BrowserApp to using GeckoBundle events, in a similar vein as
GeckoApp. UI or Gecko events are used if the event handlers required UI
or Gecko thread, respectively, and background events are used for all
other events.

Some other Java classes also have to be modified as a result of
switching to GeckoBundle.

Bug 1321418 - 4. Use global EventDispatcher to send BrowserApp events; r=snorp r=sebastian

Change JS code that sends events to BrowserApp to use the global
EventDispatcher instead of "Messaging".

Bug 1321418 - 5. Update usages of events in tests; r=gbrown

Update cases where we use or wait for events in tests.
2016-12-09 12:32:45 -05:00
Neil Deakin a21a0e4cb3 Bug 1313130, change menu shortcut handling so that Windows does not call preventDefault only when the accelerator key is down rather than when a key isn't handled, r=ksteuber 2016-12-06 15:25:09 -10:00
Cameron McCormack 5a2bc39008 Bug 1320000 - Part 1: Force xbl:children elements to be display:none. r=mrbkap
MozReview-Commit-ID: IbM0KAIGWqi
2016-12-01 09:25:18 +08:00
Tooru Fujisawa 08f4e91f3f Bug 1321229 - Remove legacy generator from toolkit/. r=Yoric 2016-12-01 18:12:15 +09:00
Timothy Guan-tin Chien f362306fab Bug 1317882 - Calculate overflow for the insecure field richlistitem in the constructor. r=MattN
MozReview-Commit-ID: 9OxrUyK38Ss
2016-11-29 21:18:58 -08:00
Carsten "Tomcat" Book 68202ee27c merge mozilla-inbound to mozilla-central a=merge 2016-11-29 16:47:18 +01:00