Commit Graph

15240 Commits

Author SHA1 Message Date
Mike Conley
a7db759450 Bug 1340842 - Add tests for FX_TAB_CLOSE_TIME_ANIM_MS and FX_TAB_CLOSE_TIME_NO_ANIM_MS probes. r=mossop
MozReview-Commit-ID: B9tLzrvBg04
2017-03-17 09:50:00 -04:00
Mike Conley
ffffc37dc6 Bug 1340842 - Allow BrowserTestUtils.removeTab to pass options along to tabbrowser's removeTab method. r=mossop
There were options already being passed to BrowserTestUtils.removeTab, with only
a single property being observed, "dontRemove". This caused BrowserTestUtils.removeTab
to return a Promise once a tab is removed, but didn't actually remove the tab (as the
calling test would be responsible for that themselves). This patch removes that option,
and adds a method to BrowserTestUtils called tabRemoved to use for that case instead.

The options being passed to removeTab are now forwarded along directly to tabbrowser's
removeTab method.

MozReview-Commit-ID: JzfZuoZmlJ0
2017-03-17 09:59:38 -04:00
Mike Conley
26fcbd4b37 Bug 1340842 - Add FX_TAB_CLOSE_TIME_ probes to measure how long it takes for tabs to close. r=liuche,mossop, data-review=liuche
We're adding histograms for both animated tab closing and non-animated tab closing to
avoid a needlessly bi-modal histogram.

MozReview-Commit-ID: J4MzsiwaLcT
2017-03-16 15:40:25 -04:00
Jared Wein
5a181760cc Bug 1348068 - Enable the key-spacing rule for eslint and fix the related issues. r=standard8
Running eslint with --fix didn't fix many of the issues. The majority here had to be fixed by hand but a significant majority of the issues were related to a few files that I was able to use find-and-replace with. I regret not making this in to separate commits of the hand-fixes and the fixes from --fix but I don't recall --fix fixing any of the issues.

MozReview-Commit-ID: ANyg2qfo3Qx
2017-03-21 14:29:43 -04:00
Zibi Braniecki
e1617486a8 Bug 1347314 - Migrate calls to ChromeRegistry::GetSelectedLocale to use LocaleService::GetAppLocale. r=jfkthame,Pike
In cases, where the caller is looking for the locale to be used for JS Intl API,
we can now replace it with `undefined` which causes JS Intl API to use the default
locale which since bug 1346674 is resolved to the app locale.

This allows us to remove a lot of calls for the app locale.

The remaining ones are split between `AsBCP47` and `AsLangTag`.
Here, the `AsLangTag` is used, as described in the API docs, for cases where
the language string is used for localization purposes, such as language negotaition
matching to our language resources etc.
`AsBCP47` is used when the returned value is handed over to ICU API.

MozReview-Commit-ID: DzmFEUvMq3N
2017-03-14 16:09:54 -07:00
Sebastian Hengst
1f6ea2382a Backed out changeset cc308a73ad05 (bug 1347314) for eslint failure in test_device.html. r=backout 2017-03-22 18:20:26 +01:00
Zibi Braniecki
a56e4c7360 Bug 1347314 - Migrate calls to ChromeRegistry::GetSelectedLocale to use LocaleService::GetAppLocale. r=jfkthame,Pike
In cases, where the caller is looking for the locale to be used for JS Intl API,
we can now replace it with `undefined` which causes JS Intl API to use the default
locale which since bug 1346674 is resolved to the app locale.

This allows us to remove a lot of calls for the app locale.

The remaining ones are split between `AsBCP47` and `AsLangTag`.
Here, the `AsLangTag` is used, as described in the API docs, for cases where
the language string is used for localization purposes, such as language negotaition
matching to our language resources etc.
`AsBCP47` is used when the returned value is handed over to ICU API.

