Commit graph

904 commits

Author SHA1 Message Date
Andrew Swan
c60b71854e Bug 1369577 Part 1 Rename SingletonEventManager to EventManager r=kmag
MozReview-Commit-ID: 7nsYWdSTJCG

--HG--
extra : rebase_source : 22cf5ee36dfa27e121a5c577bce2fd0189ccb164
2017-06-09 13:49:07 -07:00
Bob Silverberg
247cf78259 Bug 1376888 - pageAction popup telemetry does not report the correct times, r=kmag
Move the call to TelemetryStopwatch.finish to after the contentReady promise of the PanelPopup resolves.

MozReview-Commit-ID: F1hfaDHVuJi

--HG--
extra : rebase_source : 772057cd8b0fe13197b2816f1cbfb93a436e8046
extra : source : ec6575fd33c91cec6cb8cd395fa22318011a6db2
2017-06-28 13:28:15 -07:00
Bob Silverberg
460568b25e Bug 1374237 - Part 3: Declare all top-level functions in browser API files files via const., r=mixedpuppy
Also changed some function names to attempt to guarantee uniqueness across API files.

MozReview-Commit-ID: FU5JU1lRHzn

--HG--
extra : rebase_source : 4fdda100649f1bf604f6d5445aa04ce561859964
2017-06-21 16:13:00 -04:00
Bob Silverberg
bb1231853d Bug 1374237 - Part 1: Uniquify the name of the convert functions in ext-cookies.js and ext-bookmarks.js, r=mixedpuppy
Also declare all top-level functions in those files via const.

MozReview-Commit-ID: FsIEHVeotX8

--HG--
extra : rebase_source : 8257fac9824fddb78bf79c6d45eb16f6c0797603
2017-06-21 14:19:39 -04:00
Bob Silverberg
c6b128dddf Bug 1373011 - Re-enable browser/components/extensions/test/browser/browser_ext_windows_events.js, r=aswan,zombie
We intermittently receive an extra onFocusChanged event with a windowId of browser.windows.WINDOW_ID_NONE
when a window is closed. The test has been updated to ignore one of these events.

MozReview-Commit-ID: 8O1YvoKBvkH

--HG--
extra : rebase_source : 77b00e11d5244aab0bfafd32f2d88fa3174422fc
2017-06-16 12:25:36 -04:00
Bob Silverberg
3457de183e Bug 1376003 - Address intermittent browser_ext_pageAction_telemetry.js, r=mixedpuppy
MozReview-Commit-ID: IkBQ7PcSMwC

--HG--
extra : rebase_source : 27ba88a31fccb937ec673ae9e01d9100e709700d
2017-06-27 12:12:07 -07:00
Carsten "Tomcat" Book
45f2e51f0a Merge mozilla-central to autoland 2017-06-28 13:47:29 +02:00
Carsten "Tomcat" Book
7918eeee02 merge mozilla-inbound to mozilla-central a=merge 2017-06-28 13:23:29 +02:00
Thomas Wisniewski
e29009081a Bug 1287928 - Update browser.history.onVisited to use the title from the onVisit event. r=mixedpuppy
MozReview-Commit-ID: 8aEbR1PE5XX

--HG--
extra : rebase_source : c0abb36c677ef9d9fa4d82bfd55dcdcb31a73104
2017-06-20 12:06:12 -04:00
Thomas Wisniewski
9e63f14612 Bug 1343236 - Add support for linkText to contextMenus.OnClickData. r=mixedpuppy
MozReview-Commit-ID: B0s5sPztciH
2017-06-20 17:38:18 -04:00
Gijs Kruitbosch
0a11de7e87 Bug 1352120 - fix theming for the star icon, fix theming dealing with empty string icon urls, r=jaws
When debugging the test failures in this test, I noticed that the info() messages indicated we *were* using
moz-extension icon references even when we shouldn't be - they just didn't include the 'fox.svg' bit.
When pausing in the debugger, you can see that all the buttons are blank - we don't load any icon in this case.

This seemed bad, so I updated the test to actually check if we're using a moz-extension URI at all,
and then updated the implementation to actually make it work.

