Commit Graph

1514 Commits

Author SHA1 Message Date
Luca Greco
444c28eb82 Bug 1483002 - Added WEBEXT probes keyed by addon id. r=janerik,mixedpuppy
This patch contains a set of changes needed to add WEBEXT telemetry probes keyed by addon id.

The telemetry probes keyed by addon id has been added as separate telemetry histograms
named after the related generic WEBEXT probe with the additional "_BY_ADDONID" suffix.

A set of small helper methods have been defined in a new ExtensionTelemetry object, exported
by the ExtensionUtils.jsm.

Differential Revision: https://phabricator.services.mozilla.com/D4437
2018-09-05 20:16:35 +00:00
Mark Striemer
e8db6253c6 bug 1483598 - Match system and user extension add/remove page action strings r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D5069
2018-09-05 19:17:40 +00:00
Andreea Pavel
89341a7077 Backed out changeset 0adb1474cc23 (bug 1469148) for failing bc at browser/components/extensions/test/browser/test-oop-extensions/browser_ext_menus_capture_secondary_click.js on a CLOSED TREE 2018-09-05 23:38:31 +03:00
tushararora.cs
524b4fb83b Bug 1414566 browser.menus.update() does not support updating icon r=robwu,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4628
2018-09-04 14:25:37 +00:00
Arshad Kazmi
be8d6907a3 Bug 1469148 - Add button info to click event of contextMenus API r=robwu,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4960
2018-09-05 16:33:50 +00:00
Rob Wu
f23258c9b3 Bug 1462121 - Fix intermittent in browser_ext_getViews.js r=zombie
extension.getViews() returns all windows whose context.active property
is true. In an upcoming commit, this "active" property will no longer be
set to false upon pagehide (which is a bit too early, since the window
has not unloaded yet), but set to false if the window is truly unloaded
(or frozen in the bfcache).

In the extension.getViews() test, the parts that close the popup or tab
should not immediately resume the test, but wait until the window in the
extension process has unloaded. Otherwise there is a rare chance that
extension.getViews() will return the window that was expected to be
closed, which results in a test failure.

Differential Revision: https://phabricator.services.mozilla.com/D4992
2018-09-05 12:04:59 +00:00
Oriol Brufau
62eb4954f7 Bug 1401610 - Add "Remove Extension" context menu item to browserAction. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D3565
2018-09-05 10:02:52 +00:00
Oriol Brufau
d5d7338e92 Bug 1488026 - Always fire onDetached event before onAttached. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4826
2018-09-04 20:50:12 +00:00
Gijs Kruitbosch
fb25f8415a Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466
2018-09-03 14:43:38 +01:00
Margareta Eliza Balazs
c9b513d70b Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-31 12:27:44 +03:00
Margareta Eliza Balazs
e835f67a30 Backed out changeset 96b5a88ac004 (bug 1486824) for causing frequent failures e.g: browser/components/privatebrowsing/test/browser/browser_privatebrowsing_about.js a=backout 2018-08-31 12:17:27 +03:00
Mark Banner
bb6de90251 Bug 1486739 - Enable ESLint rule comma-dangle for browser/, services/, taskcluster/ and toolkit/ directories. r=mossop
Enable globally by default by blacklist directories outside of the ones we're enabling. Remove now unnecessary existing configurations.

Differential Revision: https://phabricator.services.mozilla.com/D4440
2018-08-31 06:06:08 +00:00
Mark Banner
462116b7f9 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439
2018-08-31 05:59:17 +00:00
Gijs Kruitbosch
fa5a2cb49a Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466
2018-08-30 15:07:36 +00:00
Rob Wu
6411fe17f6 Bug 1481439 - Print debugging info when browser_ext_omnibox.js fails r=aswan
Print useful information about the visible autocompletion results before
failing the test, for debugging.

