Commit graph

1238 commits

Author SHA1 Message Date
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
Johann Hofmann
09d9353e79 Bug 1333468 - Part 2 - Add tests for paused/disabled sharing state indicators. r=florian
MozReview-Commit-ID: G1CTAefOPNB

--HG--
extra : rebase_source : fcdfbf3d646ddf96a43b5facf69f0f7f8211dfa6
2018-02-13 10:09:07 +01:00
Zibi Braniecki
e37732b867 Bug 1431260 - Migrate Extensions tests to mock locale availability. r=aswan
MozReview-Commit-ID: KbFa11j69F1

--HG--
extra : rebase_source : dd8212a3e614dcdd833c9152478871160c82d550
2018-02-16 14:35:00 -08:00
Cosmin Sabou
5148c3627f Bug 1438663 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_popup_focus.js for frequent failures. r=aryx
--HG--
extra : rebase_source : 455577d7f3ff824fadb6c6a6369dff705ea9b78d
2018-02-21 11:36:00 +02:00
Tooru Fujisawa
9a81f2437f Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles
KeyframeEffect and KeyframeEffectReadOnly constructors can run in the caller
compartment, which is okay because the current compartment is used in the
following places and all of them are safe:

1. GlobalObject::CallerType(), that is ultimately passed to
   nsDocument::IsWebAnimationsEnabled in KeyframeEffectParamsFromUnion,
   to decide whether to copy mIterationComposite/mComposite to
   KeyframeEffectParams.

   GlobalObject::CallerType() can now be different than the target window's one,
   if the caller has the system principal and the target is web content, and
   in that case nsDocument::IsWebAnimationsEnabled there always returns true
   while Web Animations can be disabled on web content.

   honoring the mIterationComposite/mComposite properties is OK, since it just
   changes the animation behavior, and this is disabled by default until
   remaining spec issues are resolved.

2. GlobalObject::Context(), that is ultimately passed to
   KeyframeUtils::GetKeyframesFromObject and used while extracting information
   from passed-in keyframe object, with iterable/iterator protocols.

   Performing that operation in the caller side is okay, since the same thing
   can be done on caller, and the operation doesn't perform any GCThing
   allocation on the target window global.
2018-02-17 17:21:13 +09:00
Masayuki Nakano
cf83ee7bb4 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T

--HG--
extra : rebase_source : 2296b84bff8e22f01eeb48cd8614fac5db11136a
2018-02-15 04:15:39 +09:00
shindli
58aef5128f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-18 11:39:20 +02:00
Oriol Brufau
da20c7145a Bug 1437178 - Fix various pageAction visibiltiy issues when using show_matches and hide_matches r=mixedpuppy
MozReview-Commit-ID: 5jQ7MkkKWRk

--HG--
extra : rebase_source : 4af4acda8d25c606ea8734b2ce3bd96954647dbd
2018-02-09 22:22:43 +01:00
Tooru Fujisawa
d58a217b1c Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles
KeyframeEffect and KeyframeEffectReadOnly constructors can run in the caller
compartment, which is okay because of the following reasons:

1. The target window global is used for most operation:
     * KeyframeEffectReadOnly::ConstructKeyframeEffect uses the target window
       global instead of current global.
     * KeyframeEffectParamsFromUnion which receives `aGlobal.CallerType()`

   In Xray case, Web Animations API can be disabled on web content
   (currently disabled on beta/release by default), and in that case some API
   won't work even it's triggered from WebExtensions, but it should be fine.

2. GetKeyframesFromObject is executed in the caller's compartment to access
   the passed-in JSObject that is keyframe, with iterable/iterator protocols.
   This operation doesn't perform any GCThing allocation on the target window
   global.
2018-02-17 17:21:13 +09:00
Tooru Fujisawa
d70a10cbd8 Backed out changeset c3f16a179c93 (bug 1414674) 2018-02-18 01:24:08 +09:00
Oriol Brufau
5f5467402a Bug 1438274 - Fix browser and page actions clearance when navigating r=mixedpuppy
MozReview-Commit-ID: Jb43H65LmFB

--HG--
extra : rebase_source : b6b276f6bd49d1d0387ea150b8ab81b257c14b76
2018-02-15 02:57:53 +01:00
Shane Caraveo
2f634add59 Bug 1324255 make webextension panels focused when opened, r=Gijs,rpl 2018-02-15 09:52:54 -07:00
Jan Odvarko
96233200ee Bug 1311171 - Implement the devtools.network.onRequestFinished API event; r=jdescottes,rpl
MozReview-Commit-ID: IymuzcUg0VN

--HG--
extra : rebase_source : 5c262babe60132c9a73acc7dadf3b38f30133ecc
2018-02-14 11:32:10 +01:00
Shane Caraveo
4bea9207d6 Bug 1436720 use sessionstore to track controlling extension, r=Gijs
MozReview-Commit-ID: ACzGfNDVFXm