MozReview-Commit-ID: GGXaivJrzxj

--HG--
extra : rebase_source : a64bed37e1fb27c164a0543a0465038d251c709d
2017-06-22 13:08:52 +01:00
Andy McKay
8feb30008a bug 1334691 consolidate a couple of tests down r=bsilverberg
MozReview-Commit-ID: KrlCtNdlKja

--HG--
extra : rebase_source : 5eb77420d329975bdb5b80efd5b2e9a3b9c12d2a
2017-06-02 15:34:46 -07:00
Christoph Kerschbaumer
1b0622cda9 Bug 1375023 - Have switchToTabHavingURI() provide the correct triggeringPrincipal. r=gijs,aswan 2017-06-25 14:03:06 +02:00
Kris Maglione
b9b5dda147 Bug 1365821: Request animation frame on the correct window before checking details. r=me
MozReview-Commit-ID: 708VQuF065d

--HG--
extra : rebase_source : fdf6787b0106d01fb524fa28813d0a11695cd691
2017-06-23 19:18:15 -07:00
Joel Maher
307c2ec53b Bug 1351638 - Intermittent browser_ext_contextMenus_icons.js. temporarily disable on win/opt. r=gbrown
MozReview-Commit-ID: GETsYtCjw5y
2017-06-23 10:29:39 -04:00
Florian Quèze
7375dcec46 Bug 1374282 - script generated patch to remove generators from add_task in browser/ and toolkit/, r=Mossop. 2017-06-22 12:51:43 +02:00
Wes Kocher
bb24138b9d Merge m-c to inbound, a=merge
MozReview-Commit-ID: CaSKFN9T7N4
2017-06-21 18:05:27 -07:00
Wes Kocher
ac0fd2038c Merge inbound to m-c a=merge
MozReview-Commit-ID: 3LXFVwSoMvs
2017-06-21 17:58:17 -07:00
Kris Maglione
30e4348236 Bug 1373293: Follow-up: Fix failing xpcshell test. r=me
MozReview-Commit-ID: 52X7bw6jlvu

--HG--
extra : rebase_source : c24e7e3d9deb858bd295a01bc2a0d150e27a7bc7
2017-06-21 14:10:22 -07:00
Nathan Froyd
452dc60022 Bug 1372670 - part 4 - use nsIThreadManager::dispatchToMainThread more from JS; r=florian
We did an automated conversion for many of these in another bug, but
these instances were either missed or have been added since then.
2017-06-21 12:59:28 -04:00
Luca Greco
1e852ced0c Bug 1347108 - Reduce the amount of time to show up a WebExtensions DevTools panel. r=aswan,bgrins
MozReview-Commit-ID: LJl8VJNErnz

--HG--
extra : rebase_source : aef91625b185ffe9e58ea1a5a70a6f763607505c
2017-06-08 17:10:07 +02:00
Matthew Wein
e5c60df5dc Bug 1329242 - Add unit tests for browser_action.theme_icons r=mixedpuppy
MozReview-Commit-ID: BDPa4RsFfl7

--HG--
extra : rebase_source : 9170a1e08b9e087873d4351db44d22c0de882c8f
2017-06-27 15:23:05 -07:00
Matthew Wein
20f84fa972 Bug 1329242 - Add support for browser_action.theme_icons r=mixedpuppy
MozReview-Commit-ID: HvfUQZzBQWq

--HG--
extra : rebase_source : 689b5bbd8c6774aff3f870a7c627e9f6a797c8c7
2017-06-27 15:23:35 -07:00
Bob Silverberg
06e954de4b Bug 1297167 - Part 2: Add telemetry probes for BrowserAction popups, r=bsmedberg,kmag
Add histogram for WEBEXT_BROWSERACTION_POPUP_OPEN_MS to track the amount of time it takes to open a browserAction popup.
Add histogram for WEBEXT_BROWSERACTION_POPUP_PRELOAD_RESULT_COUNT to track how often a popup preload results in a popup being shown, vs a popup being cancelled, both after hover and after mousedown.