Differential Revision: https://phabricator.services.mozilla.com/D4700
2018-08-30 19:00:11 +00:00
Narcis Beleuzu
74814f7f46 Merge inbound to mozilla-central. a=merge 2018-08-30 19:58:52 +03:00
Rob Wu
669b141732 Bug 1465508 - Fix intermittent browser_ext_url_overrides_newtab.js r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4656
2018-08-30 13:29:18 +00:00
Narcis Beleuzu
5535239798 Merge mozilla-central to inbound. 2018-08-30 16:09:37 +03:00
Narcis Beleuzu
8e3a14e085 Backed out changeset 4e195f7b2d6b (bug 1486824) for clipboard failures on OSX browser_editcontrols_update. a=backout 2018-08-30 15:59:59 +03:00
Gijs Kruitbosch
5f78da87ec Bug 1486824 - change BrowserTestUtils to just call OpenBrowserWindow so it does the same thing as opening a window normally, r=mconley,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D4466
2018-08-29 17:58:25 +00:00
Arshad Kazmi
50ab04fb5c Bug 1396684 - Allow extensions to access tab's "attention" flag r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D3984
2018-08-28 14:41:31 +00:00
Cosmin Sabou
281a587f75 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-27 18:51:27 +03:00
Cosmin Sabou
cd043d48fc Bug 1483325 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sidebarAction.js on all debug tests. r=jmaher 2018-08-27 15:36:53 +03:00
Oriol Brufau
52d6ba393f Bug 1486050 - Don't change selected tab when browser.tabs.update is called with {highlighted: true, active: false}. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4272
2018-08-27 11:53:42 +00:00
Brendan Dahl
532fe1f6b0 Bug 1485426 - Use createXULElement instead of createElement in XUL docs. r=bgrins
Preparing for transitioning to XHTML.

MozReview-Commit-ID: JLlmUxsvhIB

Differential Revision: https://phabricator.services.mozilla.com/D4265
2018-08-25 00:16:27 +00:00
Tiberius Oros
fcc9ffa719 Merge inbound to mozilla-central. a=merge 2018-08-24 12:43:45 +03:00
Oriol Brufau
2590091dc8 Bug 1479129 - Implement support for updateProperties.highlighted in browser.tabs.update(). r=mixedpuppy,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3800
2018-08-23 22:09:45 +00:00
Kris Maglione
f6a4413b4c Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3729
2018-08-18 19:27:33 -07:00
Tomislav Jovanovic
c2ae9f3704 Bug 1369209 - Implement management.install for themes only r=robwu,kmag
Differential Revision: https://phabricator.services.mozilla.com/D3106
2018-08-10 14:12:36 +02:00
Dorel Luca
35be629d83 Backed out changeset d47a2f5db828 (bug 1481199) browser/base/content/test/urlbar/browser_autocomplete_a11y_label.js. CLOSED TREE 2018-08-23 23:45:02 +03:00
Diego Pino Garcia
751ce543b8 Bug 1481199 - Drop the obsolete dataType parameter for nsIBrowserSearchService.addEngine. r=mkaply 2018-08-23 09:00:00 -04:00
Gijs Kruitbosch
bc985676b8 Bug 1483325 - re-enable sidebar test after checking for correct messages to get them out of the queue, rs=mixedpuppy 2018-08-30 00:43:06 +01:00
Cosmin Sabou
09f3633170 Backed out changeset 29cdfd4dec23 (bug 1369209) for browser chrome failures on browser_ext_management.js. CLOSED TREE 2018-08-23 22:29:36 +03:00
Tomislav Jovanovic
39e6c19622 Bug 1369209 - Implement management.install for themes only r=kmag,robwu
Differential Revision: https://phabricator.services.mozilla.com/D3106
2018-08-23 18:45:23 +00:00
Narcis Beleuzu
eb5bc83b70 Backed out changeset ffe0fc382b2f (bug 1369209) for bc failures on browser_ext_management.js. CLOSED TREE 2018-08-23 02:28:19 +03:00
Tomislav Jovanovic
3429768eee Bug 1369209 - Implement management.install for themes only r=kmag,robwu
Differential Revision: https://phabricator.services.mozilla.com/D3106
2018-08-22 21:52:28 +00:00
Rob Wu
76a104d406 Bug 1475842 - Change parameter format in browser.search API r=rpl
Changes to browser.search.search API:
- Change the positional parameters to an object parameter.
- Rename "engineName" to "engine", and make this an optional parameter.
- Rename "searchTerms" to "query".