--HG--
extra : rebase_source : 7b7c8123f74b437ae5dc37c254dfb090b9321d4b
2018-02-13 15:43:31 -07:00
Mark Striemer
5431ec74a5 Bug 1429590 - Only allow one homepage to be set by extensions r=aswan
MozReview-Commit-ID: 8DTj8ceWAr8

--HG--
extra : rebase_source : 006f967cfd183e9c915e622056fec10ab173842e
2018-01-31 20:21:32 -06:00
Tom Ritter
c4edd2fe5c Bug 1435296 Address xpcshell test failures from increasing timer precision r=baku
See the comment on "Address test failures caused by bumping timer precision to 2 ms"
for more details.

MozReview-Commit-ID: LrsucEPdZIo

--HG--
extra : rebase_source : 8147c034f7dc93f678eebc80b0afabf55729d804
2018-02-12 11:41:38 -06:00
Tom Ritter
aa82f54ab6 Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku
There are a few different reasons why tests needed updating (not an exhaustive list):

- Tests assume that successive operations take place at different times.
- Tests assume that an operation took a minimum amount of time.
- Tests hardcodes a specific delay.

In most cases we hardcode the preference off. In some cases this is the best approach,
in others, we would like to improve. The bug for tracking those improvements is Bug 1429648

An improvement that is present in some tests is to hardcode a specific precision reduction
that is acceptable based on the confides of the test. (Obviously this needs to be a fix for
the test framework and not a requirement on the feature being tested.)

In a few places, the test itself can be fixed, for example to no longer require the end
time of an operation to be strictly greater than the start time, and allows it to be equal
to it.

MozReview-Commit-ID: J59c7xQtZZJ

--HG--
extra : rebase_source : df8a03e76eaf9cdc9524dbb3eb9035af237e534b
2018-02-12 11:39:41 -06:00
Cristian Brindusan :cristian_brindusan
8cd85773bd Bug 1434590 - disable browser/components/extensions/test/browser/browser_ext_tabs_lastAccessed.js for frequent failures r=gbrown 2018-02-11 12:44:44 -07:00
Mark Striemer
5b4239522f Bug 1421811 - Part 3: Update shortcut in sidebar on update r=Gijs,mixedpuppy
MozReview-Commit-ID: 4y02mCqwacg

--HG--
extra : rebase_source : c0a0334d46037793faf3c6797903df70f8de0e51
2018-02-06 12:55:40 -06:00
Mark Striemer
8c26de1d7c Bug 1421811 - Part 2: Support commands.reset() to reset a command's updates r=mixedpuppy
MozReview-Commit-ID: 4hWGo1ZH6tn

--HG--
extra : rebase_source : afa5b3dff8f77b5d5f87e71aa63918e1a4d31bfd
2018-01-31 15:49:20 -06:00
Mark Striemer
35992a1b90 Bug 1421811 - Part 1: Support commands.update() to modify a command r=mixedpuppy
MozReview-Commit-ID: 5A6ZmvNT294

--HG--
extra : rebase_source : fb8461900000fbf461eaabfc662051940b8de16a
2018-01-31 15:48:32 -06:00
Luca Greco
126281c8a6 Bug 1403130 - Allow DOMNodes and cyclic objects to be rendered with the sidebar.setExpression API method. r=aswan
MozReview-Commit-ID: AjHn7KfVhas

--HG--
extra : rebase_source : 006cb5df0649fc001c2ddfaecc1ddd3cba7d1f54
2017-10-12 15:55:47 +02:00
Andrew McCreight
b7bb86d0d4 Bug 1436184 - Remove definitions of Ci, Cr, Cc, and Cu from httpd.js and .sjs files. r=florian
MozReview-Commit-ID: IKKb9zr2OSf

--HG--
extra : rebase_source : 72d949405c18e6d421422e7865182352eee0c407
2018-02-06 15:03:13 -08:00
Nathan Watson
1605552221 Bug 1434262 - Remove PlacesTestUtils.clearHistory() r=mak
MozReview-Commit-ID: In2RaM0LBsc

--HG--
extra : rebase_source : 0cb5dc65a53bfa384b93fb2a8c2af67ad9d3fe1c
2018-01-31 22:03:05 -08:00
Drew Willcoxon
779a6db762 Bug 1435992 - Disabled page actions still show extension context menu items. r=mixedpuppy
MozReview-Commit-ID: JmC6PXtW1SK

--HG--
extra : rebase_source : ebb3895ba0d2ebb533cf134c598ffb6ef988f446
2018-02-06 11:15:50 -08:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Mark Striemer
6e113c8c8f Bug 1344815 - Show sidebar shortcut in menus r=mixedpuppy
MozReview-Commit-ID: C6q0FBtCmRK

--HG--
extra : rebase_source : d936c4bdcc779ee8d040412b6f518a1c352200aa
2018-01-31 19:41:32 -06:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Luca Greco
058667beb9 Bug 1420485 - Fix 'message manager count' failure when browser_ext_tabs_insertCSS.js is executed first. r=mixedpuppy
MozReview-Commit-ID: HEWS8Lxldbi

