Commit graph

1451 commits

Author SHA1 Message Date
Gijs Kruitbosch
9d70cb3843 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

--HG--
extra : moz-landing-system : lando
2018-08-30 15:07:36 +00:00
Rob Wu
157b6e767a 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

--HG--
extra : moz-landing-system : lando
2018-08-30 19:00:11 +00:00
Narcis Beleuzu
05d91d3e02 Merge inbound to mozilla-central. a=merge 2018-08-30 19:58:52 +03:00
Rob Wu
90c43c6a11 Bug 1465508 - Fix intermittent browser_ext_url_overrides_newtab.js r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D4656

--HG--
extra : moz-landing-system : lando
2018-08-30 13:29:18 +00:00
Narcis Beleuzu
1bb581bc8f Merge mozilla-central to inbound.
--HG--
extra : rebase_source : 063f3df7ad6d834fa3e72cd6825c31792716586b
2018-08-30 16:09:37 +03:00
Narcis Beleuzu
a4ec006bb0 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
a8e2b8e702 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

--HG--
extra : moz-landing-system : lando
2018-08-29 17:58:25 +00:00
Arshad Kazmi
43fb2c87eb Bug 1396684 - Allow extensions to access tab's "attention" flag r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D3984

--HG--
extra : moz-landing-system : lando
2018-08-28 14:41:31 +00:00
Cosmin Sabou
5d011e88d1 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-27 18:51:27 +03:00
Cosmin Sabou
35af1c2893 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
f81e9b49d1 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

--HG--
extra : moz-landing-system : lando
2018-08-27 11:53:42 +00:00
Brendan Dahl
f6923ccc24 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

--HG--
extra : moz-landing-system : lando
2018-08-25 00:16:27 +00:00
Tiberius Oros
2ee9341d01 Merge inbound to mozilla-central. a=merge 2018-08-24 12:43:45 +03:00
Oriol Brufau
6be8c01caa Bug 1479129 - Implement support for updateProperties.highlighted in browser.tabs.update(). r=mixedpuppy,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3800

--HG--
extra : moz-landing-system : lando
2018-08-23 22:09:45 +00:00
Kris Maglione
80327d3561 Bug 1484496: Part 5a - Convert browser/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3729

--HG--
extra : rebase_source : e187b8e9a6b6db7ebc762adda5e489b25c7a7e43
extra : histedit_source : 868cb99d09954a51d6be321fcb516475ef70eb33
2018-08-18 19:27:33 -07:00
Tomislav Jovanovic
7d327a197e Bug 1369209 - Implement management.install for themes only r=robwu,kmag
Differential Revision: https://phabricator.services.mozilla.com/D3106

--HG--
extra : rebase_source : b9f0c006346b132ed655255525ce33294c3526da
2018-08-10 14:12:36 +02:00
Dorel Luca
8e7a61886b 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
6900fb42ab Bug 1481199 - Drop the obsolete dataType parameter for nsIBrowserSearchService.addEngine. r=mkaply 2018-08-23 09:00:00 -04:00
Gijs Kruitbosch
43b03ef6fd Bug 1483325 - re-enable sidebar test after checking for correct messages to get them out of the queue, rs=mixedpuppy
--HG--
extra : rebase_source : c2b63cb639b0fadb1eeaa583ad1ca930dc04ca94
2018-08-30 00:43:06 +01:00
Cosmin Sabou
54a6357287 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
c6d1ca1a5b Bug 1369209 - Implement management.install for themes only r=kmag,robwu
Differential Revision: https://phabricator.services.mozilla.com/D3106

--HG--
extra : moz-landing-system : lando
2018-08-23 18:45:23 +00:00
Narcis Beleuzu
77795dbade 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
47f67b630a Bug 1369209 - Implement management.install for themes only r=kmag,robwu
Differential Revision: https://phabricator.services.mozilla.com/D3106

--HG--
extra : moz-landing-system : lando
2018-08-22 21:52:28 +00:00
Rob Wu
36516a10a8 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

--HG--
extra : moz-landing-system : lando
2018-08-21 14:43:46 +00:00
Csoregi Natalia
6a5d41b053 Merge inbound to mozilla-central. a=merge
--HG--
rename : devtools/server/actors/webconsole/moz.build => devtools/server/actors/webconsole/listeners/moz.build
2018-08-21 01:00:01 +03:00
Rob Wu
3a260706b3 Bug 1482529 - Support "visible" in menus.create and menus.update r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3794

--HG--
extra : moz-landing-system : lando
2018-08-20 15:16:09 +00:00
Paolo Amadini
72ec57e0b2 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

--HG--
extra : rebase_source : 891c99ab68f4689513801a1957a3d3846b7ffe58
2018-08-19 19:54:02 +01:00
Brian Grinstead
4995c61b0f 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

--HG--
extra : moz-landing-system : lando
2018-08-17 16:45:52 +00:00
Tiberius Oros
127e89f5dd Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-17 00:37:19 +03:00
Tiberius Oros
246f2b4fab Merge inbound to mozilla-central. a=merge 2018-08-17 00:32:50 +03:00
Luca Greco
3bb3ba6361 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

--HG--
extra : moz-landing-system : lando
2018-08-16 13:19:03 +00:00
Oriol Brufau
c656258c84 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

--HG--
extra : moz-landing-system : lando
2018-08-16 13:14:44 +00:00
Andrew Swan
216df495b2 Bug 1449055 Exit the toolbox process gracefully in browser_ext_addon_debugging_netmonitor.js r=rpl
--HG--
extra : rebase_source : fcc8c44653a039a1015456cda0aa3d024108c2dc
extra : source : da3100049ef2c03f287fc700b620f6b622aa4749
2018-08-15 06:26:16 -07:00
Eliza Balazs
6f74a8e618 Bug 1465508 - Disable browser_ext_url_overrides_newtab.js on linux and win for frequent failures. r=jmaher
--HG--
extra : rebase_source : 56dd5d95eb012e9d9de16f4c036080d2fb000c8b
2018-08-16 00:07:00 +03:00
Csoregi Natalia
b0afa69be5 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)

--HG--
rename : browser/extensions/formautofill/api.js => browser/extensions/formautofill/bootstrap.js
rename : browser/extensions/formautofill/manifest.json => browser/extensions/formautofill/install.rdf.in
rename : browser/extensions/formautofill/skin/shared/autocomplete-item-shared.css => browser/extensions/formautofill/skin/shared/autocomplete-item.css
rename : browser/extensions/formautofill/skin/shared/editDialog-shared.css => browser/extensions/formautofill/skin/shared/editDialog.css
2018-08-16 00:15:19 +03:00
Andrew Swan
5a1e9a45a3 Bug 1449055 Exit the toolbox process gracefully in browser_ext_addon_debugging_netmonitor.js r=rpl
--HG--
extra : rebase_source : f5dc3e44c395ee31dbadefc6a6a06e8b152561fc
2018-08-15 06:26:16 -07:00
Luca Greco
4d5dd95038 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

--HG--
extra : moz-landing-system : lando
2018-08-15 12:11:19 +00:00
Kris Maglione
f99ee35b82 Bug 1480244: Part 5 - Run most framescripts in shared scope. r=mconley
Creating non-shared scopes for frame scripts is fairly expensive. After these
changes it's even more expensive. However, many frame scripts have no use for
the shared scopes at all. Run-once scripts which execute in closures, for
instance, make no use of them. And after bug 1472491, neither do most of our
default frame scripts.

MozReview-Commit-ID: 9PK7bYdQ0yh

--HG--
extra : rebase_source : db2516d2f00a75e233e1957649f2b62a9299b7cd
2018-08-10 13:58:18 -07:00
Kris Maglione
24dc48a4df Bug 1480244: Part 3a - Fix non-strict-mode test code which expects this to be bound to its global. r=aswan
A lot of the ad-hoc frame scripts we execute for tests does not run in strict
mode, and therefore has its functions' `this` objects set to the global when
they are called without a target object.

At the moment, this gives them a MessageManager global. Once message managers
become non-global objects, however, it will give them the shared JSM global,
which is not what they expect.

This patches changes scripts which rely on this to explicitly capture or set
the appropriate `this` object for their calls.

MozReview-Commit-ID: DY8DDb0xE1K

--HG--
extra : rebase_source : 86c1fa4df070711f666dfee5487182afe28a7611
2018-08-03 14:33:38 -07:00
Cosmin Sabou
1cd617cf3c Backed out 2 changesets (bug 1482610) for mochitest failures on test_keycodes.xul. CLOSED TREE
Backed out changeset 79a59b25e535 (bug 1482610)
Backed out changeset f5873a719ec0 (bug 1482610)
2018-08-14 20:58:27 +03:00
Kris Maglione
56ec495c3d Bug 1472491: Part 5p - Add ExtFindChild actor. r=mikedeboer f=felipe
MozReview-Commit-ID: 3zL8iYeYAPx

--HG--
extra : rebase_source : 8d6d2f4b9776d6e66b66da7fbeba826056afe77d
2018-07-29 21:44:48 -07:00
Kris Maglione
8556b44e55 Bug 1472491: Part 5k - Add NetErrorChild actor. r=johannh f=felipe
MozReview-Commit-ID: EclR3sogB4i

--HG--
rename : browser/modules/NetErrorContent.jsm => browser/actors/NetErrorChild.jsm
extra : rebase_source : e5c2337d220ede90f577cec80035d9116c348fc2
2018-07-29 21:00:29 -07:00
Paolo Amadini
5eb83a58d3 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

--HG--
extra : source : 1070e943ab79f6c46fd6518bc3695b1bee3dfd48
2018-08-14 15:18:25 +01:00
Oriol Brufau
dea5810226 Bug 1474440 - Implement support for the 'onHighlighted' API for multiselect tabs r=mixedpuppy
MozReview-Commit-ID: 8aOmdj0AB3e

--HG--
extra : rebase_source : 5eec0163341b6621103ac4a5e43f8439a19a9c5a
2018-07-28 13:15:55 +02:00
Oriol Brufau
f76978b8ec Bug 1474440 - Rename browser_ext_tabs_onHighlighted.js to browser_ext_tabs_events_order.js r=mixedpuppy
Basically it tests in which order various tab events are dispatched, so the old name
didn't make sense, and it will be more suited for a new test specific to onHighlighted.