MozReview-Commit-ID: DzmFEUvMq3N
2017-03-14 16:09:54 -07:00
Carsten "Tomcat" Book
98dea1732f Backed out changeset a983c5ce4bc3 (bug 1340842) 2017-03-22 16:40:06 +01:00
Carsten "Tomcat" Book
f5fa301515 Backed out changeset b3abd0e89699 (bug 1340842) 2017-03-22 16:40:02 +01:00
Carsten "Tomcat" Book
ec24576ec6 Backed out changeset 57ae2dd78f79 (bug 1340842) 2017-03-22 16:39:59 +01:00
Carsten "Tomcat" Book
ffcfd69b98 Backed out changeset d24bb78a585c (bug 1340842) 2017-03-22 16:39:55 +01:00
Carsten "Tomcat" Book
e3f67c6118 Merge mozilla-central to autoland 2017-03-22 16:11:34 +01:00
Mark Banner
c465d209d1 Bug 1345991 - SVG Image Elements aren't displayed in the Page Info view media list. r=florian
MozReview-Commit-ID: LlHwl2Kn1Vk
2017-03-20 23:40:44 +01:00
Sebastian Hengst
66cadd0d98 Backed out changeset fd87a4b1a4b5 (bug 1345991) for bustage. r=backout 2017-03-22 15:37:27 +01:00
Mark Banner
b27587b8a0 Bug 1345991 - SVG Image Elements aren't displayed in the Page Info view media list. r=florian
MozReview-Commit-ID: LlHwl2Kn1Vk
2017-03-20 23:40:44 +01:00
Mike Conley
3a093f3037 Bug 1340842 - Add FX_TAB_CLOSE_PERMIT_UNLOAD_TIME_MS probe to measure how long it takes to run permitUnload on a tab when asked to close. r=liuche,mossop, data-review=liuche
MozReview-Commit-ID: 1qvhY6g2p9w
2017-03-16 15:46:15 -04:00
Mike Conley
d10d5bd2ef Bug 1340842 - Add tests for FX_TAB_CLOSE_TIME_ANIM_MS and FX_TAB_CLOSE_TIME_NO_ANIM_MS probes. r=mossop
MozReview-Commit-ID: B9tLzrvBg04
2017-03-17 09:50:00 -04:00
Mike Conley
e46a0c52b7 Bug 1340842 - Allow BrowserTestUtils.removeTab to pass options along to tabbrowser's removeTab method. r=mossop
There were options already being passed to BrowserTestUtils.removeTab, with only
a single property being observed, "dontRemove". This caused BrowserTestUtils.removeTab
to return a Promise once a tab is removed, but didn't actually remove the tab (as the
calling test would be responsible for that themselves). This patch removes that option,
and adds a method to BrowserTestUtils called tabRemoved to use for that case instead.

The options being passed to removeTab are now forwarded along directly to tabbrowser's
removeTab method.

MozReview-Commit-ID: JzfZuoZmlJ0
2017-03-17 09:59:38 -04:00
Mike Conley
c3ffa889f7 Bug 1340842 - Add FX_TAB_CLOSE_TIME_ probes to measure how long it takes for tabs to close. r=liuche,mossop, data-review=liuche
We're adding histograms for both animated tab closing and non-animated tab closing to
avoid a needlessly bi-modal histogram.

MozReview-Commit-ID: J4MzsiwaLcT
2017-03-16 15:40:25 -04:00
Wes Kocher
54d9be6e9f Merge inbound to central, a=merge
MozReview-Commit-ID: Fq7B78wD7Wv
2017-03-17 11:03:59 -07:00
Carsten "Tomcat" Book
dfd22b262a Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
Carsten "Tomcat" Book
0cb5fec682 Backed out changeset 20537ebcebdb (bug 1303838) for eslint failure 2017-03-17 11:21:32 +01:00
BharatR123
48290256e9 Bug 1343827 - Removed icon for "Undo Closed Tab" and its references r=dao
MozReview-Commit-ID: 5RlLYy7O9yi

Removed all rules of #alltabs_undoCloseTab, class="menuitem-iconic" and the .png
images
2017-03-17 21:27:51 +05:30
Samael Wang
eb2cc4a6d2 Bug 1303838 - Switch to existing target tab when clicking links. r=smaug
Merge "DOMServiceWorkerFocusClient" & "DOMWebNotificationClicked"
to "DOMWindowFocus" event. Utilize the event to switch tab when
loading links to an existing target tab.