--HG--
extra : rebase_source : 6f323e6f13ed20d7227d89ffb6487551ac95f757
2018-01-29 17:24:57 +01:00
Luca Greco
760c5d578f Bug 1420485 - Fix browser.test.notifyFailure is not defined in tabs.insertCSS/removeCSS tests. r=mixedpuppy
This patch fix a type in the tests related to tabs.insertCSS/removeCSS,
the test function is actually named browser.test.notifyFail.

MozReview-Commit-ID: 8DpOFBpm795

--HG--
extra : rebase_source : 86a4977659cdbb9717b6411bd37142ef60ec9e55
2017-11-27 15:37:45 +01:00
Luca Greco
589a8dd24f Bug 1420485 - Fix an exception raised by browser_ext_tabs_insertCSS.js on injecting the same cached preloaded stylesheet twice. r=mixedpuppy
MozReview-Commit-ID: Jq2JdXwt7zC

--HG--
extra : rebase_source : 196992e71d975ae9e291cdb1d67732730eda28a0
2017-11-24 19:19:27 +01:00
Luca Greco
a457ca6fc6 Bug 1420485 - Added new tabs.insertCSS test case to ensure that the injected CSS are cleaned up. r=mixedpuppy
MozReview-Commit-ID: EPTTA2MnZ6O

--HG--
extra : rebase_source : c997153da3b2a5446c5b6cedf5ad108fde6f226d
2017-11-27 15:38:45 +01:00
Shane Caraveo
0fb829b692 Bug 1408194 prevent using find api on about urls 2018-01-30 16:55:54 -07:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Gijs Kruitbosch
d9872d9e13 Bug 1345081 - update use of spellchecker 'editable' flags, r=zombie
MozReview-Commit-ID: Hxgc0UuIOPj

--HG--
extra : rebase_source : 3d10e802f50ba3e342591dbe86a37fa10b74ee1f
2018-01-12 18:51:41 +00:00
Andreea Pavel
1e5f9a6650 Backed out changeset 5421387a997d (bug 1345081)for failing browser chrome browser/components/extensions/test/browser/browser_ext_menus_events.js on a CLOSED TREE 2018-01-26 17:23:27 +02:00
Gijs Kruitbosch
625c300198 Bug 1345081 - update use of spellchecker 'editable' flags, r=zombie
MozReview-Commit-ID: Hxgc0UuIOPj

--HG--
extra : rebase_source : 5a72fb58f7c610e0906db9a283a8b136c840a07a
2018-01-12 18:51:41 +00:00
Rob Wu
2cf5e43401 Bug 1215376 - fix linting and test issues from rebase r=mixedpuppy
- Work-around in browser_ext_menus_events.js for bug 1428213
- Fix indentation issues (eslint)
- Hide the "pageUrl" property for bookmark menu events
  (fixes test failure in test_bookmark_contextmenu).

MozReview-Commit-ID: 4YHJci0J7Rh

--HG--
extra : rebase_source : 3879e843bd2826fcd34dbd41708d570024e681e8
2018-01-05 01:13:04 +01:00
Rob Wu
31f0051ebc Bug 1215376 - Test menu event order: onShown, onClicked, onHidden r=mixedpuppy
This test ensures that the menu events will always be fired in the
natural event order.

Two menus are tested:
- A context menu in the page.
- The tools menu.

MozReview-Commit-ID: 4sLyvgMYMtE

--HG--
extra : rebase_source : 9837661f034530b63c9cbbbb3104fb6367f513a8
2017-09-26 19:25:22 +02:00
Rob Wu
ea69a1a9b5 Bug 1215376 - Fire menus.onShown for every menu r=mixedpuppy
This commit lifts the restriction that onShown is only fired for
extensions with a visible menu item.

MozReview-Commit-ID: Ao4MgBoRWLR

--HG--
extra : rebase_source : c1acd1bcbfdcc6ef4bfaf199f3f016dde71ad2e5
2017-09-14 18:28:36 +02:00
Rob Wu
fc7e2d4ea9 Bug 1215376 - Add more contextual information to onShown r=mixedpuppy
- Adds most of the OnClickData properties to the onShown event parameter
  (except for menu-specific properties such as parentMenuId / checked).
- Add tests to verify the values of these properties.

MozReview-Commit-ID: 7705sJyAOIJ

--HG--
extra : rebase_source : 8948ea20129cfd1c34653a3cbe9b36cebd6fa00d
2017-09-14 16:37:57 +02:00
Rob Wu
582474fa51 Bug 1215376 - Always use old contextData upon refresh r=mixedpuppy
MozReview-Commit-ID: K1wfFCYpMqB

--HG--
extra : rebase_source : c82f9d01631e3d4160de0c49657dd7d8ca8c7a6a
2017-09-14 02:11:29 +02:00
Rob Wu
e86d6006f0 Bug 1215376 - Add menus.refresh to update menus r=mixedpuppy
Together with the previous patches that introduced menus.onShown,
this enabled extensions to update/remove menu items after a menu
has been shown.

At this point, it is not yet possible to add a menu item if an
extension has not shown a menu item before; this can be added later.

MozReview-Commit-ID: E0JrE9gd4gS