Changes to browser.search.search implementation:
- Simplify gBrowser getter. None of the "!gBrowser" conditionals are
  necessary, as demonstrated by the new options page+sidebar tests
  (which passed even after  removing the `if (!gBrowser ...)` blocks).
  Use windowTracker.topWindow for consistency with our other code.

Test changes:
- Remove unneeded name / "TEST_ID" in tests
- Use SEARCH_TERM constant in more places.
- New test: Using API from options page.
- New test: Using API from sidebar.
- New test: Using API without explicit "engine" parameter.

Differential Revision: https://phabricator.services.mozilla.com/D3417
2018-08-21 14:43:46 +00:00
Csoregi Natalia
e261eb1959 Merge inbound to mozilla-central. a=merge 2018-08-21 01:00:01 +03:00
Rob Wu
ff9ebc7c4d Bug 1482529 - Support "visible" in menus.create and menus.update r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3794
2018-08-20 15:16:09 +00:00
Paolo Amadini
9bb8406b1b Bug 1482610 - Part 2 - Move the remaining attributes and remove the sidebar broadcasters. r=jaws,mixedpuppy
This also fixes unintended behavior for which clicking the selected item in the sidebar selector would hide the sidebar.

Differential Revision: https://phabricator.services.mozilla.com/D3145
2018-08-19 19:54:02 +01:00
Brian Grinstead
dd4fd5c38b Bug 1482667 - Migrate mochitest-browser tests in browser/ to use element variations of firstChild, etc;r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3530
2018-08-17 16:45:52 +00:00
Tiberius Oros
8d022ceb0d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-17 00:37:19 +03:00
Tiberius Oros
5627932987 Merge inbound to mozilla-central. a=merge 2018-08-17 00:32:50 +03:00
Luca Greco
1ac9ff81cd Bug 1480292 - Fix browser_ext_popup_select intermittent failures. r=mixedpuppy
From what I saw by reproducing it locally (e.g. I've also been able to trigger it locally pretty often on linux64 by using "./mach mochitest --verify"), the select popup may sometimes be still using part of its previous position while switching between the test case for the browserAction and the test case for the pageAction.

On linux64 this test was also (from time to time) sending the mouse event when the select element wasn't yet ready to be clicked in the extension popup.

This patch aims to make the behaviors of this test more stable by applying the following changes:
- disable the cosmeticAnimations while running these tests
- explicitly wait the select element in the popup (using ContentTask.spawn and ContentTaskUtils.waitForCondition) before sending it a mouse event
- explicilty close the select popup (and wait the select popup to be hidden) before proceeding to the next test case

The following push to try seems to confirm that these changes are helping to make the test more stable:
- https://treeherder.mozilla.org/#/jobs?repo=try&revision=086c526724ba409068d679036dd3ef13788535b6&selectedJob=194152144

Differential Revision: https://phabricator.services.mozilla.com/D3438
2018-08-16 13:19:03 +00:00
Oriol Brufau
1f2b53400e Bug 1483684 - Fix browserAction ignoring tab-specific or window-specific popups and showing global one instead. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3465
2018-08-16 13:14:44 +00:00
Andrew Swan
9ddce26372 Bug 1449055 Exit the toolbox process gracefully in browser_ext_addon_debugging_netmonitor.js r=rpl 2018-08-15 06:26:16 -07:00
Eliza Balazs
e64ce6b4fe Bug 1465508 - Disable browser_ext_url_overrides_newtab.js on linux and win for frequent failures. r=jmaher 2018-08-16 00:07:00 +03:00
Csoregi Natalia
8a5f107d51 Backed out 3 changesets (bug 1449055) for multiple xpcshell failures on browser/extensions/formautofill/test/ . CLOSED TREE
Backed out changeset fc97f5b5e65d (bug 1449055)
Backed out changeset 45306ff933fe (bug 1449055)
Backed out changeset da3100049ef2 (bug 1449055)
2018-08-16 00:15:19 +03:00
Andrew Swan
2f09cacafa Bug 1449055 Exit the toolbox process gracefully in browser_ext_addon_debugging_netmonitor.js r=rpl 2018-08-15 06:26:16 -07:00
Luca Greco
3f11e0f0d4 Bug 1446274 - Fix browserAction popup resize test intermittency due to initial popup height being detected while still resizing. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3349
2018-08-15 12:11:19 +00:00