MozReview-Commit-ID: Kj8GZfHA0Ap

--HG--
rename : browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js => browser/components/extensions/test/browser/browser_ext_tabs_events_order.js
extra : rebase_source : 243155e897d08bd70091c6a7ee11b4671a098ef2
2018-08-05 22:08:34 +02:00
Peter Simonyi
c3ec2fa929 Bug 1469705: allow menus.refresh() without an onShown listener r=mixedpuppy
MozReview-Commit-ID: 3GbQEoSFTW8

--HG--
extra : rebase_source : cfb50b104e14c1e38b319c207164c96c3fa0f55e
2018-07-05 22:06:23 -04:00
Rob Wu
f0b033f907 Bug 1481179 - Stop extensions from changing the icon in the top-level menu r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D3198

--HG--
extra : moz-landing-system : lando
2018-08-13 13:25:50 +00:00
Bogdan Tara
dfe849c923 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-11 06:46:31 +03:00
Bogdan Tara
2f2b719960 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-11 01:01:18 +03:00
Rob Wu
c036fd8591 Bug 1325814 - Support shadow DOM in menus.getTargetElement + test r=mixedpuppy
MozReview-Commit-ID: JzVM8wVpaeP

--HG--
extra : rebase_source : 00cdbf78a0f442cd4ab9fe0f93f567834e49def6
2018-08-08 18:06:41 +02:00
Rob Wu
ce07a9471f Bug 1325814 - Add tests for menus.getTargetElement API r=mixedpuppy
The tests are split in two files:

- browser_ext_menus_targetElement.js to test interaction with web pages
  via content scripts.

- browser_ext_menus_targetElement_extension.js to test interaction
  with menus in extension processes.

And browser_ext_menus_events.js was updated to recognize the new
property.

MozReview-Commit-ID: F0HEiNADRuM

--HG--
extra : rebase_source : 1f304c37a024ec94e2a8104bd7ae3d53eb68aa60
2018-08-04 18:40:54 +02:00
Narcis Beleuzu
d9ee6ddde6 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-10 19:06:15 +03:00
Rob Wu
af1d77cbb8 Bug 1480993 - Remove unused extensions.sidebar-button.shown pref from tests r=mixedpuppy
This pref was removed in bug 1387081, when the sidebar-button started to
be shown by default. I have also removed the end of the test that
removed the button, since these were attempts to restore the default
state. At the inception of the tests, the default state is to not show
the button, but now the button is to be shown by default.

Differential Revision: https://phabricator.services.mozilla.com/D2954

--HG--
extra : moz-landing-system : lando
2018-08-09 13:54:41 +00:00
Tom Schuster
5e708d06c1 Bug 1408129 - Treat webextension commands as user input. r=aswan
--HG--
extra : rebase_source : ee6c11f919ce92381bbd95672a5acd0bd6e99f12
2018-08-09 23:15:19 +02:00
Noemi Erli
be6ab34c54 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
extra : rebase_source : 691b5b30b6c3b2ddece605c045ad913e466fdbab
2018-08-10 00:35:58 +03:00
Brian Grinstead
abf1620630 Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw

--HG--
extra : rebase_source : 186d805f7a2a56694dda9032aceac2dfe5424753
2018-08-08 15:22:53 -07:00
Rob Wu
5bb726572c Bug 1280370 - Allow any scheme in targetUrlPatterns r=mixedpuppy
MozReview-Commit-ID: KupQIiAkz0h

--HG--
extra : rebase_source : 25adaca58bdea7ee911aac9496c87f7f2ebd9bf2
2018-07-24 17:26:23 +02:00
Jonathan Kingston
2f0987a202 Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb r?=gijs
Summary: Depends on D2046

Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2047

--HG--
extra : source : 33884d05cc94463950b31fab1fd2f37ada9becef
extra : intermediate-source : 72471adb75d5ec3dc2b0c8f972a6f1f26bfd3ae2
extra : histedit_source : f384cbab58401575afc3443c9a431b73cff806d4
2018-07-06 21:16:29 +01:00
Rob Wu
fe2be1dd11 Bug 1320462 - Support access keys in extension menus. r=mixedpuppy
MozReview-Commit-ID: GsLE3PwNeiC

--HG--
extra : rebase_source : d34b20a2e6ef81623564fd1774a034ab8af9063e
2018-08-06 16:58:21 +02:00
Rob Wu
613a40ff15 Bug 1416103 - Re-enable browser_ext_omnibox.js everywhere r=aswan
Likely fixed by the patch for bug 1417052

Ran the test with --repeat=50 on Linux and did not observe any failures.

MozReview-Commit-ID: FuMo8jdgJCn

--HG--
extra : rebase_source : 2a296cc7817607d352bc56b5b200da81d3e26bf0
2018-08-06 11:24:20 +02:00
ExE Boss
f0cad9e60c Bug 1371951 - Make browser-style checkboxes and radio buttons handle style themselves. r=mixedpuppy, bwinton
This removes the requirement for browser-style checkboxes and radio buttons
to be followed by a label since the reason why this was originally done
no longer applies because bug 418833 made it possible for checkboxes and radio
buttons to handle styling themselves rather than requiring a label::before
element.

--HG--
extra : rebase_source : 61957bd667b509e8769b86de7f783472d801bb0f
2018-02-17 17:00:00 +01:00
Kris Maglione
06e3d470ae Bug 1357487: Enable OOP extensions by default on all platforms. r=aswan
MozReview-Commit-ID: L2Pm1frQbmo

--HG--
extra : source : e5423d29aaf0b711e02b68b7340a2297dd6bfe16
extra : intermediate-source : ef1550969466fbe9049ee922735f020af82f66d6
2018-07-25 10:29:20 -07:00
Bogdan Tara
2805a16972 Backed out changeset ef1550969466 (bug 1357487) caused perf regressions & author didn't justified them CLOSED TREE 2018-08-03 16:15:42 +03:00
Rob Wu
0360fe3b9c Bug 1398542 - Add test coverage for video/audio context menus r=mixedpuppy
MozReview-Commit-ID: 22VB0Jltj56

--HG--
extra : rebase_source : 98d56e06c4e217816116f1f9e8e47f00d5189677
2018-08-01 18:20:17 +02:00
Noemi Erli
048f87627e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-02 12:03:09 +03:00
Noemi Erli
8f66a71e70 Merge inbound to mozilla-central. a=merge 2018-08-02 11:54:46 +03:00
dvarga
956d57e7f2 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-02 01:26:29 +03:00
Rob Wu
426550290d Bug 1446956 - Test that activeTab is not granted for bookmarks menu r=mixedpuppy
This ensures that the check that was introduced by bug 1370499 still
continues to work even though it was refactored by the previous commit.

MozReview-Commit-ID: GdbIPA6vxIB

--HG--
extra : rebase_source : 9246a1d6855de45eca8de5ee806d3a3e5ab7f0be
2018-07-19 16:35:22 +02:00
Rob Wu
13e9ee22fa Bug 1446956 - Grant access to the clicked tab in menus.onClicked r=mixedpuppy
MozReview-Commit-ID: 3mVWOEcZFYn

--HG--
extra : rebase_source : aec91b4c8b0770208ca7ce9972d1fcf877d53bb1
2018-07-18 22:04:58 +02:00
alwu
c3ae952e6e Bug 1466926 - part3 : add test. r=kmag
MozReview-Commit-ID: 50Eo65ZFkhF

--HG--
extra : rebase_source : d5f01b7936abeaffc5dc20e8448c7ff0cc7fcf6f
2018-07-10 14:29:22 -07:00
Rob Wu
2edcbfa7c8 Bug 1417052 - Use unique keyword in browser_ext_omnibox.js r=aswan
Manually verified using the STR from
https://bugzilla.mozilla.org/show_bug.cgi?id=1417052#c47

I am not re-enabling the test by default because the same test file is
reported to have another intermittent (bug 1416103).

MozReview-Commit-ID: 1xsyjMMby1H

--HG--
extra : rebase_source : 67080c8d7d7d804bf66aa40b577486c68dcaeb4b
2018-08-01 13:49:27 +02:00
Rob Wu
9287b6789f Bug 1477271 - Require "search" permission for search API r=aswan
And re-enable the test_ext_all_apis.html test to ensure that new APIs
are only available by default if the contributor really intents to.

MozReview-Commit-ID: FWIKybrk0EE

--HG--
extra : rebase_source : 58c5bd98ddb59be74b9454995cbbd3edef6c45f9
2018-07-31 20:14:03 +02:00
Rob Wu
6fd8625b04 Bug 1454627 - Fix timing issue in browser_ext_user_events.js r=mixedpuppy
The hard-coded wait exists to avoid a test failure caused by a
non-functional click event in an options browser. However, that
still does not get rid of the intermittent failure.

To really avoid the timing issue, check whether onclick was fired
after supposedly triggering a click, and if not, wait and retry.

MozReview-Commit-ID: 9eg6sz1s1e3

--HG--
extra : rebase_source : 8945f2597beb99e9c5d03c08bc054692960e6281
2018-07-31 16:58:41 +02:00
Rob Wu
c7c432f91a Bug 1454627 - Run "onclick" event of menu with user input r=mixedpuppy
MozReview-Commit-ID: r1URJfOKUB

--HG--
extra : rebase_source : 1f5c5bb7b6dbd9709a26bf10abddcda919eff70f
2018-07-27 19:06:00 +02:00
Rob Wu
0fb02494af Bug 1454627 - Re-enable browser_ext_user_events.js (bug 1381305) r=mixedpuppy
Re-enable the test that was disabled in bug 1381305 and fix the
underlying issue that caused th intermittent failure in the first place.

MozReview-Commit-ID: BL9wS2fogaf