--HG--
extra : rebase_source : 0d21c369eb17b3a819603f27af8d9f9fccf5b783
2017-09-13 03:14:00 +02:00
Rob Wu
a495a0b1c0 Bug 1215376 - Ensure that menu elements have a unique ID r=mixedpuppy
Previously, there was no guarantee for the uniqueness of the ID.
Now the ID is unique, and always set.

See https://bugzil.la/1358213#c6 and #c7 for examples of collisions.

MozReview-Commit-ID: 7CHP6tWFDUg

--HG--
extra : rebase_source : a585dcfd3a83eb590de9b69a02dba8b4bb1b0a0c
2017-09-11 01:01:41 +02:00
Rob Wu
e9a64ba705 Bug 1215376 - Add onShown and onHidden to contextMenus/menus API r=mixedpuppy
This commit adds the bare minimum to support the onShown and onHidden
methods in the contextMenus and menus API (plus tests).

The onShown event data may be extended in a separate commit, to make it
easier to see how the additional properties are reflected in the tests.

MozReview-Commit-ID: 20VJS2YLhTN

--HG--
extra : rebase_source : 1fe9985b2e5daa1be455e07ccf58e36e6d9fe508
2017-09-10 01:38:45 +02:00
Rob Wu
5926434b44 Bug 1215376 - allow itemToSelect to be null in menu closing test utility r=mixedpuppy
Most close*Menu methods in browser tests allow itemToSelect to be null.
Some did not.
Now they do (after this commit)

MozReview-Commit-ID: 2jSGAi2R3ZD

--HG--
extra : rebase_source : 897d4a66f5b1da8027180f85c5f5f5284734e860
2017-09-09 19:41:56 +02:00
dw-dev
9d2e97a23a Bug 1415507 - changes to tabs.saveAsPDF(); r=mixedpuppy
There are three changes:

1. Adds a print progress listener to tabs.saveAsPDF() in ext-tabs.js so that the
  'saved' or 'replaced' status is not returned until the PDF file has been saved.

2. Adds four more "edge" properties to the  pageSettings object to allow positioning
   of the page headers and footers.

3. Adds automated tests for tabs.saveAsPDF() in browser_ext_tabs_saveAsPDF.js that
   cover all returned statuses: saved, replaced, canceled, not_saved, not_replaced.

MozReview-Commit-ID: iljvT8wp11

--HG--
extra : rebase_source : 081f8b6ed56ecaa5f5f5414a11f57b143c0fd19e
2018-01-19 14:13:33 +00:00
Jan Odvarko
c59f2d5676 Bug 1311177 - Implement the devtools.network.getHAR API method; r=jdescottes,rickychien,rpl
MozReview-Commit-ID: gUtGjbr0FQ

--HG--
extra : rebase_source : 78f837101f83d5ad455fc7e2d1f53db054cec4cc
2018-01-22 18:30:46 +01:00
Tooru Fujisawa
f3708770fd Bug 1431961 - Wait for the extension startup code before starting tests in browser/components/extensions/test/browser/browser_ext_user_events.js r=kmag 2018-01-21 14:29:42 +09:00
Oriol Brufau
2259549f9d Bug 1424538 - Allow pageAction and sidebarAction set* methods to accept a null value (desktop). r=mixedpuppy
MozReview-Commit-ID: FqcRrFDYqWp

--HG--
extra : rebase_source : 0ae2cfb1db75f3abbdc9b0e57c56848dadd3a431
2017-12-18 20:41:10 +01:00
Margareta Eliza Balazs
9ba236fd80 Backed out changeset 32daec7fd5b6 (bug 1311177) for bc5 failures in browser/components/extensions/test/browser/test-oop-extensions/browser_ext_devtools_network.js on a CLOSED TREE 2018-01-19 11:54:43 +02:00
Noemi Erli
9f768aa4e8 Backed out changeset 9687e3d987be (bug 1415507) for bc failures in browser/components/extensions/test/browser/browser_ext_tabs_saveAsPDF.js on a CLOSED TREE 2018-01-19 10:22:14 +02:00
Jan Odvarko
e1114707d4 Bug 1311177 - Implement the devtools.network.getHAR API method; r=jdescottes,rickychien,rpl
MozReview-Commit-ID: I9F4tGSwBrt

--HG--
extra : rebase_source : ce3adb6ce47e62302b29651a05276d13621679cb
2018-01-17 13:32:42 +01:00
dw-dev
0af31f6b53 Bug 1415507 - changes to tabs.saveAsPDF(); r=mixedpuppy
There are three changes:

1. Adds a print progress listener to tabs.saveAsPDF() in ext-tabs.js so that the
  'saved' or 'replaced' status is not returned until the PDF file has been saved.

2. Adds four more "edge" properties to the  pageSettings object to allow positioning
   of the page headers and footers.

3. Adds automated tests for tabs.saveAsPDF() in browser_ext_tabs_saveAsPDF.js that
   cover all returned statuses: saved, replaced, canceled, not_saved, not_replaced.

MozReview-Commit-ID: LMTjKDjBwY3