MozReview-Commit-ID: L8xlSJxgTzX

--HG--
extra : rebase_source : 843e5d3780a9d854f0bde6dc2352191527047297
extra : source : 230078ffcde7a20a9d839779aef4656a028cc4f9
2017-05-03 11:12:03 -04:00
Bob Silverberg
c112a180ec Bug 1297167 - Part 1: Add telemetry probe for PageAction open timing, r=bsmedberg,kmag
MozReview-Commit-ID: 44xIqcFZXLO

--HG--
extra : rebase_source : 9d6f9a4ed03fed14877a163407294e3a48c640ba
extra : source : 9ecc91067d723f7cd3dbdb38fae022e3465be243
2017-05-03 08:28:34 -04:00
Gijs Kruitbosch
cf239a7857 Bug 1370482 - use longer timeout for browser_ext_sidebarAction.js, r=mikedeboer
MozReview-Commit-ID: Fp9rXZlwfI6

--HG--
extra : rebase_source : e70fc0ee2863abf09e3e8bfb4597912e66fd0ab0
2017-06-19 16:17:27 +01:00
Mike de Boer
f7e1f14006 Bug 1370580 - Part 1 - Ensure that the overflow rules are set the exact same way for the temporary panel as for the appMenu panel. r=Gijs
These rules are set explicitly to allow the two views to be displayed next to
each other briefly when the slide-in transition starts.
This patch also applies the last remaining photon styles to the temporary panel,
which is used by the new Library widget as well.

MozReview-Commit-ID: 45aYzVHwRYv

--HG--
extra : rebase_source : 0bf4fc4effc9de9e431ee50dfcf5fc7206e252cf
2017-06-16 15:41:57 +02:00
Paolo Amadini
585fbe6cec Bug 1242505 - Detect unhandled rejections of native Promises in browser-chrome tests. r=Mossop
The browser-chrome test suite now detects and reports unhandled rejections of native Promises, in addition to those created by Promise.jsm. The whitelisting mechanism is updated to use primarily the PromiseTestUtils.expectUncaughtRejection function. Tests will fail if a rejection that is not whitelisted occurs, or if a whitelisted rejection does not occur anymore.

MozReview-Commit-ID: 1beGB5GG8Ty

--HG--
extra : rebase_source : b6573f8e2001f91d0e5a50f6376b191459549e94
extra : intermediate-source : 0411e687044ecc7b56684196238e6e6e68a9d685
extra : source : 8d53be05afc59519c5ce8cfae96d284a972fda71
2017-06-18 08:05:06 +01:00
Sebastian Hengst
be35e9d97b Backed out changeset af176d040fad (bug 1370580) for frequently failing browser_ext_sidebarAction.js on Linux debug. r=backout a=backout
MozReview-Commit-ID: AwnMjAQTdmC
2017-06-17 23:18:55 +02:00
Markus Stange
9653029d65 Bug 1365400 - Add all profiler features to the enum list, and a test. r=kmag,njn
The source of truth for this list is in the PROFILER_FOR_EACH_FEATURE macro.

MozReview-Commit-ID: 13qppZKVi1r

--HG--
extra : rebase_source : 8f1ffdada1f73d2659ca9ed676be2fd3783e27f6
2017-06-16 14:52:30 -04:00
Mike de Boer
5df9078641 Bug 1370580 - Part 1 - Ensure that the overflow rules are set the exact same way for the temporary panel as for the appMenu panel. r=Gijs
These rules are set explicitly to allow the two views to be displayed next to
each other briefly when the slide-in transition starts.
This patch also applies the last remaining photon styles to the temporary panel,
which is used by the new Library widget as well.

MozReview-Commit-ID: 45aYzVHwRYv