--HG--
extra : rebase_source : 685f43b2e47d80f71814385a5c8b94fd3000eac9
2018-07-27 18:52:21 +02:00
Bogdan Tara
33e48d218b Backed out 3 changesets (bug 1454627) for test-oop-extensions/browser_ext_user_events.js failures
Backed out changeset 38d9cbe6e3d2 (bug 1454627)
Backed out changeset 44b38de7dc3d (bug 1454627)
Backed out changeset 22de883763ac (bug 1454627)

--HG--
extra : rebase_source : d2ec7c40e9c9ba2cf45057aa72f790a107ec79b9
2018-08-01 00:36:28 +03:00
Bogdan Tara
fb57ee9280 Backed out changeset 7e49d55f0240 (bug 1446956) for browser_ext_omnibox.js failures CLOSED TREE 2018-07-31 21:07:33 +03:00
Bogdan Tara
8ccee52ef3 Backed out changeset cc67a75b9160 (bug 1446956) for browser_ext_omnibox.js failures CLOSED TREE 2018-07-31 21:03:08 +03:00
Rob Wu
8fa8bb1f95 Bug 1454627 - Fix timing issue in browser_ext_user_events.js r=mixedpuppy
MozReview-Commit-ID: 9eg6sz1s1e3

--HG--
extra : rebase_source : 2ad7b7004ec4be540675cf197986841e1425fc12
2018-07-31 16:58:41 +02:00
Rob Wu
38f52336fc Bug 1454627 - Run "onclick" event of menu with user input r=mixedpuppy
MozReview-Commit-ID: r1URJfOKUB

--HG--
extra : rebase_source : 1f5c5bb7b6dbd9709a26bf10abddcda919eff70f
2018-07-27 19:06:00 +02:00
Rob Wu
47a802bd4e Bug 1454627 - Re-enable browser_ext_user_events.js (bug 1381305) r=mixedpuppy
Re-enable the test that was disabled in bug 1381305 and fix the
underlying issue that caused th intermittent failure in the first place.

MozReview-Commit-ID: BL9wS2fogaf

--HG--
extra : rebase_source : 685f43b2e47d80f71814385a5c8b94fd3000eac9
2018-07-27 18:52:21 +02:00
Rob Wu
c532133b3d Bug 1446956 - Test that activeTab is not granted for bookmarks menu r=mixedpuppy
This ensures that the check that was introduced by bug 1370499 still
continues to work even though it was refactored by the previous commit.

MozReview-Commit-ID: GdbIPA6vxIB

--HG--
extra : rebase_source : 9246a1d6855de45eca8de5ee806d3a3e5ab7f0be
2018-07-19 16:35:22 +02:00
Rob Wu
d15750c82b Bug 1446956 - Grant access to the clicked tab in menus.onClicked r=mixedpuppy
MozReview-Commit-ID: 3mVWOEcZFYn

--HG--
extra : rebase_source : aec91b4c8b0770208ca7ce9972d1fcf877d53bb1
2018-07-18 22:04:58 +02:00
Boris Zbarsky
4abc5c5a25 Bug 1446940 part 2. Stop getting docshells from windows via getInterface in browser. r=gijs 2018-08-01 13:07:10 -04:00
Coroiu Cristina
11bdeb280a Backed out 2 changesets (bug 1454627) for frequently failing browser-chrome at browser/components/extensions/test/browser/test-oop-extensions/browser_ext_user_events.js
Backed out changeset 3285f664c261 (bug 1454627)
Backed out changeset 9661870b7453 (bug 1454627)
2018-07-31 03:49:03 +03:00
Rob Wu
98a7b1a964 Bug 1454627 - Run "onclick" event of menu with user input r=mixedpuppy
MozReview-Commit-ID: r1URJfOKUB

--HG--
extra : rebase_source : 1f5c5bb7b6dbd9709a26bf10abddcda919eff70f
2018-07-27 19:06:00 +02:00
Rob Wu
62d7399a68 Bug 1454627 - Re-enable browser_ext_user_events.js (bug 1381305) r=mixedpuppy
Re-enable the test that was disabled in bug 1381305 and fix the
underlying issue that caused th intermittent failure in the first place.

MozReview-Commit-ID: BL9wS2fogaf

--HG--
extra : rebase_source : 685f43b2e47d80f71814385a5c8b94fd3000eac9
2018-07-27 18:52:21 +02:00
Shane Caraveo
aad6d3674f Bug 1378647 - support creating lazy tabs from extensions, r=JanH,mikedeboer,rpl
MozReview-Commit-ID: 9QMkNtCQG6P

--HG--
extra : rebase_source : 1c4d57ac25b00d0a63901f4fd00b11e0b5d765a5
2018-07-30 12:15:32 -03:00
Rob Wu
00a0969526 Bug 1457115 - Simplify *_ext_tabs_executeScript_bad.* r=rpl
MozReview-Commit-ID: 6FpmCLmePVP

--HG--
extra : rebase_source : f0ad0a5635de05ec7c4f81dbdb27f3c181bb2baf
2018-05-24 19:16:49 +02:00
Kris Maglione
dd38aeaec6 Bug 1357487: Enable OOP extensions by default on all platforms. r=aswan
MozReview-Commit-ID: L2Pm1frQbmo

--HG--
extra : source : e5423d29aaf0b711e02b68b7340a2297dd6bfe16
extra : amend_source : d0b432056a4e07f3607e860a576c83508442dad7
2018-07-25 10:29:20 -07:00
Oriol Brufau
45dbd64d99 Bug 1474110 - Choose browserAction text color among white and black, maximizing contrast r=mixedpuppy
MozReview-Commit-ID: CykmiUc0BsO

--HG--
extra : rebase_source : 23f74ba575d7f6c2ed6e379ea762080331540399
2018-07-08 02:15:27 +02:00
Tim Nguyen
b4b1cd3887 Bug 1441708 - Fix theme_icons in different configurations. r=jaws
MozReview-Commit-ID: LWn4LUK5zI

--HG--
extra : rebase_source : a98e82e97492ebff263a38cca2622892d42efba1
2018-07-19 19:37:58 +01:00
Rob Wu
5c12d9251e Bug 1373234 - Small cleanup in browser_ext_contextMenus*.js tests r=mixedpuppy
Use sendMessage/awaitMessage instead of notifyPass/awaitFinish in tests
where this is not the last completion callback.

Remove an unneeded browser.contextMenus.onClicked.addListener call.

MozReview-Commit-ID: Akpla9tiAlD

--HG--
extra : rebase_source : 483acb2fd27f06c163871fa61c660ed5c2f15050
2018-07-25 18:06:03 +02:00
Rob Wu
de8eb2f4eb Bug 1373234 - Avoid races in tests involving menu creation r=mixedpuppy
browser.menus.create and browser.contextMenus.create are asynchronous
APIs. For compatibility reasons, they cannot return a promise (since
they already return an integer).

This modifies all tests that use either of these APIs, to ensure that
the test waits for the callback of the last menus/contextMenus.create
call before continuing with the test.

In some cases in browser_ext_menus.js I did not add any callbacks,
because there were other asynchronous API calls (browser.tabs API)
that already guaranteed that the test made a round-trip to the parent
process before continuing.

This fixes:
- Bug 1462862 (browser_ext_contextMenus_icons.js)
- Bug 1403429 (browser_ext_contextMenus_onclick.js)
- Bug 1321182 (browser_ext_contextMenus.js)
- Bug 1373234 (browser_ext_menus.js)

MozReview-Commit-ID: IZFUyIw8Tbl

--HG--
extra : rebase_source : 4f28acf0189b4b93808b13200cf966a04873bf78
2018-07-25 13:34:27 +02:00
Rob Wu
112220b166 Bug 1366702 - Invoke menus.create callback if error occurs + tests r=mixedpuppy
MozReview-Commit-ID: 6TuxyXVtWrI

--HG--
extra : rebase_source : 2d8401fa63a89f4e8bf9047d7f9fe15f9c4a3713
2018-07-20 19:59:55 +02:00
Boris Zbarsky
270fa12c79 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Brian Grinstead
96dc530924 Bug 1476333 - Refer to AppConstants.BROWSER_CHROME_URL to get the browser URL from the frontend;r=Gijs
Before this change, we accessed the browser URL in the following ways:

- "chrome://browser/content/browser.xul"
- "chrome://browser/content/" (which redirects to chrome://browser/content/browser.xul)
- Services.prefs.getCharPref("browser.chromeURL") which returns "chrome://browser/content/"
- getBrowserURL() from utilityOverlay.js

MozReview-Commit-ID: I5vtRke1x9t

--HG--
extra : rebase_source : c525350a1954740873e85b045cbb14a8b43aa89d
2018-07-24 08:12:50 -07:00
Tim Nguyen
cb6d2f84ed Bug 1477775 - Remove extensions.webextensions.themes.enabled preference. r=jaws
MozReview-Commit-ID: 2dnFhMGRLbG

--HG--
extra : rebase_source : 72e92fbcce1d15f7fd800241b7db9bc7224f1d31
2018-07-23 19:20:30 +01:00
Rob Wu
4122635ae0 Bug 1321182 - Register click handler before starting click test in browser_ext_contextMenus.js r=mixedpuppy
MozReview-Commit-ID: FkOjNm7Tgd5

--HG--
extra : rebase_source : 6f03ac39b04ba79ccb0aae7dfb40a58850aaae05
2018-07-20 17:43:42 +02:00
Margareta Eliza Balazs
8f114fd737 Backed out changeset 6cc8354ce3c5 (bug 1378647) for causing failures in toolkit/components/extensions/test/mochitest/test_ext_webrequest_basic.html on a CLOSED TREE 2018-07-19 15:17:42 +03:00
Shane Caraveo
1466ab5a62 Bug 1378647 - support creating lazy tabs from extensions, r=mikedeboer,rpl
MozReview-Commit-ID: 9QMkNtCQG6P

--HG--
extra : rebase_source : 97a1e41f681ae3614c5db87d40c12bbe54ef18ed
2018-07-18 16:17:30 -03:00
Oriol Brufau
48e892f643 Bug 1475714 - Remove webextension code for legacy 18x18 icons r=mixedpuppy
MozReview-Commit-ID: CNU1c7IA3Hn

--HG--
extra : rebase_source : 6dfb48b079415601113c69d923dfb73a8425fb45
2018-07-15 18:00:26 +02:00
Brian Birtles
5d13151cb9 Bug 1471814 - Add a preference for Web Animations timelines; r=bz,hiro
We don't intend to ship this in the near future until the integration with
AnimationWorklet is clear (although we might ship a read-only version).

That said, we use this feature extensively internally (e.g. in DevTools etc.) so
we enable this feature for system callers.

MozReview-Commit-ID: AhB7ZmU1Xzw

--HG--
extra : rebase_source : 630d7dc56b44a9261bb34aa5417cb9b7050efba4
2018-07-14 09:23:03 +09:00
Michael Kaply
879bad8101 Bug 1475347 - Cleanup search API - use camelCase and promise. r=aswan
MozReview-Commit-ID: 2HJYk8irppL

--HG--
extra : rebase_source : ec482d31e2930e5aeb7460f980d25a9dd2eacd29
2018-07-12 15:55:25 -05:00
Ian Moody
266d0a4703 Bug 1474379 - Match regex against the entire panel ID. r=miker,rpl
So panels provided by extensions with IDs that contain words like "inspector"
don't break.
Include test in existing panel creation test.

MozReview-Commit-ID: JerMCaKRgkl

--HG--
extra : rebase_source : 56c0262597c4070c7e16b32ebf824ef1fdd1fd8d
2018-07-10 17:38:35 +01:00
Gurzau Raul
89da18a08a Backed out changeset d93abdc258e1 (bug 1474379) for failing at test/browser_toolbox_telemetry_enter.js on a CLOSED TREE 2018-07-13 18:43:14 +03:00
Ian Moody
028a470c86 Bug 1474379 - Match regex against the entire panel ID. r=miker,rpl
So panels provided by extensions with IDs that contain words like "inspector"
don't break.
Include test in existing panel creation test.

MozReview-Commit-ID: JerMCaKRgkl

--HG--
extra : rebase_source : 59a884cb616e22e3c6062d19d223b5670cf17225
2018-07-10 17:38:35 +01:00
Shane Caraveo
69e769ac8a Bug 1461695 change tabs.onUpdated filter name to isArticle, r=aswan
MozReview-Commit-ID: Ha0nJPMTYkJ

--HG--
extra : rebase_source : b9950ea7b4a2a52b45b1023b51ba87612aad86af
2018-06-19 10:38:26 -04:00
Michael Kaply
81556be6b8 Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G

--HG--
extra : rebase_source : 650606638e580daa0c7f3b49e8fd085b039705bc
2018-06-18 10:39:12 -05:00
Axel Hecht
5bdc727943 Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws
Also changes the tooltip on the home button to be independent of the URLs
it opens, per dolske.

Some tests explicitly set browser.startup.homepage, but only through
SpecialPowers.putPrefEnv. That's a good compromise, given the extra
functionality there.

MozReview-Commit-ID: FPLxzi3jQAP

--HG--
extra : rebase_source : c2b014f2fb1c78ce04859344bd1803ef48d5d68d
2018-05-28 12:38:01 +02:00
Oriol Brufau
6d0124af85 Bug 1424620 - Add setBadgeTextColor and getBadgeTextColor methods to browserAction r=mixedpuppy
MozReview-Commit-ID: ALYerCv3YJ7

--HG--
extra : rebase_source : 8288ef3e60517abb02d2d139df71242744940ad4
2018-07-05 19:37:08 +02:00
Peter Simonyi
866f095c09 Bug 1473720: Fix firing menus.onShown for bookmark items r=mixedpuppy
MozReview-Commit-ID: BzZ61Zfh7Oq

--HG--
extra : rebase_source : 804d758d861d4f23f5718dcea25583678631357c
2018-07-05 16:43:15 -04:00
Brindusan Cristian
d2386dc6a2 Backed out changeset f5bfc9971285 (bug 1352598) for browser chrome failures on browser_ext_search.js. CLOSED TREE 2018-07-03 23:02:59 +03:00
Michael Kaply
cd47b3077c Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G

--HG--
extra : rebase_source : 811187b96b19d433249404791bbbfdff47bceebe
2018-06-18 10:39:12 -05:00
Ciure Andrei
442f7cad49 Backed out 1 changesets (bug 1352598) for frequent bc failures browser_ext_search.js CLOSED TREE
Backed out changeset 879fbe1b07f4 (bug 1352598)
2018-07-02 22:12:57 +03:00
Michael Kaply
49742b1fa3 Bug 1352598 - Add WebExtension API for access to search. r=aswan
MozReview-Commit-ID: 4pV2DGMcV7G

--HG--
extra : rebase_source : 811187b96b19d433249404791bbbfdff47bceebe
2018-06-18 10:39:12 -05:00
Andreea Pavel
1bf7ac45bb Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-06-30 13:10:01 +03:00
Kris Maglione
fcedebb912 Bug 1471102: Move more code out of ExtensionUtils.jsm. r=aswan
MozReview-Commit-ID: Fqlv5BRuuW8

--HG--
extra : rebase_source : 348f037abd9cecfa080183bc365e5f005eac1bd6
extra : amend_source : 05dbfd12f553fc3f2a93374402e34d271e26d767
2018-06-25 19:30:21 -07:00
Adam Plaice
79a4e43a84 Bug 1364784 - Allow more modifier combinations for webextensions commands key; r=mixedpuppy,mstriemer
This allows keyboard shortcuts containing both "Ctrl" and "Alt" in the
manifest of webextensions (in the "commands" -> "suggested_key" key),
rather than just one of these modifiers. The equivalent combinations
on MacOS (any two of "Command", "Alt" and "MacCtrl") are also allowed.

Non-sensical combinations (such as "Ctrl+Command" or "Ctrl+Ctrl") are
forbidden.

MozReview-Commit-ID: 59tC2efLm5q

--HG--
extra : rebase_source : 5a9375116aab6b3c4abe96c4850e4ff857d93532
extra : intermediate-source : 507b35de0e93baccb54f83e8bce6cedfe9754dd9
extra : source : 115c5332fadc1d52940f8356f6273f0e9680657f
2018-06-02 00:56:44 +02:00
Oriol Brufau
050e9292da Bug 1465170 - Implement support for the 'highlighted' API for multiselect tabs with tabs.query r=jaws,mixedpuppy
MozReview-Commit-ID: 6eFnxrXJXXB

--HG--
extra : rebase_source : f0afa7ab08d32d7751c5bcbf1ed9fc65a1fba16b
2018-06-03 02:53:59 +02:00
Oriol Brufau
e3e3ce5238 Bug 1464862 - Expose multiselected status to "tabs.Tab.highlighted", and allow to change it via "browser.tabs.highlight()" r=mixedpuppy
MozReview-Commit-ID: H2SiqM5ksCH

--HG--
extra : rebase_source : a8951d803c2c72fb0c6e39f4600b6aabcae69c41
2018-06-23 21:46:58 +02:00
Shane Caraveo
0df4ab0a93 Bug 1422588 fix discard if tab sessionstate is not ready, r=Gijs,mikedeboer
If discard is used immediately after creating a tab, restoring the tab
resulted in an unusable tab.  This was due to the sessionstate not being
ready.  This adds enough sessionstate to restore when this occurs.

MozReview-Commit-ID: 6PIc71BS8VU

--HG--
extra : rebase_source : 1bb9627eee561e9bf924e9eb2a34a5071cae3742
2018-06-19 10:47:25 -04:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Gabriel Luong
e18a43e435 Bug 1192642 - Add a left host type for the toolbox. r=pbro 2018-06-07 12:45:53 -04:00
Shane Caraveo
6bfb283891 Bug 1404724 - remove browser_style warning, fix default values, r=aswan
MozReview-Commit-ID: Akdhrm4leIQ

--HG--
extra : rebase_source : a59bdae5c2ea9d725062b2bf53ba659360966377
2018-05-29 16:55:43 -04:00
Boris Zbarsky
15b087c696 Bug 1465875 part 4. Eliminate random mentions of nsIDOMNSEditableElement. r=qdot 2018-06-01 22:35:23 -04:00
Oriol Brufau
62a134a580 Bug 1463751 - Tab-specific data not updated when tab is moved to another window and old window closes r=mixedpuppy
MozReview-Commit-ID: IUC8OwV6YHY

--HG--
extra : rebase_source : 1f2822572fe847a34edbcec6aa19b5988dcc8fbc
2018-05-26 21:57:58 +02:00
Cosmin Sabou
5a74471337 Merge inbound to mozilla-central. a=merge 2018-05-27 15:58:59 +03:00
Luca Greco
bbb0a980e1 Bug 1458918 - Prevent windows.getLastFocused from leaking tab being adopted by a new window. r=dao,mixedpuppy
MozReview-Commit-ID: 6Nj7J7aI06B

--HG--
extra : rebase_source : 93625678c7799886277566abe79efd1d558e529e
2018-05-03 16:24:02 +02:00
Mark Banner
b321b832fd Bug 824502 - Fix unit tests for the folder=<id> to parent=<guid> transition. r=mak
MozReview-Commit-ID: FCaiJrSAMAV

--HG--
extra : rebase_source : 1edf169c3a24b1c0b8c1be2e8eb0f06e8605df80
2018-05-01 08:14:53 +01:00
Kris Maglione
6ac523347a Bug 1461145: Support async startup/shutdown bootstrap methods. r=aswan
MozReview-Commit-ID: L0G4DA0KJ87

--HG--
extra : rebase_source : b774d70d11c47d138535685104c5d5bc197f7866
2018-05-12 18:51:32 -07:00
Kris Maglione
1e03e83e35 Bug 1461146: Replace Addon.userDisabled setter with async enable()/disable() methods. r=aswan
MozReview-Commit-ID: Gj2iCsBIdnq

--HG--
extra : rebase_source : 7766537d472ae8d6a25c4c824a50c0bb6bc49865
2018-05-12 16:49:35 -07:00
Jonathan Kingston
daad797972 Bug 1452666 - Simplify SessionHistory serialization code and test expanded principals are serialized and can restore tabs. r=bz,mikedeboer
MozReview-Commit-ID: EV39wz2TFlj

--HG--
extra : rebase_source : 736cc42fe3325f46856aba9bf894b1bad2a16368
2018-05-19 14:42:52 +01:00
Michael Kaply
828ab007c4 Bug 1460910 - Allow sidebar to be closed at install. r=mixedpuppy
MozReview-Commit-ID: 5UWW7DNQKzr

--HG--
extra : rebase_source : 7613b25201b248310f74862585fc507042445804
2018-05-18 10:30:04 -05:00
Oriol Brufau
ae9392e1f0 Bug 1451176 - Preserve tab-specific data when tab is moved to another window r=mixedpuppy
MozReview-Commit-ID: 80h4U7G3gmb

--HG--
extra : rebase_source : d8939d51f967a7c3a98977d3376d2727abd22a79
2018-04-04 16:04:11 +02:00
Oriol Brufau
0d16cdb78d Bug 1457474 - Add 'Manage Extension' in browserAction context menu r=Gijs,mixedpuppy
MozReview-Commit-ID: 3iA7fCeXLVs

--HG--
extra : rebase_source : 0d53cc24e7d6ca733aeca939dbcbd731874acda0
2018-05-14 22:23:21 +02:00
Oriol Brufau
b3b41d6f92 Bug 1419893 - Add windowId parameter in browserAction methods r=mixedpuppy
MozReview-Commit-ID: FFb4I1wmTH

--HG--
extra : rebase_source : 759d4a11fbd57b3335f7e0da746c79ef906a36e4
2018-04-06 23:18:44 +02:00
Rob Wu
e13e8a8950 Bug 1461115 - Emit menus.onShown even if there is no tab r=mixedpuppy
MozReview-Commit-ID: 6Bc7HHvaCRW

--HG--
extra : rebase_source : 5863e52e9b2e7d42c31e57f044d4889f70c6ca5b
2018-05-18 13:55:09 +02:00
Andreea Pavel
5fe937094b Backed out changeset 42abedd98732 (bug 1460910) for failing browser chrome at browser/components/extensions/test/browser/test-oop-extensions/browser_ext_sidebarAction.js on a CLOSED TREE 2018-05-18 22:59:25 +03:00
Michael Kaply
b181d9aaf9 Bug 1460910 - Allow sidebar to be closed at install. r=mixedpuppy
MozReview-Commit-ID: 5UWW7DNQKzr

--HG--
extra : rebase_source : 9460ba4ce1661c2edc026f271dee317488115a8e
2018-05-18 10:30:04 -05:00
Michael Kaply
ded5417e96 Bug 1461805 - Don't show doorhanger for distribution add-ons. r=aswan,mstriemer
MozReview-Commit-ID: GjtVOWO8UFg

--HG--
extra : rebase_source : 66941e9620fcac340033e43fe9ed938bed94782c
2018-05-15 15:26:39 -05:00
Mark Banner
55d1e986ea Bug 1461997 - Enable ESLint rule mozilla/require-expected-throws-or-rejects for browser/components. r=Gijs
MozReview-Commit-ID: JXqwIyF6v6k

--HG--
extra : rebase_source : 2220610f8facc9096c4427ff543f5fc31e6ce7b0
2018-05-16 20:23:06 +01:00
Gabriel Luong
9935783cf2 Bug 1433718 - Enable 3 pane inspector in nightly and make unit tests pass. r=pbro 2018-05-04 09:38:47 -04:00
Markus Stange
54cc41b7dc Bug 1461056 - Remove browser_ext_geckoProfiler_symbolicate test. r=dthayer
The thing that it's testing is being removed.
I couldn't think of something that I could replace the test with. Maybe once we have
bug 1457481 we can check in an actual ELF binary and check that we're dumping its
symbol table correctly.

MozReview-Commit-ID: 9AXUwqPrivl

--HG--
extra : rebase_source : 70f7bd07804552c59a0d1ab0a1b6b344f9e6d308
2018-05-14 23:41:43 -04:00
Marco Bonardo
1c9f0c12b7 Bug 834541 - Remove the public History.hasHistoryEntries synchronous API. r=standard8
MozReview-Commit-ID: KJW9YNwoSZb

--HG--
extra : rebase_source : c379c145386478eb0cadfefe20c881f8652e6c2d
2018-05-08 10:26:36 +02:00
Jared Wein
1ee5bff85e Bug 1459066 - Overflow menu WebExtension subview header should use the default browser styling instead of the extension's styling. r=mixedpuppy
MozReview-Commit-ID: EtQ6VS5OH0e

--HG--
extra : rebase_source : 8e557423fa443d40e8db69dc46bad2709a11b38e
2018-05-07 13:06:46 -04:00
Mark Striemer
4f2d99cc85 Bug 1455040 - Enable tab hiding API by default r=mixedpuppy
MozReview-Commit-ID: HtzpV7bySeY

--HG--
extra : rebase_source : e72a09827a7bf065d5b380e67d34613e3b93dfa7
2018-05-07 12:27:41 -05:00
Marco Bonardo
c77ad1727f Bug 1354531 - Remove PlacesUtils.asyncHistory to make History internals access less convenient. r=standard8
MozReview-Commit-ID: K9oQTJbVAZF

--HG--
extra : rebase_source : 1f9c19911602a2620dace4d85c8174347c8eeb42
2018-05-03 15:08:06 +02:00
Mark Striemer
fdfd71bdc7 Bug 1438363 - Show a doorhanger when an extension first hides a tab r=aswan,dao
MozReview-Commit-ID: DQCr3SSaZTV

--HG--
extra : rebase_source : c72f53e9b03fa6c876051ee6c66675ed0b684054
2018-04-24 09:07:32 -05:00
Oriol Brufau
0836d04660 Bug 1457673 - Support WINDOW_ID_CURRENT in browser.windows.remove r=mixedpuppy
MozReview-Commit-ID: LkjDD2U9knB

--HG--
extra : rebase_source : 027b33ef40a057fbb9db2c5f7ecb64883d6d090d
2018-05-01 03:25:41 +02:00
Michael Ratcliffe
d01c919943 Bug 1456923 - can't switch to dev-tools add-on that is loaded temporarily r=pbro
MozReview-Commit-ID: EOw2S34zqPa

--HG--
extra : rebase_source : 36b99bb0f70b64b31d9b1c552c5b680a7972abcd
2018-04-30 15:57:39 +01:00
Rob Wu
d9d4c8d852 Bug 1399348 - Explicitly wait and check for error in test browser_ext_tabs_executeScript_bad r=rpl
I think that the intermittent error in the bug may be caused by
a pending executeScript call that is somehow handled around the
shutdown of the extension.

To verify this hypothesis, the test now explicitly waits for the
result of the first executeScript call before executing the last
script that is responsible for test completion.

The test should explicitly be checking for the error anyway.

And clean up comments and add reference to bug 1435100 in an
existing comment.

MozReview-Commit-ID: 6gV30Z6zQc4

--HG--
extra : rebase_source : d2d2f20336390ef61fefe247b3d1ae8668da7067
2018-04-23 15:28:41 +02:00
Rob Wu
6d7e401a87 Bug 1392067 - Disconnect open extension ports when the message manager goes away
- Previously, if a port is disconnected by the other end, then memory
  would be leaked to `ProxyMessenger.ports` in ExtensionParent.jsm.
  To fix this, the port descriptor is now saved separately, keyed by
  port ID instead of message manager.

- Previously, when a message manager was disconnected (e.g. window
  closed/tab crashed), the port is disconnected only if the port was
  created from that page.
  This patch adds bookkeeping to keep track of the message managers at
  both the sender and receiver's side, so that the port is always
  disconnected when the other side goes away.

- The new test browser_ext_port_disconnect_on_crash.js checks whether
  the ports are disconnected as expected. Previously, the subtest
  connect_from_tab_to_bg_and_crash_tab failed because of the previous
  point.

- Although not as deterministic as the crash test, the new
  browser_ext_port_disconnect_on_window_close.js reproduces the original
  test failure and serves as a regression test for the bug.

- Previously, the data structure in ProxyMessenger.ports contained
  the original `sender` and `recipient`. For the purpose of sending
  port disconnection messages, these are not necessary and therefore
  they have been removed.

- Fix incorrect JSDoc (type of portId is number, not string)

MozReview-Commit-ID: BoaKRVAUKuq
2018-04-25 22:31:03 +02:00
Kris Maglione
a7b308c3a2 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Brindusan Cristian
59f801793b Merge inbound to mozilla-central. a=merge 2018-04-25 00:50:59 +03:00
Stefan Hindli
ec586598c3 Bug 1381305 - disable browser_ext_user_events.js for frequent failures on Linux. r=jmaher 2018-04-24 02:01:00 +03:00
Oriol Brufau
2b62ae8f00 Bug 1390464 - Add windowId parameter in sidebarAction methods r=mixedpuppy
MozReview-Commit-ID: eSJnVzpNvO

--HG--
extra : rebase_source : 5837207b8375649c5ebc24e27a6dcc6894d6d40b
2018-01-28 20:46:24 +01:00
Cosmin Sabou
e9186f7449 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
rename : testing/mozharness/mozharness/mozilla/testing/verify_tools.py => testing/mozharness/mozharness/mozilla/testing/per_test_base.py
2018-04-20 01:38:32 +03:00
Kris Maglione
219ed0cc06 Bug 1454813: Part 2b - Rename SpawnTask.js to AddTask.js. r=florian
The old name no longer makes sense, since it no longer exports an spawn_task
symbol, and add_task is what we really care about.

MozReview-Commit-ID: IE7B8Czv8DH

--HG--
rename : testing/mochitest/tests/SimpleTest/SpawnTask.js => testing/mochitest/tests/SimpleTest/AddTask.js
extra : rebase_source : 03bca5aa69a7625a49b4455a6c96ce4c59de3a5a
2018-04-18 11:43:45 -07:00
Mike de Boer
6ee4299e04 Bug 1034036 - Part 6: Tests that use ss.setBrowserState() or ss.setWindowState() should wait until the window is restored to continue. r=dao
MozReview-Commit-ID: 5d1E5TjKnIR

--HG--
extra : rebase_source : be521af44edeae3f218602b4e279cfeb17ae866f
2018-04-11 12:06:12 +02:00
Coroiu Cristina
374b919ce6 Merge inbound to mozilla-central a=merge 2018-04-18 13:44:22 +03:00
Kris Maglione
d30911943f Bug 1452299: Make browser_ext_settings_overrides_search a less-dodgy xpcshell test. r=mkaply
MozReview-Commit-ID: CffGpvV9vck

--HG--
rename : browser/components/extensions/test/browser/browser_ext_settings_overrides_search.js => browser/components/extensions/test/xpcshell/test_ext_settings_overrides_search.js
extra : rebase_source : 2fce968f46582ccb40145a5c0d6e9f58f34ada41
extra : amend_source : b04c2fc5d9259d7f750e2042ce1bc8ee15c65221
2018-04-06 17:34:23 -07:00
Rob Wu
5278b1d9a7 Bug 1453163 - Ensure that the ?discoTest tab is closed r=aswan
Apparently BrowserTestUtils.removeTab(gBrowser.selectedTab) does not
close the ?discoTest tab, which causes the test to fail eventually.
See comment 6 of bug 1453163 for more details.

MozReview-Commit-ID: 3UgEaVW083i

--HG--
extra : rebase_source : b1d901a611c27a269fa8129f172cfdafb7f6d81c
2018-04-13 19:57:27 +02:00
Brian Grinstead
ce96ab99e6 Bug 1454012 - Part 2 - Remove NEW_CONSOLE_OUTPUT_ENABLED since it's now always true;r=nchevobbe
MozReview-Commit-ID: 2PaXZqDGMOi

--HG--
extra : rebase_source : 8748489ae96822b7c9b014a1f47daea5ca25a406
2018-04-16 10:38:11 -07:00
Jan Odvarko
73dbb70046 Bug 1436665 - Fix WebExtensions devtools.network tests; r=ochameau,rpl
MozReview-Commit-ID: JjJowr1grNP

--HG--
extra : rebase_source : 5c52a02cb6cc1acf9a43944998733bd4a3527ad2
2018-04-17 14:40:44 +02:00
Jan Odvarko
d0bf801d95 Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: BbZJQiipg3K

--HG--
extra : rebase_source : d5ac5c6edd0aa8d247a0bc5b114a4e0466217114
2018-04-17 14:38:25 +02:00
Narcis Beleuzu
2e31fed279 Backed out 3 changesets (bug 1436665) for talos damp failures on toolbox/panels-in-background.js. CLOSED TREE
Backed out changeset 2120b4c84746 (bug 1436665)
Backed out changeset b3702a775b16 (bug 1436665)
Backed out changeset 3ddbbd0330a1 (bug 1436665)
2018-04-17 15:09:29 +03:00
Jan Odvarko
23d6c207ac Bug 1436665 - Fix WebExtensions devtools.network tests; r=ochameau,rpl
MozReview-Commit-ID: LDS6zxz7Ivi

--HG--
extra : rebase_source : 63b154ca2292d834ea3ddef5837bfedd7115e12b
2018-04-17 13:14:44 +02:00
Jan Odvarko
15c71ac569 Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: 2iwybUcHOri

--HG--
extra : rebase_source : 3cfd435f140141c5bb7ab9b56ab8c69913fed714
2018-04-17 13:14:31 +02:00
Luca Greco
f082532365 Bug 1368332 - Request a longer test timeout for the browser_ext_devtools_panel test file. r=aswan
This patch requests a bit longer test timeout for browser_ext_devtools_panel.js, similarly
to other tests that open/close the devtools toolbox multiple times, because it often
timeouts on linux32 debug builds after we added a couple more "toolbox open/close" cycles
to test Bug 1394750 changes (and also made the devtools theme API tests more readable
by splitting it from the test case that verifies the rest of the devtools panel API).

MozReview-Commit-ID: 3JRWobPRwr5

--HG--
extra : rebase_source : 352fd4870048afa789d10afd2dd05bad9daa87ef
2018-04-16 13:26:58 +02:00
Cosmin Sabou
c1f14b1d28 Backed out 3 changesets (bug 1436665) for talos damp failures on netmonitor/simple.js. CLOSED TREE
Backed out changeset 09030f59fbea (bug 1436665)
Backed out changeset 513c72b05382 (bug 1436665)
Backed out changeset 4b8fe40857db (bug 1436665)
2018-04-17 13:05:42 +03:00
Jan Odvarko
e91ba73045 Bug 1436665 - Fix WebExtensions devtools.network tests; r=ochameau,rpl
MozReview-Commit-ID: KAwcvb18JO1

--HG--
extra : rebase_source : 5d449e9fb4f5236a034b7bda112cf179c06ea9ee
2018-04-13 15:56:07 +02:00
Jan Odvarko
eb13ce7ceb Bug 1436665 - Do not fire events on window, update tests; r=ochameau
MozReview-Commit-ID: K5xd0UmyKb

--HG--
extra : rebase_source : 12fc4bb979684dd6bbc266c1483a735b04733e32
2018-04-13 15:51:03 +02:00
Mark Striemer
847b01e89d Bug 1397809 - Part 2: Add a doorhanger when an extension changes the homepage r=aswan,Gijs
MozReview-Commit-ID: CwZ3E32xROS

--HG--
extra : rebase_source : 304392af1ae5ff0bc5677ad25e90bbd1f9f0ecac
2018-01-11 18:59:32 -06:00
Mark Striemer
ddc263525f Bug 1397809 - Part 1: Convert New Tab doorhanger to a generic class r=aswan,Gijs
MozReview-Commit-ID: 40RwrXjtsJJ

--HG--
extra : rebase_source : f688846407d32d3ec68ef96ea7432da9ed08a145
2017-12-19 13:56:04 -06:00
Luca Greco
27c184bde9 Bug 1443221 - Do not send a webNavigation API event for a browser which is adopting an existent tab in a new window. r=mixedpuppy
MozReview-Commit-ID: GG9cSB5hdhA

--HG--
extra : rebase_source : 136066594c825526786b4be40f7701ed25b01035
2018-04-09 15:39:49 +02:00
Rob Wu
4a63a4cd88 Bug 1453260 - run test script in specific page only r=aswan
Use a more specific entry point for the test than
"http://mochitest.test:8888" to make sure that the test is only started
once, when the test opens a tab with the entry point.

MozReview-Commit-ID: 7iAFREDuACu

--HG--
extra : rebase_source : 6ab46b1114dc824f29d0bf21ffa784cd14651447
2018-04-11 14:25:03 +02:00
Ciure Andrei
3f4a118829 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-04-11 12:00:35 +03:00
Kris Maglione
55a33ff000 Bug 1382953: Follow-up: Temporarily disable browser_ext_user_events on debug for being too flaky. r=bustage DONTBUILD CLOSED TREE
MozReview-Commit-ID: 7abPg7fYnuP

--HG--
extra : rebase_source : aa7cc0fa074a2da7f665c94805e5b0828d42edc3
extra : amend_source : 7c74efdcecffe34d6397c7f9c68812301ea79296
2018-04-10 22:52:14 -07:00
Kris Maglione
b5c2235a0f Bug 1382953: Fix permission prompts in about:addons options browsers. r=aswan
MozReview-Commit-ID: At5F5cqGSWu

--HG--
extra : rebase_source : 2bce19447ae0bd4b6cd8f51b16f1e7fabe59d6c8
extra : amend_source : 911e5b1f2d7ee501d08918c6191a79217f0d0b6f
2018-04-07 20:38:21 -07:00
Yura Zenevich
442d872d5b Bug 1428427 - add 'Inspect Accessibility Properties' context menu item when right clicking on content element. r=jdescottes, mixedpuppy
MozReview-Commit-ID: 4aav1f6eslQ
2018-04-10 10:52:58 -04:00
arthur.iakab
8fe9a4d75a Merge mozilla-central to autoland 2018-04-11 01:12:49 +03:00
Rob Wu
9a634fe0d1 Bug 1448674 - avoid closing extension ports while detaching tabs r=aswan
Extension ports are automatically closed when the message manager of
the source is destroyed. When a tab is detached from a window, its
frameloader is moved to the new window and the original message
manager is destroyed.

Bug 1445537 started listening for SwapDocShells events, but that only
works for the first swap (e.g. detaching a tab once). To avoid early
disconnection of the port, we should continue to subscribe to
SwapDocShells events.

MozReview-Commit-ID: G2ZYAhNyHIL

--HG--
extra : rebase_source : 9f888482e63d2768adf3dbd1c484a483dc307b2b
2018-04-06 13:34:30 +01:00
Tooru Fujisawa
bc1ed58f7a Bug 1448531 - Part 2: Make BrowserTestUtils.waitForNewWindow receive parameters object. r=enndeakin 2018-04-10 12:18:35 +09:00
Jared Wein
4181599591 Bug 1449933 - Webextension popups that don't define a background-color can be hard to read. r=mixedpuppy
MozReview-Commit-ID: CVXySkhYaem

--HG--
extra : rebase_source : b744e0fc1a23997d6d92af4b12e9a6d3b00fecbf
2018-03-30 15:29:31 -07:00
Kris Maglione
27b1c032a5 Bug 1451748: Always remove unloaded views from views list. r=mixedpuppy
Contexts for active extension views are kept in a Set on the owning extension.
That list is meant to be kept current, with views added and removed as they're
created and unloaded. A refactoring at some point in the past, though, changed
that so that we only cleaned up parent views at extension shutdown, not at
view shutdown.

MozReview-Commit-ID: FW8KHPOD9qc

--HG--
extra : rebase_source : fab255ba2fb5ee55be41c252c89930d38f6edbe8
extra : amend_source : 54863d79a1d571a7354aa15f74e2fc4448297777
2018-04-05 19:42:20 -07:00
Kris Maglione
c15bbfb699 Bug 1451058: Follow-up: Fix some errors that show up during tests. r=me
MozReview-Commit-ID: K410z6VdHov

--HG--
extra : rebase_source : d768c2637f1fec2465f9e03b5e2b3e1ad25dadc5
2018-04-06 16:34:15 -07:00
arthur.iakab
a63676a8df Merge mozilla-central to autoland 2018-04-06 01:14:00 +03:00
Marco Castelluccio
dbeabc37e3 Bug 1423667 - Reenable some tests that were disabled because of a Clang update. r=jmaher
--HG--
extra : rebase_source : 1ace11df58e858905e9d53c32d9cf8e1f75046d4
2018-04-05 09:20:47 +01:00
Noemi Erli
ff466e94c1 Merge inbound to mozilla-central. a=merge 2018-04-05 13:02:11 +03:00
Narcis Beleuzu
58b4822076 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-05 01:09:42 +03:00
Tomislav Jovanovic
df9934361f Bug 1422605 - Fix permissions.request() from menus.onClicked listeners r=aswan
MozReview-Commit-ID: A035FUb1fq5

--HG--
extra : rebase_source : 6ba3efd32763496b164c56c329b27e07db90797e
2018-03-31 16:04:17 +02:00
Kris Maglione
202290f6bb Bug 1451215: Run codespell on code. r=aswan
MozReview-Commit-ID: HIilZTKcQUY

--HG--
extra : rebase_source : 48ba4b4ac06f6d146ce81050da6c60b6f7c3fbfc
extra : amend_source : cba3e4c100a57889851eaaffff3696d1285655ea
2018-04-03 22:22:07 -07:00
Mark Striemer
b1780b744c Bug 1408061 - Show hidden tabs in all tabs menu r=dao
MozReview-Commit-ID: FpbeT1FwEWe

--HG--
extra : rebase_source : 91d99cb327707fd51f8ec1b4819c8cac87a98b16
2018-04-03 13:58:48 -05:00
Luca Greco
189998be76 Bug 1394750 - Allow the webextension devtools_page to be disabled separately from the entire extension. r=aswan,jdescottes
MozReview-Commit-ID: 6rnBYXlJPTz

--HG--
extra : rebase_source : 3ea48ddb34ce659969ac707854e492ca94ba8f7a
2018-01-15 20:56:17 +01:00
Pierre de La Morinerie
0b019c532e Bug 1394750 - Fix typo in WebExtensions devtools panel visibility test. r=rpl
MozReview-Commit-ID: 3cDmVJ0h9Ba

--HG--
extra : rebase_source : e12c223f532e5f5672f103dd20e8c19339f139a6
2018-03-08 17:01:01 +05:30
Manish Kumar
ca80552b9f Bug 1446719 - Rename getTabValue / setTabValue / deleteTabValue to getCustomTabValue / setCustomTabValue / deleteCustomTabValue. r=dao
--HG--
extra : rebase_source : 4d1ee61af6b01c58c07aa8e09d125959b62dcc75
2018-04-01 16:05:34 +02:00
Andreea Pavel
afdd07f3e2 Backed out changeset f80a1b8f781b (bug 1446719) for failing browser chrome at browser/components/sessionstore/test/browser_350525.js on a CLOSED TREE 2018-04-01 16:16:09 +03:00
Manish Kumar
6887194f83 Bug 1446719 - Rename getTabValue / setTabValue / deleteTabValue to getCustomTabValue / setCustomTabValue / deleteCustomTabValue. r=dao 2018-04-01 11:15:54 +02:00
Oriol Brufau
ee03bec4b8 Bug 1445316 - Optimize tabs.query with 'active', 'currentWindow', 'highlighted', 'index', 'lastFocusedWindow' or 'windowId' r=mixedpuppy,rpl
MozReview-Commit-ID: L5i129iC44W

--HG--
extra : rebase_source : 3e3a6c4afdf76b81029ab20c95983dbd4a3a31cd
2018-03-13 20:52:58 +01:00
Shane Caraveo
6785fbc950 Bug 1446913 - test TabOpen/TabMove event sequence during content click, r=kmag 2018-03-26 12:11:10 -05:00
Kris Maglione
f488f995cb Bug 1372406: Follow-up: Disable test_ext_all_apis for being flaky. r=bustage DONTBUILD
MozReview-Commit-ID: 9nydwEeysJK

--HG--
extra : rebase_source : 19204c77d734b207fbd7934c277c3cd1d5d0c9ee
2018-03-28 12:03:03 -07:00
Margareta Eliza Balazs
adebb06ac1 Merge inbound to mozilla-central. a=merge 2018-03-28 00:48:11 +03:00
Joel Maher
a8cc6240ee Bug 1405453 - Enable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_context.js for osx/windows. r=Oriol 2018-03-27 11:35:51 -04:00
Shane Caraveo
f9d8308f05 Bug 1447796 - fix closing page action panels using commands, r=rpl
If commands are used with the page action panel, they will toggle open or
closed.  We need to keep a handle on our custom panel so we can close it.

MozReview-Commit-ID: JfxwlyK8g8g

--HG--
extra : rebase_source : 25b4fbe794040d6769fa498cee5fcad154e002f9
2018-03-27 10:33:31 -05:00
Tomislav Jovanovic
1a42995f4d Bug 1398272 - Prevent onUpdated from breaking tab IDs for adopted tabs r=kmag
MozReview-Commit-ID: 2tJ7noQFlXI

--HG--
extra : rebase_source : ef0f7bb196fc43fc3c1a5053cadff1603e7d5d20
2018-03-25 22:13:20 +02:00
Jan Odvarko
d09f31367c Bug 1448288 - Make devtools.network.getHAR API compatible with Chrome; r=rpl
MozReview-Commit-ID: 7woAf8iVC3B

--HG--
extra : rebase_source : 11ad0b8b67c4ce0aef1ee7e5ee4e356e66ea7134
2018-03-23 14:38:32 +01:00
Oriol Brufau
def82c307c Bug 1448120 - Allow 0 as minimum or maximum integer in webextension schema r=mixedpuppy
MozReview-Commit-ID: 2gd8e4SdaQ2

--HG--
extra : rebase_source : a2654a154c36a680fe675611929e419e58edd9a7
2018-03-22 21:03:03 +01:00
Shane Caraveo
a4a1869a2b Bug 1447723 - fix triggering pageAction when using pattern matching, r=rpl
MozReview-Commit-ID: 8B8QR2ltYmr

--HG--
extra : rebase_source : 52f5dcf93931ff882896183e915f4002f617a220
2018-03-21 16:38:27 -05:00
Peter Van der Beken
f5754d679a Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : 5911f91bd7a63cd3603494e087e3858bd0527500
2018-03-01 20:19:56 +01:00
Kris Maglione
03bc5c3910 Bug 1446868: Follow-up: Fix xpcshell tests in unexpected directory. r=bustage DONTBUILD
MozReview-Commit-ID: LKC8eySoCua

--HG--
extra : amend_source : d7d959362a915cb12d9280ef1ffad887a120e6f3
2018-03-20 21:39:49 -07:00
Kris Maglione
bc5ab61b19 Bug 1447517: Stop running Windows WebExtensions tests in non-OOP mode. r=mixedpuppy DONTBUILD
Now that WebExtensions run OOP in Windows by default, and we have no intention
of going back, there's no need to run an extra set of in-process tests for
them.

MozReview-Commit-ID: t8ryuuNFHe

--HG--
extra : amend_source : 90e006ca618206a943991b14cb11779baa7b8934
2018-03-20 17:32:47 -07:00
Kris Maglione
c423cc8c0a Bug 1446250: Part 2 - Optimize/reduce calls into the Photon PageAction API. r=mixedpuppy
Calling into the Photon PageAction API to update a property is orders of
magnitude more expensive than the simple DOM-based updates we used previously.
To make matters worse, a lot of our caching was removed during the migration,
and the Photon API introduces a lot of duplicated work when selecting icons.

This patch caches the last known state for each property to avoid calling into
the Photon APIs to update each property more than necessary, and removes the
extraneous preferred icon size calculations that the Photon code already
duplicates.

MozReview-Commit-ID: LjPPxolmcd6

--HG--
extra : rebase_source : 70bce5b1460c93cc738999b1e167eb17a39259b1
2018-03-15 20:20:33 -07:00
arthur.iakab
877c99c523 Merging mozilla-inbound to mozilla central a=merge 2018-03-19 12:43:31 +02:00
Tooru Fujisawa
1adba8c1fc Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
Tooru Fujisawa
0047ec3b43 Bug 1442465 - Part 3: Use BrowserTestUtils.{waitForTabClosing,waitForSessionStoreUpdate} instead of BrowserTestUtils.removeTab. r=dao 2018-03-19 11:12:13 +09:00
Bogdan Tara
4785e99532 Merge inbound to mozilla-central. a=merge 2018-03-17 12:29:57 +02:00
Nicolas Chevobbe
7f4f2e28cf Bug 1382581 - Adapt extension code to the EventEmitter change in devtools/client/framework; r=rpl.
MozReview-Commit-ID: 3I7kmXiPOqd

--HG--
extra : rebase_source : 033f3aef38cf90a6ea495f2ab86de1900ae2c4e3
2018-03-14 18:12:17 +01:00
Kris Maglione
313b707b2e Bug 1443964: Part 3 - Remove no-cpows-in-tests rule. r=mconley
The shims that this rule tests for no longer exist.

MozReview-Commit-ID: DMgP7Hczavc

--HG--
extra : rebase_source : 765ddd5c62c9449c07ed050e44d86a3bd5c0ae64
extra : amend_source : 627a7694ac07182200f876901ded7a34721cd228
2018-03-07 19:31:28 -08:00
Oriol Brufau
b69cc1c281 Bug 1439246 - Clear browser and page actions when inactive tabs navigate r=mixedpuppy,zombie
MozReview-Commit-ID: 5uGHmXEiMQS

--HG--
extra : rebase_source : d2b9acc14536de89a8e43aa5634226bf08c65236
2018-02-18 21:03:36 +01:00
Emilio Cobos Álvarez
0ecba9a059 Bug 1439875: Fix extension windows. r=kmag
Now we're loading the sizemode attribute earlier, doing this on load stops
working.

MozReview-Commit-ID: ToiJiYrvFw
2018-03-16 17:26:51 +01:00
Tiberius Oros
a4a2be52e8 Merge inbound to mozilla-central. a=merge 2018-03-16 11:53:43 +02:00
Gurzau Raul
540992331b Backed out 6 changesets (bug 1439875) for massive breakage for nightly users a=backout
Backed out changeset 990a8eb972cd (bug 1439875)
Backed out changeset 187aef60922c (bug 1439875)
Backed out changeset 9c764daa1234 (bug 1439875)
Backed out changeset f8e091577d2a (bug 1439875)
Backed out changeset 1ee5a2d21901 (bug 1439875)
Backed out changeset 610ba5dfaae1 (bug 1439875)
2018-03-16 11:26:31 +02:00
Emilio Cobos Álvarez
bfce521488 Bug 1439875: Fix extension windows. r=kmag
Now we're loading the sizemode attribute earlier, doing this on load stops
working.

MozReview-Commit-ID: ToiJiYrvFw

--HG--
extra : rebase_source : 48ad80e5535ecc5f7c8c8297f417f797deddc017
extra : source : 80194b5bf0e7bbcccf727d2fec140e747ebd0949
extra : histedit_source : 2b7755fece2a564fc806369280559c8829d3d486
2018-03-15 21:21:33 +11:00
Kris Maglione
853856ff98 Bug 1445537: Follow-up: Add test. r=aswan
MozReview-Commit-ID: 8rDoqbPfnrS

--HG--
extra : rebase_source : ceee3287ffcfc2d1fea70d91c8686a9d0de3ec16
2018-03-14 21:43:11 -07:00
Kris Maglione
62cdcecdd3 Bug 1445780: Part 2 - Remove CPOW usage in WebExtension tests. r=aswan
MozReview-Commit-ID: I27tO3K1E9r

--HG--
extra : rebase_source : 254a5d1482d0594269aaadae225499e83703c8ba
2018-03-14 15:08:52 -07:00
Kris Maglione
83957914cc Bug 1445551: Part 1b - Whitelist unsafe CPOW use in existing tests. r=mconley
MozReview-Commit-ID: 4ojwvjw9XGT

--HG--
extra : rebase_source : f7b79ad5998f1138266e89767ee1b434e4797b30
2018-03-14 14:35:05 -07:00
Shane Caraveo
a62b33d946 Bug 1445080 - fix handling of remote web progress for non-tab browsers, r=Gijs,mconley
Ensure remoteWebProgress is initialized for remote browsers.  Includes devtools fix from jryans.

MozReview-Commit-ID: Ce3TzwkNnyi

--HG--
extra : rebase_source : 0f2bcb96ef04f4eaee447180dc21400dca3bf410
2018-03-14 09:12:26 -05:00
Shane Caraveo
d026df2036 Bug 1329507 add filtering to tabs.onUpdated, r=kmag
Add filtering of urls, properties, window and tab id to onUpdated events to
help reduce the quantity of update events that are dispatched.

MozReview-Commit-ID: J8Rh9uEt1gW

--HG--
extra : rebase_source : df821e63a3029e9970f6174f8132f30003b77221
2018-03-09 09:11:28 -06:00
Shane Caraveo
25d47480bb Bug 1443749 only reload sidebar when the url has changed r=kmag
Regression from bug 1398713.  Before that, we reloaded the entire webext-panel.xul if the
sidebar changed.  This verifies we don't reload unecessarily as well as discards
the browser to force a runtime disconnect for the extension if it does change.

MozReview-Commit-ID: LuYxmj9mSb7

--HG--
extra : rebase_source : 9839d7b96195f2323328d1a37c3d946032bbb652
2018-03-09 16:30:49 -06:00
Luca Greco
a7b7f06441 Bug 1435959 - Fix missing network requests in netmonitor panel for oop extensions. r=ochameau
MozReview-Commit-ID: F8jzwBveACm

--HG--
extra : rebase_source : d45591793484ad916c2e3312818700e9db628abe
2018-02-19 18:00:35 +01:00
Jan Odvarko
fae7d4473f Bug 1434855 - Improve performance of HAR export; r=ochameau
MozReview-Commit-ID: 6H6P6wYmdQL

--HG--
extra : rebase_source : ab9e8e9ea68ae91e8fe4f28c344c41e2324e223f
2018-03-08 12:45:36 +01:00
Tooru Fujisawa
3aa4b5ece2 Bug 1439472 - Skip browser/components/extensions/test/browser/browser_ext_popup_select.js on debug build. r=kmag 2018-03-05 08:41:33 +09:00
Kris Maglione
3e279d936f Bug 1434076: Follow-up: Add test for conflict between browserAction and bundled experiment. r=zombie a=test-only
--HG--
extra : rebase_source : 4612cdff82bac267c61aa5a249a19a71c21d70f1
extra : amend_source : 5e643c5b3543a7837f64d15df41a4bc3b28eff11
2018-03-03 11:39:18 -08:00
Luca Greco
237bd0a1f9 Bug 1434590 - Re-enabled browser_ext_tabs_lastAccessed.js test on Windows. r=jmaher
This test has been disabled because it was failing intermittently with a pretty high
frequency on the Windows platform, the reasons behind the failures have been fixed
in Bug 1435100.

MozReview-Commit-ID: FNJqocBcxnf

--HG--
extra : rebase_source : f5fd1392bc53f137c8e48e433fddd103af74eaad
2018-03-02 13:30:19 +01:00
Ciure Andrei
2afb60f7a8 Backed out changeset a512c178c19b (bug 1439472) for causing bug 1442101. a=backout 2018-03-02 14:25:33 +02:00
Tim Nguyen
084b267c6b Bug 1442437 - Rename background_tab_text to tab_background_text. r=jaws
MozReview-Commit-ID: LFXUqxuHbBb

--HG--
extra : rebase_source : 914f0b36fda459391ff38dddf97140005f5703f8
2018-03-01 23:49:07 +00:00
Oriol Brufau
b57dc90eeb Bug 1438666 - Let tabs.query check if a tab is highlighted r=mixedpuppy,rpl
MozReview-Commit-ID: CgVuzLCxjPl

--HG--
extra : rebase_source : 020bf5dc8903c60df109b135144882db52df7bf5
2018-02-26 17:19:18 +01:00
Shane Caraveo
766d86e4a3 Bug 1438985 fix showing hidden tabs on extension shutdown, r=aswan
We need a static disable event so we can handle shutdown
of extensions using hidden tabs.  This allows us to handle
shutdown when the extension has not yet used the API (thus
the ext-tabs api has not loaded).

MozReview-Commit-ID: BxV5PmbHJ8o

--HG--
extra : rebase_source : 78dd8b6e6b6ee1b09d446545dc8b38e32d7e9969
2018-03-01 12:04:52 -06:00
Csoregi Natalia
1fd0486e23 Backed out 7 changesets (bug 1193394) for browser-chrome failures on browser_ext_popup_background.js. CLOSED TREE
Backed out changeset 9683f24ff8ec (bug 1193394)
Backed out changeset 0e7140a7c841 (bug 1193394)
Backed out changeset a0e26f6b2784 (bug 1193394)
Backed out changeset 29e1fceaf48d (bug 1193394)
Backed out changeset b8632bbbd273 (bug 1193394)
Backed out changeset a54ef2d8f896 (bug 1193394)
Backed out changeset 55c94c05c57f (bug 1193394)
2018-03-01 16:29:02 +02:00
Tooru Fujisawa
e497c77767 Bug 1193394 - Part 6: Disable browser_devices_get_user_media_unprompted_access.js and browser_ext_commands_execute_browser_action.js. r=bustage CLOSED TREE 2018-03-01 22:26:20 +09:00
Sebastian Hengst
6098a3cc4d merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-03-01 12:29:42 +02:00
Sebastian Hengst
3a10644021 Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout
Backed out changeset 83c87140dc3d (bug 888600)
Backed out changeset 2efb9b1753f6 (bug 888600)
Backed out changeset af5303781961 (bug 888600)
Backed out changeset 79ef59047e63 (bug 888600)
Backed out changeset 30d568d628dd (bug 888600)
Backed out changeset c7bd4c6c9741 (bug 888600)

--HG--
extra : histedit_source : 791b22f6770f4fead2f909478a93d65d85829fe0%2Cbb387309e90f53e1dde45dcf8cf4ebedcc6e5c5e
2018-03-01 11:51:09 +02:00
Tooru Fujisawa
c253fc2790 Bug 1193394 - Part 3: Disable browser_ext_browserAction_popup.js and browser_ext_browserAction_popup_resize.js. r=bustage 2018-03-01 18:42:14 +09:00
Nicolas Chevobbe
8ea55ce28a Bug 1382606 - Switch webconsole to new event-emitter; r=Honza.
MozReview-Commit-ID: HBogPeOI7WM

--HG--
extra : rebase_source : 4ad1fb922ffc818d175ae3c09820ce31ba416487
2018-02-23 09:10:36 +01:00
Peter Van der Beken
6cf0e1c871 Bug 888600 - Move ContentFrameMessageManager to WebIDL. Part 6: Mark some IDL interfaces as non-scriptable. r=bz.
--HG--
extra : rebase_source : f6f781b04923f67f60718706a78b3c4de15eca94
2018-02-22 20:22:29 +01:00
Tooru Fujisawa
623d991cc1 Bug 1439472 - Wait for ViewShown event of extension panel before synthesizing mouse event. r=Paolo 2018-03-01 10:36:05 +09:00
Tooru Fujisawa
05149ef895 Backed out changeset 1c928c9f81ca (bug 1439472) 2018-03-01 10:35:52 +09:00
Tooru Fujisawa
2634248fc8 Bug 1439472 - Wait for all transitions for arrow panel before operating on the content of the panel. r=Paolo 2018-03-01 10:28:45 +09:00
Cosmin Sabou
c8da530727 Bug 1417052 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_omnibox.js for frequent failures. r=jmaher
--HG--
extra : rebase_source : e10b15d3787944a28ebb25a18a455220c9159904
2018-02-26 14:57:41 +02:00