--HG--
extra : rebase_source : 3fc661c737ee5800d9d40e51ecafc11a946e8780
2018-01-18 10:15:36 +00:00
Shane Caraveo
636a2a5a8f Bug 1423725 add show/hide tabs api, r=rpl
MozReview-Commit-ID: 4z73ZTRE7kN

--HG--
extra : rebase_source : 7683973921b07818c7a63ab8387e4ebe65705499
2018-01-18 16:37:18 -07:00
Shane Caraveo
d78ea2931e Bug 1423725 add event, query and details for hidden status, r=Gijs,rpl
MozReview-Commit-ID: AMcmbh4m8lK

--HG--
extra : rebase_source : 6e8c246cbe69e4d298de031361e10276ddbf7551
2018-01-18 16:37:11 -07:00
Oriol Brufau
ac5db38313 Bug 1427107 - Reject setBadgeBackgroundColor promise for invalid string colors r=mixedpuppy
MozReview-Commit-ID: 1XXiQCDe7Tu

--HG--
extra : rebase_source : df1ab14e9473d1fab42016ea31823274838bffdd
2018-01-11 18:56:18 +01:00
Oriol Brufau
52b205414a Bug 1427431 - Add methods to check if browser/page/sidebar actions are enabled/shown/open r=mixedpuppy
MozReview-Commit-ID: DPbg8SwKVQL

--HG--
extra : rebase_source : 9364415cfed7ed47083d2b67782930ed99d9a021
2018-01-11 18:19:02 +01:00
Tim Nguyen
40b755ffc4 Bug 1427463 - Implement tabs.captureTab(tabId). r=mixedpuppy
MozReview-Commit-ID: 5sr3I1A1b8A

--HG--
rename : browser/components/extensions/test/browser/browser_ext_tabs_captureVisibleTab.js => browser/components/extensions/test/browser/browser_ext_tabs_captureTab.js
extra : rebase_source : 3bcadd40eb506bbaef53f0cafcbcd4347e5cf58b
2018-01-10 14:51:43 +00:00
Luca Greco
fdcbd7477c Bug 1380855 - Fix intermittency and speed up devtools panel webextension test. r=mixedpuppy
MozReview-Commit-ID: 27DFuD9hYUa

--HG--
extra : rebase_source : e2fb1576ae60f150630613f5c2e5d5d137651fb7
2018-01-05 19:16:53 +01:00
Tooru Fujisawa
75c3fdab9c Bug 1426599 - Wait for the next event tick after onLocationChange, in browser/components/extensions/test/browser/browser_ext_url_overrides_newtab.js. r=Gijs 2018-01-06 16:24:43 +09:00
Luca Greco
d9b0711c09 Bug 1425224 - Use manifest.ExtensionURL in devtools.panels.create API schema. r=mixedpuppy
MozReview-Commit-ID: AR6j1fC0PmJ
2017-12-14 18:20:59 +01:00
Lukas Jung
21f7b5704f Bug 1370228 - "Context menu title with placeholder always shows ellipsis" [r=mixedpuppy]
--HG--
extra : rebase_source : aaf2763c9f28d196376e5d543978b7e6b788b704
2017-12-21 08:33:00 +02:00
Andrew Swan
e66f92191d Bug 1426259: Revamp processing of manifest.json for themes r=kmag
MozReview-Commit-ID: 6dWy8wwrobY

--HG--
extra : rebase_source : f742c50f06a358b30f20eabf1cd81713dbfaa86f
2017-12-20 16:06:50 -08:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Tim Nguyen
fd655b880c Bug 1425868 - Consolidate arrow panel styling. r=dao
Original patch by Jared Wein [:jaws]

MozReview-Commit-ID: D8GxCjJ8Si3

--HG--
extra : rebase_source : 3f877d5b69e3ab86ad7d8b769e6b5459cea3b5bf
2017-12-19 08:00:00 -06:00
Andrew Swan
b71f9b4b1a Bug 1423425 Stop reading the Extension.jsm module object in specialpowers r=kmag
The return value from Cu.import() does not include lexically scoped
symbols so stop using it here.  Also stop using Extension.generate()
while we're here.

MozReview-Commit-ID: HnX3RGgDHbR

--HG--
extra : rebase_source : b4e238f2a5f1c9dce838b4dd70447edd9f401c10
2017-12-18 10:32:23 -08:00
Mark Striemer
02fae21b7d Bug 1414018 - Go to new New Tab page after disabling add-on in New Tab doorhanger r=aswan
MozReview-Commit-ID: 7ZXehNEC6ml

--HG--
extra : rebase_source : b1b78fe53e1049df326649a76be5a39259ebc919
2017-11-29 17:14:54 -06:00
Andreea Pavel
5ba2665757 Merge inbound to mozilla-central r=merge a=merge 2017-12-09 22:21:17 +02:00
Kris Maglione
4a4c4fdfd4 Bug 1421459: Update to ESLint 4 "indent" rule. r=aswan
MozReview-Commit-ID: LxLDWlsIlSk