--HG--
extra : rebase_source : 0bf4fc4effc9de9e431ee50dfcf5fc7206e252cf
2017-06-16 15:41:57 +02:00
Sebastian Hengst
a4809151b2 Backed out changeset d6be7dc56cc5 (bug 1370580) for failing test-oop-extensions/browser_ext_browserAction_popup_resize.js. r=backout 2017-06-15 19:24:39 +02:00
Mike de Boer
5704197fbf Bug 1370580 - Part 1 - Ensure that the overflow rules are set the exact same way for the temporary panel as for the appMenu panel. r=Gijs
These rules are set explicitly to allow the two views to be displayed next to
each other briefly when the slide-in transition starts.
This patch also applies the last remaining photon styles to the temporary panel,
which is used by the new Library widget as well.

MozReview-Commit-ID: 45aYzVHwRYv

--HG--
extra : rebase_source : f142e3dbba0d70effe129dad43f139e494070d82
2017-06-15 12:49:18 +02:00
Gijs Kruitbosch
3e1354e6aa Bug 1372309 - force height of overflow panel when testing size of resizing popups, r=aswan
MozReview-Commit-ID: BK6z60Isd06

--HG--
extra : rebase_source : 1674e0510a565aa7e4c50a34e01a6f89336982e1
2017-06-13 17:48:03 +01:00
Julian Descottes
a7015fc300 Bug 1367425 - Use DevToolsShim in webextensions codebase;r=mixedpuppy
Use DevToolsShim to access devtools APIs from webextensions code.
For webextensions tests using DevTools, tests are accessing DevToolsShim.gDevTools
which is fine for test purposes.

MozReview-Commit-ID: 66gFV98xvpf

--HG--
extra : rebase_source : 05734afae4368c5d7e4682b5fae1b8f3e4417220
2017-05-26 15:48:15 +02:00
Wes Kocher
101940382d Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: K0rvhhOLins
2017-06-12 17:13:12 -07:00
Tushar Saini (:shatur)
525b384ceb Bug 1287852 - Mark tabs.highlight as unsupported in schema. r=kmag,zombie
MozReview-Commit-ID: JKLWwECmGVw

--HG--
extra : rebase_source : aaa596641189e95be6300c073753f41ada4af35e
2017-05-29 13:44:52 +05:30
Gijs Kruitbosch
f6cc57a0a9 Bug 1354109 - update WebExtensions code for Photon, r=kmag
MozReview-Commit-ID: 8nHvyafxwV1

--HG--
extra : rebase_source : b15866245d242dda7f907256c8308e6a36954933
2017-05-31 18:08:52 +01:00
Kris Maglione
b31e211aa2 Bug 1368289: Simplify frameloader global metadata tagging. r=mixedpuppy
MozReview-Commit-ID: 1hgTtWysmya

--HG--
extra : rebase_source : 1ef46a61bd805e9bf0573ed22db005217afb5478
2017-05-27 17:30:53 -07:00
Tomislav Jovanovic
fdcf0c075f Bug 1333403 - Part 3: Fix using browser.menus from multiple contexts r=kmag
MozReview-Commit-ID: XlP72cr0VT

--HG--
extra : rebase_source : bbd135dfbc9531f33b732617c81ac86bbb7a6f45
2017-04-25 23:51:26 +02:00
Tomislav Jovanovic
fc1fbb5770 Bug 1333403 - Part 2: Implement browser.menus as alias for contextMenus r=kmag
MozReview-Commit-ID: JPaKsOyavDb