MozReview-Commit-ID: Hd1NkVkrJA1
2017-03-16 18:39:31 +08:00
Wes Kocher
9d63fa5dcd Merge m-c to inbound, a=merge
MozReview-Commit-ID: AuQEHTgSKcO
2017-03-16 14:07:10 -07:00
Michael Layzell
cf7103e163 Bug 1347983 - Part 1: Make forms submitted from a large-allocation page not leave the large-allocation process, r=smaug
MozReview-Commit-ID: 7SEdTJN9Xd2
2017-03-16 14:32:26 -04:00
Florian Quèze
c1bca211b8 Bug 1345294 - add an eslint rule to reject usage of {get,set}ComplexValue for nsISupportsString and suggest {get,set}StringPref instead, and make it pass, r=Mossop. 2017-03-16 19:26:02 +01:00
Florian Quèze
49d8db6821 Bug 1345294 - script generated patch (+ some hand cleanup) to replace {get,set}ComplexValue for nsISupportsString by {get,set}StringPref, r=Mossop. 2017-03-16 19:26:01 +01:00
Florian Quèze
e41c1d63d0 Bug 1347947 - Move static checking browser mochitests to their own folder, r=Gijs. 2017-03-16 19:26:01 +01:00
Carsten "Tomcat" Book
92b3168c96 merge mozilla-inbound to mozilla-central a=merge 2017-03-16 15:35:50 +01:00
Sebastian Hengst
c870743484 Backed out changeset 010ca7d23406 (bug 1256472) 2017-03-16 17:22:18 +01:00
meghana
d936287647 Bug 1346254 - Replaced promiseErrorPageLoaded with BrowserTestUtils.waitForErrorPage in browser_blockHPKP.js. r=johannh
MozReview-Commit-ID: 2JC9CHPXlow
2017-03-15 22:52:54 +05:30
meghana
0bf5efdf78 Bug 1346236 - Fixed incorrect learn more link on MOZILLA_PKIX_ERROR_KEY_PINNING_FAILURE in aboutNetError.xhtml. r=johannh
MozReview-Commit-ID: EUNk0wdI6DZ
2017-03-15 23:14:20 +05:30
Blake Kaplan
3811d33bcd Bug 1346286 - Remove CPOWs from browser_popupNotification_3.js. r=Gijs
MozReview-Commit-ID: IZunjQBZeD6
2017-03-09 17:29:08 -08:00
Blake Kaplan
195d4027e6 Bug 1346286 - Remove CPOWs from browser_bug1045809.js. r=Gijs
MozReview-Commit-ID: HN2vih432Ou
2017-03-09 17:14:00 -08:00
Blake Kaplan
8a64dad852 Bug 1346286 - Remove CPOWs from browser_aboutNetError.js. r=Gijs
MozReview-Commit-ID: 8famORaY5uA
2017-03-09 14:49:33 -08:00
Blake Kaplan
3afe46a8ba Bug 1346286 - Remove CPOWs from browser_aboutCertError.js. r=Gijs
MozReview-Commit-ID: A7y6UfyHut0
2017-03-09 14:38:02 -08:00
Blake Kaplan
883d20d321 Bug 1346286 - Remove CPOWs from browser_bug882977.js. r=Felipe
MozReview-Commit-ID: L55dGxD3tZ1
2017-03-09 11:23:27 -08:00
Blake Kaplan
38f0f7ae9e Bug 1346286 - Remove CPOWs from browser_bug822367.js r=Felipe
MozReview-Commit-ID: DHsQEyTgapN
2017-03-09 11:16:17 -08:00
Blake Kaplan
05889054d4 Bug 1346286 - Remove CPOWs from browser_bug749738.js. r=Felipe
MozReview-Commit-ID: 3gKvozefXY9
2017-03-09 10:33:05 -08:00
Florian Quèze
9fcb83b1c8 Bug 1325049 - Fix the global webrtc sharing indicator to work with multiple content processes, r=felipe. 2017-03-15 22:47:06 +01:00
Scott Wu
1d30884c66 Bug 1343707 - Make datetimepopup.xml binding attach lazily. r=mconley
MozReview-Commit-ID: C7LnrxIbU3K
2017-03-03 13:58:53 +08:00
Jared Wein
db85457041 Bug 1347329 - After splitting browser_selectpopup.js up, disable it on Linux per bug 1329991. r=mossop
MozReview-Commit-ID: 7ibIywvYsBn
2017-03-15 20:51:02 -04:00
Jared Wein
81c70bd5eb Bug 1347329 - Move the select tests to a forms subdirectory and split apart the color tests to their own file since the test was getting very long. r=mossop
MozReview-Commit-ID: IGjS2aiL4a2
2017-03-14 19:27:33 -04:00
Jared Wein
d8ed36d1c1 Bug 1347329 - Make sure that the nth-child index gets updated when recursing so that colors get applied correctly when optgroups are used. r=mossop
This problem only occurs when optgroups are involved since they introduce recursion in to the menu-building code and we weren't correctly passing state through
the recursion.

MozReview-Commit-ID: 514zcjgXbIY
2017-03-14 19:06:57 -04:00
Sebastian Hengst
dbf93f818e Backed out changeset 899f6ba2fe55 (bug 1347329) for failing browser_selectpopup_colors.js. r=backout 2017-03-16 00:25:57 +01:00
Sebastian Hengst
fc016fc356 Backed out changeset a84419a2e52d (bug 1347329) 2017-03-16 00:24:47 +01:00
Jared Wein
06880b49e3 Bug 1347329 - Move the select tests to a forms subdirectory and split apart the color tests to their own file since the test was getting very long. r=mossop
MozReview-Commit-ID: IGjS2aiL4a2
2017-03-14 19:27:33 -04:00
Jared Wein
16a27bd8ea Bug 1347329 - Make sure that the nth-child index gets updated when recursing so that colors get applied correctly when optgroups are used. r=mossop
This problem only occurs when optgroups are involved since they introduce recursion in to the menu-building code and we weren't correctly passing state through
the recursion.

MozReview-Commit-ID: 514zcjgXbIY
2017-03-14 19:06:57 -04:00
Jim Porter
8c24212591 Bug 1346671 - Enable the no-useless-concat eslint rule in toolkit/ r=jaws
MozReview-Commit-ID: 1a422BiLEhK
2017-03-13 17:34:24 -05:00