--HG--
extra : rebase_source : 5762bdf08ff6c09c1b29f87366bddb552e4c74b2
extra : amend_source : 922a0c03722bd5a81daace7f0289ec3228191cfb
2017-11-28 14:13:59 -08:00
Bill McCloskey
9f4d083047 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-07 12:55:24 -08:00
Oriol Brufau
a9a6960797 Bug 1419940 - Allow browserAction set* methods to accept a null value. r=aswan
MozReview-Commit-ID: H2UfUITBEMm

--HG--
extra : rebase_source : 470bcb87dc3389430068bd374084192a375aa1fd
2017-11-29 05:50:00 +01:00
Andreea Pavel
89531e8dc3 Backed out 9 changesets (bug 1412456) for crashing talos g2 and unexpected network connections in browser-chrome's browser_searchEngine_behaviors.js r=backout a=backout on a CLOSED TREE
Backed out changeset 0c01a98f4fd5 (bug 1412456)
Backed out changeset 27077db47231 (bug 1412456)
Backed out changeset f35ec2a884f8 (bug 1412456)
Backed out changeset 602b30ac3c69 (bug 1412456)
Backed out changeset b1ff1050c589 (bug 1412456)
Backed out changeset f100d953f9eb (bug 1412456)
Backed out changeset d85af60fe259 (bug 1412456)
Backed out changeset 736f38486832 (bug 1412456)
Backed out changeset 13a637602dc2 (bug 1412456)
2017-12-07 12:20:21 +02:00
Bill McCloskey
bef7c122df Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 21:17:05 -08:00
Dorel Luca
eb65c24c7b Backed out 8 changesets (bug 1412456) for ESlint failure on browser_urlbarKeepStateAcrossTabSwitches.js:13:49 r=backout on a CLOSED TREE
Backed out changeset 0e88de036c55 (bug 1412456)
Backed out changeset 49b93f807db0 (bug 1412456)
Backed out changeset 039e980b7dc6 (bug 1412456)
Backed out changeset c7698410ddbd (bug 1412456)
Backed out changeset e56a1ba26b7c (bug 1412456)
Backed out changeset 0c4506e124ac (bug 1412456)
Backed out changeset a7aec2ce903b (bug 1412456)
Backed out changeset 3e9fb71f1e8e (bug 1412456)
2017-12-07 07:09:33 +02:00
Bill McCloskey
be77cf4a01 Bug 1412456 - Test changes to no longer use interposition (r=felipe,bgrins,mrbkap)
MozReview-Commit-ID: 2nQPOSGTr1s
2017-12-06 20:46:58 -08:00
Ryan VanderMeulen
d945b2a059 Bug 1423667 - Disable some tests that fail on Windows Code Coverage builds with clang-cl r317840. rs=marco
--HG--
extra : histedit_source : d2f4b4d59301469c4cabb7198f0f98c5247eab84
2017-12-06 20:40:46 -05:00
Shane Caraveo
f27fb376d0 Bug 1419842 support pattern matching to show/hide pageActions, r=aswan
MozReview-Commit-ID: bYcR08xX8r

--HG--
extra : rebase_source : cdd22772e6b319dc3fb2c8895503bf22f872f745
2017-12-05 14:41:21 -08:00
Ciure Andrei
48e5c9892f Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-02 12:19:55 +02:00
Tooru Fujisawa
07264d6840 Bug 1420319 - Wait for the next event tick before resolving promise in browser_ext_optionsPage_modals.js. r=jaws 2017-12-01 22:35:59 +09:00
Thomas Nguyen
d67c09f7dd Bug 1345433 - Ensure tests load pass valid triggeringPrincipal. r=ckerschb,JanH
MozReview-Commit-ID: LWcP7drDPwL

--HG--
extra : rebase_source : 3741530254b3cb2627f798cf22eacf64c29a8b9e
2017-10-23 18:15:40 +08:00
Bob Silverberg
c86e3d1c91 Bug 1408472 - Read-only browserSettings should return false on write attempts, r=mixedpuppy
This updates browserSettings so that calling set and clear return false, rather than undefined,
for read-only settings. It also returns "not_controllable" rather than "controllable_by_this_extension"
for levelOfControl from calls to get for read-only settings.

MozReview-Commit-ID: 9c0bKDaYIC7

--HG--
extra : rebase_source : c47c97bcc19095bf1945e111e13e2a8f02e98799
2017-11-28 12:11:23 -05:00
Bob Silverberg
9e8f1233a1 Bug 1415913 - tabs.create without a windowId should target only normal windows, r=aswan
This introduces a new property to WindowTracker (on desktop only) called topNormalWindow
which returns the topmost window which is not a popup window. That property is then used
by tabs.create to identify the top "normal" window when a windowId is not passed to it.

Bug 1421709 has been filed to look for other opportunities to use topNormalWindow
in place of topWindow in our codebase.

MozReview-Commit-ID: DcV93wO6FoV