--HG--
rename : browser/components/extensions/ext-c-contextMenus.js => browser/components/extensions/ext-c-menus.js
rename : browser/components/extensions/ext-contextMenus.js => browser/components/extensions/ext-menus.js
rename : browser/components/extensions/schemas/context_menus.json => browser/components/extensions/schemas/menus.json
rename : browser/components/extensions/schemas/context_menus_internal.json => browser/components/extensions/schemas/menus_internal.json
rename : browser/components/extensions/test/browser/browser_ext_contextMenus_chrome.js => browser/components/extensions/test/browser/browser_ext_menus.js
extra : rebase_source : cfdc20e9bbec7fb93d7055925d9b3037d3ea1501
2017-06-10 16:43:20 +02:00
Sebastian Hengst
7f39e1a3f2 Backed out changeset cfc47df74537 (bug 1333403)
--HG--
rename : browser/components/extensions/ext-c-menus.js => browser/components/extensions/ext-c-contextMenus.js
rename : browser/components/extensions/ext-menus.js => browser/components/extensions/ext-contextMenus.js
rename : browser/components/extensions/schemas/menus.json => browser/components/extensions/schemas/context_menus.json
rename : browser/components/extensions/schemas/menus_internal.json => browser/components/extensions/schemas/context_menus_internal.json
rename : browser/components/extensions/test/browser/browser_ext_menus.js => browser/components/extensions/test/browser/browser_ext_contextMenus_chrome.js
2017-06-10 16:06:44 +02:00
Sebastian Hengst
ddda5460bc Backed out changeset d842c744941e (bug 1333403) 2017-06-10 16:06:12 +02:00
Tomislav Jovanovic
05b61a9cc0 Bug 1333403 - Part 3: Fix using browser.menus from multiple contexts r=kmag
MozReview-Commit-ID: XlP72cr0VT

--HG--
extra : rebase_source : fb2ad1fe054aaedeecb7006aef62cb442d4899ab
2017-04-25 23:51:26 +02:00
Tomislav Jovanovic
2e019f4e0b Bug 1333403 - Part 2: Implement browser.menus as alias for contextMenus r=kmag
MozReview-Commit-ID: JPaKsOyavDb

--HG--
rename : browser/components/extensions/ext-c-contextMenus.js => browser/components/extensions/ext-c-menus.js
rename : browser/components/extensions/ext-contextMenus.js => browser/components/extensions/ext-menus.js
rename : browser/components/extensions/schemas/context_menus.json => browser/components/extensions/schemas/menus.json
rename : browser/components/extensions/schemas/context_menus_internal.json => browser/components/extensions/schemas/menus_internal.json
rename : browser/components/extensions/test/browser/browser_ext_contextMenus_chrome.js => browser/components/extensions/test/browser/browser_ext_menus.js
extra : rebase_source : 8de33b11034ee159567ae43b998b700e94730081
2017-06-06 23:25:06 +02:00
Joel Maher
08e749c052 Bug 1308068 - Intermittent browser/components/extensions/test/browser/browser_ext_windows_events.js. temporarily disable. r=gbrown
MozReview-Commit-ID: 78loafc2KDb
2017-06-09 16:30:04 -04:00
Mark Banner
403075400a Bug 1371292 - Clean up more ESLint global definitions in configuration files in toolkit/ and browser/. r=mossop
MozReview-Commit-ID: 5KC23kzaCFN

--HG--
extra : rebase_source : 6a7541b5ffe85d275bc16194c155ad43f93d52ae
2017-06-08 10:59:12 +01:00
Luca Greco
d382c7e1f3 Bug 1366755 - devtools.panels.create should set invertIconForLightTheme to false by default. r=aswan
MozReview-Commit-ID: 1bn3cMngoql

--HG--
extra : rebase_source : 50931aa31fe3a4da7e4ba2751abf5a3f98a90089
2017-06-07 16:34:56 +02:00
Michael Kaply
e4bbbc7291 Bug 1301315 - Add support for chrome_settings_overrides search engine. r=mixedpuppy
MozReview-Commit-ID: IkpigS3wqs1

--HG--
extra : rebase_source : 2f2de6653f9b0041a535099175f7f795a4014597
2017-06-02 15:59:43 -05:00
Paolo Amadini
ac30ebecfa Bug 1370652 - Handle more rejections in code exercised by browser-chrome tests. r=Mossop
These fixes are in preparation of making browser-chrome tests fail when there are unhandled Promise rejections.

MozReview-Commit-ID: JTMgC2XwzX2

--HG--
extra : rebase_source : 4d0b0465641b2286d01f872b0cf8052af5573939
extra : amend_source : 75dacab1ff06bcab2a05e6e744845b151f97d06c
extra : intermediate-source : 047e38fdb0c889e7e7dc0c2cd5a4e6dc6aa7fe22
extra : source : b59573695517b2a464f22e00bd3792c50dcf371a
2017-06-06 21:15:42 +01:00