--HG--
extra : rebase_source : 7c7be7c364cc627d385929a2c9fd2dee757bf835
2017-11-20 17:00:20 -05:00
Tiberius Oros
18ea9ecad9 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
--HG--
rename : devtools/client/webconsole/new-console-output/test/mochitest/test-bug-618078-network-exceptions.html => devtools/client/webconsole/new-console-output/test/mochitest/test-network-exceptions.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.html => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.html
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js
rename : devtools/client/webconsole/new-console-output/test/mochitest/test_bug1092055_shouldwarn.js^headers^ => devtools/client/webconsole/new-console-output/test/mochitest/test-subresource-security-error.js^headers^
extra : rebase_source : e126b0ab427161de0acd67cdfb9a1434415412dc
2017-11-29 02:25:59 +02:00
tushararora
ec914abaff Bug 1402399 - Fix browser.windows.update to clear titlePreface if it is passed empty. r=bsilverberg, r=mixedpuppy 2017-10-13 12:38:19 +05:30
Mark Striemer
5c1b7369e5 Bug 1415029 - Use better extension icon in identity block r=johannh
MozReview-Commit-ID: CFTIe9I9mfe

--HG--
extra : rebase_source : 763d0cce8ebc278b285e5810ab01f6c180f56988
2017-11-27 11:36:10 -06:00
tushararora
b990216761 Bug 1334782 - tabs.query should pattern match the title r=zombie
MozReview-Commit-ID: 5WaKLaOP7Nc

--HG--
extra : rebase_source : 6d317b643cd6d6f38659dfc5cc0c8e16bee74e56
2017-11-16 16:17:45 +05:30
Marco Bonardo
42c2f7913b Bug 1416142 - Intermittent timeout in browser_ext_omnibox.js. r=standard8
MozReview-Commit-ID: DAZumEpI1xB

--HG--
extra : rebase_source : d422ca4bd2afbf2ae7ea27027a2cddc0ff445a23
2017-11-23 13:47:34 +01:00
Bob Silverberg
dec75b31da Bug 1416039 - Fix intermittent browser_ext_tabs_lastAccessed.js, r=mixedpuppy
The recent failures all seem to be on the assertion that lastAccessed of tab 1 is
later than the test start time. It's possible that things happen so quickly that
lastAccessed of tab 1 is the same as the start time, so this patch changes the
comparison to be a <=.

MozReview-Commit-ID: 67CVQPj1ShM

--HG--
extra : rebase_source : c370422f3c9e54bbae8b4e7827c671c5a784ce7b
2017-11-24 08:26:34 -05:00
Mark Striemer
8a1f9ea7ae Bug 1390158 - Notify user of extension controlling New Tab on first access r=aswan,jaws
MozReview-Commit-ID: 1g9d4UTuOgr

--HG--
extra : rebase_source : 29e07cff103e7751bf4ca414a88f89136d3ac237
2017-11-22 19:00:58 -06:00
Tiberius Oros
797c93d81f Merge inbound to mozilla-central r=merge a=merge 2017-11-21 11:55:23 +02:00
Tooru Fujisawa
50f5bf47cd Bug 1418739 - Part 2: Remove unused delayedStartup parameter from BrowserTestUtils.waitForNewWindow. r=smaug 2017-11-21 03:41:56 +09:00
Bob Silverberg
ea5edb4f6a Bug 1404584 Part 3: Convert ExtensionPreferencesManager to use update and uninstall events, r=aswan,jkt
This includes removing the "web-extension-preferences-replacing" and "web-extension-preferences-replaced"
notifications as they are no longer needed.

MozReview-Commit-ID: IjNf4BImgas

--HG--
extra : rebase_source : a48e72c291ebd509d19e9e94196d3600eb7328c4
2017-11-01 09:51:41 -04:00
Bob Silverberg
d5a84e4c0a Bug 1404584 Part 2: Convert ext-chrome-settings-overrides to use update and uninstall events, r=aswan,mkaply
MozReview-Commit-ID: KtagRbDz19S

--HG--
extra : rebase_source : 07b6aca0c1ad1653397055fc0ab61c2f37ad51bb
2017-11-01 09:50:03 -04:00
Tim Nguyen
a8dec5b3f6 Bug 1370499 - Support WebExtensions bookmark context menus. r=mixedpuppy
MozReview-Commit-ID: AkYxeGHlDvi

--HG--
extra : rebase_source : 104e86ceec0994076b1c05d6de2000ac1bc77e8c
2017-11-20 23:01:02 +00:00
Tim Nguyen
6a9b3a4737 Bug 1415872 - Implement colors.tab_text and colors.background_tab_text. r=jaws
MozReview-Commit-ID: Gp5CHqmOi6A

--HG--
extra : rebase_source : 3d88c63a68721a120161b9ddb915eb05a24ad9e0
2017-11-15 17:34:12 +00:00
Xidorn Quan
7d5f568abc Bug 1417281 part 2 - Add 32x32 theme icon in browser_ext_browserAction_theme_icons.js test so that it works as expected on HiDPI as well. r=mixedpuppy
MozReview-Commit-ID: DLFuxxeVyTR

--HG--
extra : rebase_source : 4c83df88e8a99a5886f481774dfbf0ce4eec16ab
2017-11-14 17:55:06 -08:00
Mark Banner
ab78a2a54d Bug 1371293 - Fix instances of space-before-function-paren failures after ESLint 4 upgrade. r=mossop
MozReview-Commit-ID: 5XfdCSDjLEG

--HG--
extra : rebase_source : 96335eec91a40f893ff28a1c002653b758d8f24d
2017-11-06 13:46:21 +00:00
Joel Maher
fdb492189b Bug 1285500 - Disable browser_ext_browserAction_popup.js on windows/debug for frequent failures. r=me, a=testonly 2017-11-13 12:20:01 -05:00
Drew Willcoxon
46c5139ac2 Bug 1413574 - Hide disabled page actions and offer a "Manage Extension" command for actions in extensions. r=Gijs
MozReview-Commit-ID: HJpu9Jfi2bB

--HG--
extra : rebase_source : ee219138b8df1744c223d81281d9525c3d7b7227
2017-11-10 11:06:02 -05:00
Bob Silverberg
0e9d7b7ac2 Bug 1381684 - Fix intermittent browser/components/extensions/test/browser/browser_ext_tabs_lastAccessed.js, r=mixedpuppy
This patch introduces two changes to the test:

1. It breaks apart the assertion that was combining three tests into individual assertions, so if this does
fail again in the future it will be easier to spot the actual problem.

2. It uses addTab and browserLoaded instead of openNewForegroundTab, which seems to allow the test to wait
long enough before starting the extension.

When I was able to reproduce the failure, after separating the assertions, I found the one that was failing
was the check that tab2.lastAccessed was less than the current time. I believe that the current time was being
recorded too soon, which is why I changed the test to not record the current time until after both tabs have
completed loading. This seems to fix the intermittent locally for me.

MozReview-Commit-ID: I3VoYODwjgz

--HG--
extra : rebase_source : 34729a3ae02e9266cf5aee63de293786403a46e9
2017-10-30 13:39:53 -04:00
Marco Bonardo
223e6dec30 Bug 1402286 - chunk notifyResults calls so that we don't run all the autocomplete js for each match. r=adw
MozReview-Commit-ID: GuYew5B30WQ

--HG--
extra : rebase_source : 236f6fe83728ddbb9d73c4f7606aca2187e267b5
2017-10-31 11:13:47 +01:00
Gijs Kruitbosch
c8a6cce3c5 Bug 1387081 - stop re-adding the sidebar button to the toolbar now that it's there by default, r=mixedpuppy
MozReview-Commit-ID: 9e1eFaVltMO

--HG--
extra : rebase_source : b05d6e7034037da95187d25303d359b4c2e67179
2017-11-08 18:01:53 +01:00
Drew Willcoxon
e42d94c099 Bug 1413692 - Extensions page actions are pinned to address bar again and again. r=mixedpuppy
MozReview-Commit-ID: HrhYTNSwygH

--HG--
extra : rebase_source : e67932403b4294902c5096883cb5be6759969d69
2017-11-06 21:19:26 -05:00
Shane Caraveo
6cd7d5e813 Bug 1413648 fix default extension icon use, r=aswan
MozReview-Commit-ID: 3Dh2DjGIAgn

--HG--
extra : rebase_source : da88dcede96fa8f89cca1e9abf9baabb78a73855
2017-11-02 15:49:38 -07:00
Tomislav Jovanovic
bf724a5a3a Bug 1409433 - Handle contextmenu clicks in non-tab content r=aswan
MozReview-Commit-ID: BSTb0ATBfbh

--HG--
extra : rebase_source : 03888d08aab2dd58f8886d1adc0baa1d2c658c8f
2017-11-01 23:00:33 +01:00
Michael Kaply
c7b960e287 Bug 1413298 - Allow search encoding to be specifed by WebExtension. r=florian,mixedpuppy
MozReview-Commit-ID: 4O73NlqIfjm

--HG--
extra : rebase_source : d9859034a5e98879c7911a802cc6b631e1d3f0a1
2017-10-31 20:15:49 -05:00
Csoregi Natalia
452c8e7040 Backed out 1 changesets (bug 1413298)
Backed out changeset 2b8095d47140 (bug 1413298) for failing ESLINT browser_ext_settings_overrides_search.js:37 r=backout on a CLOSED TREE
2017-11-01 15:11:39 +02:00
Michael Kaply
c2e017ed48 Bug 1413298 - Allow search encoding to be specifed by WebExtension. r=florian,mixedpuppy
MozReview-Commit-ID: 4O73NlqIfjm

--HG--
extra : rebase_source : 5bec3399533e3832d50593e8172d9f053e435291
2017-10-31 20:15:49 -05:00
Phil Ringnalda
90dde0bad4 Backed out 2 changesets (bug 1345433) for eslint bustage
Backed out changeset 7353f6f68571 (bug 1345433)
Backed out changeset 6ee966b99e7e (bug 1345433)

MozReview-Commit-ID: 47mqBLmmBpv
2017-10-31 19:35:18 -07:00