Commit graph

1451 commits

Author SHA1 Message Date
Kris Maglione
6af7aa725e Bug 1254194: [webext] Fix tests that violate the default CSP. r=aswan
MozReview-Commit-ID: GAon89LFr6C

--HG--
extra : rebase_source : 64d00126b0cad8e3a90e5f4a5f5894275c8be1ee
2016-04-14 16:36:47 -07:00
Tom Schuster
3a65a5c1e9 Bug 1253134 - Sorry eslint, I am so sorry. r=me 2016-03-17 13:13:18 +01:00
Tom Schuster
7fe37de259 Bug 1253134 - Support drawAttention in browser.windows.update. r=kmag 2016-03-17 12:59:11 +01:00
Sebastian Hengst
1b915e4b70 Backed out changeset 562dbcad5a6e (bug 1245355) for leaking windows and a docshell in its new test browser_ext_tabs_getAllInWindow.js. r=backout 2016-03-16 19:19:41 +01:00
Matthew Wein
eb7409d4cd Bug 1245355 - Add a unit test for tabs.getAllInWindow r=kmag
MozReview-Commit-ID: 5wVRCLdCuq9

--HG--
extra : rebase_source : 3d937ea9c1806499d6ae0701014728700687f07f
2016-03-15 12:01:40 +01:00
Luca Greco
6da64ce4b7 Bug 1253565 - [webext] add "UnrecognizedProperty" to commands manifest properties. r=kmag
MozReview-Commit-ID: 9r2MaceQ4Kk

--HG--
extra : rebase_source : 821b61420f2efc7d2657cfc12c3e2c8be172a8aa
2016-03-14 12:03:46 +01:00
Luca Greco
4db518f06e Bug 1253565 - [webext] use 'UnrecognizedProperty' on browser and page actions. r=kmag
MozReview-Commit-ID: 8RfrogKRoP8

--HG--
rename : browser/components/extensions/test/browser/browser_ext_browserAction_simple.js => browser/components/extensions/test/browser/browser_ext_pageAction_simple.js
extra : rebase_source : 1b44d01bd33bf92190aa9b712f800b5afa28d571
2016-03-14 12:26:45 +01:00
Blake Winton
157a38bc63 Bug 1225633 - Add better default styles to WebExtension panels. ui-r=shorlander, r=kmag
MozReview-Commit-ID: 8D7BipQtQYz

--HG--
extra : rebase_source : 448eba7a88076db1ee7948cea67749e12d427df9
2016-02-22 15:21:34 -05:00
Ryan VanderMeulen
da1885e860 Merge inbound to m-c. a=merge 2016-03-12 15:23:38 -05:00
Kris Maglione
128a5928cb Bug 1250784: Part 3 - [webext] Add suport for runtime.openOptionsPage. r=Mossop
MozReview-Commit-ID: 9izx4uX0Szd

--HG--
extra : rebase_source : d474f77b37007f8b7e3118781af4b3d8d64aac61
2016-03-09 17:10:29 -08:00
Kris Maglione
7dfe8256b3 Bug 1250784: Part 2 - [webext] Fix some issues that cause noisy tests. r=Mossop
MozReview-Commit-ID: 93NMinJpWRo

--HG--
extra : rebase_source : 5d7571a2d75c7991cb7eb7f00de9800578e3791a
2016-03-09 17:26:27 -08:00
Kris Maglione
876d0a0806 Bug 1220154, 1249830: Handle sendMessage replies with 0 and >1 listeners correctly. r=billm
MozReview-Commit-ID: 7lE7RaJcl7n

--HG--
extra : rebase_source : 424987c745840d56647600b8d9e1bf941afb1d95
2016-03-04 15:40:56 -08:00
Kris Maglione
00f1d01219 Bug 1236949: Split up browser_ext_tab_move_window.js. r=me
MozReview-Commit-ID: 5WEdXucSFKa

--HG--
extra : amend_source : f0780333c54467fa2216ef28be6942b2c7d521b0
2016-03-06 17:52:56 -08:00
Kris Maglione
d53da79b1c Bug 1253128: [webext] Support type=popup in the browser.windows API. r=billm
MozReview-Commit-ID: ALgprY2w7w9

--HG--
extra : rebase_source : 3608b83eb0538f1ff90a65ee064e2df544abddac
2016-03-03 18:44:18 -08:00
Kris Maglione
ebd03d7771 Bug 1253132: [webext] Support window states in browser.windows APIs. r=billm
MozReview-Commit-ID: LIw6swRAB3h

--HG--
extra : rebase_source : ab313986de1b12e9a38d341da16c8338cc3ea5e5
2016-03-05 09:59:35 -08:00
Matthew Wein
94fc7c715c Bug 1215375 - Add support for checkboxes, radio groups, and icons. r=kmag 2016-03-02 15:10:01 -08:00
Xidorn Quan
b8db274b17 Bug 1255659 part 2 - Add 'fullscreen' tag to tests which ever put window into fullscreen. r=smaug
MozReview-Commit-ID: EBynEGbpYQU

--HG--
extra : rebase_source : 1f777ff519e602403486d24e739b252a2dfc8428
2016-03-11 10:45:00 +08:00
Kris Maglione
cfcc885616 Bug 1190663: [webext] Add tests for window.close() in browserAction and pageAction popups. r=rpl
MozReview-Commit-ID: 8r08YRw7IGr

--HG--
extra : source : 09d8e3caf51daf1554673799609b575de4383a02
extra : amend_source : 64785002b2d8e113b744358a88154f2dd95f9814
2016-02-27 15:29:42 -08:00
Kris Maglione
301a3bd87e Backed out changeset 09d8e3caf51d (bug 1190663) for intermittent mochitest failures on Windows
MozReview-Commit-ID: BsHw1BxNF2t
2016-03-02 19:50:22 -08:00
Kris Maglione
67341496bf Bug 1190663: [webext] Add tests for window.close() in browserAction and pageAction popups. r=rpl
MozReview-Commit-ID: 8r08YRw7IGr

--HG--
extra : rebase_source : 6a88ac0d76b7a9d4659737edec09e62d98a21a1b
2016-02-27 15:29:42 -08:00
Luca Greco
b1e808ad5f Bug 1249144 - [webext] Test explicitly the frameId/parentFrameId associated to the toplevel frame. r=billm
MozReview-Commit-ID: 9E7LmdyHcnG

--HG--
extra : transplant_source : %94%99L%24%3Bg%C0%F1%B6%E9%F7%20%D5%E1%1C.%3C%C8%F7/
2016-02-18 01:56:09 +01:00
Kris Maglione
66f9b57852 Bug 1248499: [webext] Implement tabs.detectLanguage. r=billm
MozReview-Commit-ID: F4GpSesj2ho

--HG--
extra : rebase_source : e9ffab3396b4f813c60e366c371ea54baccc160a
2016-02-26 13:20:28 -08:00
Kris Maglione
89517813d0 Bug 1251890: Fix RemoveTopWindowID listener. r=billm
MozReview-Commit-ID: 4nQdPszQOy

--HG--
extra : rebase_source : 970b616c972d2ed7fd3bcd163e662a00f8267bdd
2016-02-27 14:11:25 -08:00
Kris Maglione
a3d6e11dea Bug 1248497 – Add promise support to the sendMessage APIs. r=billm
MozReview-Commit-ID: AZH9LUq8kGr

--HG--
extra : rebase_source : 2bf4d05544e6c22cb22de5b97fc523c477813ca3
2016-02-15 17:37:19 -08:00
Kris Maglione
dce2b3c2cd Bug 1214955: [webext] Automatically localize all localizable manifest properties. r=billm
MozReview-Commit-ID: 2kvYT44NIE8

--HG--
extra : rebase_source : ebab864b517c2e576dde27cf1439cf2deadb0685
2016-02-29 19:34:49 -08:00
Andy McKay
8149342574 Bug 1248460 - pin during SSTabRestoring. r=kmag
MozReview-Commit-ID: A88UnreihK7

--HG--
extra : transplant_source : %93%C6Y%ADh%E1q%E7%840%93%F90%86w%EA%C6l%02O
2016-02-29 13:45:36 -08:00
Matthew Wein
22fd2a0fc9 Bug 1246029 Implement chrome.commands.onCommand. r=kmag 2016-02-29 19:04:03 -08:00
Carsten "Tomcat" Book
83adb66526 merge mozilla-inbound to mozilla-central a=merge 2016-03-01 12:01:58 +01:00
Andrew Swan
6bf77c377d Bug 1252181 - switch browser_ext_runtime_setUninstallURL.js to temporary add-on install r=mossop
MozReview-Commit-ID: JjjR76gkI3M

--HG--
extra : rebase_source : 64e37359e838eafe4ad2a138660f5bcf392fac2a
2016-02-29 11:11:45 -08:00
Kris Maglione
2eda01945e Bug 1213993: [webext] Support frameId/allFrames/runAt in browser.tabs.executeScript and insertCSS. r=billm
MozReview-Commit-ID: FgV9vyHVjj8

--HG--
extra : rebase_source : 04582c711ef40f3afc7eeaa9e4dec2e31b63e4e0
2016-02-08 17:40:02 -08:00
Luca Greco
024940a637 Bug 1227462 - Test tabs.create/update on allowed and disallowed URLs. r=kmag
MozReview-Commit-ID: 2cZST9GwTaw

--HG--
extra : rebase_source : 9030bc0ab686eb4dc86bf95436c2d0af3d2d63bb
2016-02-25 18:14:51 +01:00
Matthew Wein
b1ab0e41fd Bug 1220124 - Add support for chrome.tabs.onhighlight. r=kmag
MozReview-Commit-ID: BB6vJl8qV4l

--HG--
extra : rebase_source : fcbe0bd0aa21e47c2524e57434dded91592efe9d
extra : source : 90494d4d76ab4587805ad27cc663fa7407b04450
2016-02-07 18:35:22 -08:00
Matthew Wein
c822f61ac1 Bug 1246028 Implement chrome.commands.getAll. r=kmag 2016-02-24 17:29:04 -08:00
Phil Ringnalda
dd373cbd2b Back out 6d8c09f110ee (bug 1246028) for landing before it got its nits picked 2016-02-24 18:40:42 -08:00
Luca Greco
4b9a1c10fb Bug 1249144 - [webext] fix sorting collected frame details in webNavigation tests. r=kmag
MozReview-Commit-ID: ay5fGRGSpW

--HG--
extra : transplant_source : %AC%05%86w%18%F7Q%0B%F4%BA%7Ci%F5k.%E7%80%0Ak%B9
2016-02-19 04:09:16 +01:00
Matthew Wein
1db30ea608 Bug 1246028 - Implement chrome.commands.getAll. r=kmag 2016-02-23 16:13:16 -08:00
Kris Maglione
2b5bba8484 Bug 1247493: [webext] Implement the tabId property of windows.create. r=billm
MozReview-Commit-ID: Jw4KvvUqkBh

--HG--
extra : source : cf766413a25e77d31495f2b6e7d38e1d1bb40603
extra : amend_source : 1abfec3bf52538cae5391235527cd0bc6a60481f
2016-02-17 11:46:19 -08:00
Kris Maglione
5201cc7869 Bug 1238313: Part 1 - Implement tabs.onMoved event. r=billm
MozReview-Commit-ID: F2GoU1fzj4s

--HG--
extra : source : c893cd374dcd93adc833e3bcc05e725176bfd523
2016-02-11 14:32:58 -08:00
Kris Maglione
40152a25bd Bug 1234086: [webext] Add support for tabs.onAttached/onDetached events. r=billm
MozReview-Commit-ID: 4Kk1mTdGflI

--HG--
extra : source : 5ec466af51e171623333ad644a94034b55b73b08
2016-02-17 11:52:33 -08:00
Wes Kocher
099649f263 Backed out changeset 5ec466af51e1 (bug 1234086) for failures in browser_ext_tabs_update.js
--HG--
extra : commitid : F0V50PvojGj
2016-02-17 14:31:04 -08:00
Wes Kocher
5eb7c4d849 Backed out changeset c893cd374dcd (bug 1238313)
--HG--
extra : commitid : JH50wJBbF9C
2016-02-17 14:30:56 -08:00
Wes Kocher
9ed5a2a0d7 Backed out changeset cf766413a25e (bug 1247493) for failures in browser_ext_tabs_update.js
--HG--
extra : commitid : yaJz71RWlF
2016-02-17 14:30:53 -08:00
Kris Maglione
9fc87de614 Bug 1247493: [webext] Implement the tabId property of windows.create. r=billm
MozReview-Commit-ID: Jw4KvvUqkBh

--HG--
extra : rebase_source : 5434dfc85356a75ae32b4c5c47e4f689f916ec96
extra : histedit_source : 1f1e15a93b4a161e442c41c7bd95614f625cffde
2016-02-17 11:46:19 -08:00
Kris Maglione
f53c090725 Bug 1238313: Part 1 - Implement tabs.onMoved event. r=billm
MozReview-Commit-ID: F2GoU1fzj4s

--HG--
extra : rebase_source : 10122f7aa1a207591cbd23ffe76609a3715ff014
extra : histedit_source : cb6b4bbbde239e9481e68f9c5fc64a872dad76ee
2016-02-11 14:32:58 -08:00
Kris Maglione
937b9251be Bug 1234086: [webext] Add support for tabs.onAttached/onDetached events. r=billm
MozReview-Commit-ID: 4Kk1mTdGflI

--HG--
extra : rebase_source : bf075da744ba920bfb94587d1376a48125ddb21f
extra : histedit_source : 134b55b5e5e2bc482b33cd40c1e50145e42773e2%2C78d2857bbf3f558d3a15a161f0d63e44c9411b36
2016-02-17 11:52:33 -08:00
Andy McKay
c123766e69 Bug 1238312 - implement tabs.duplicate. r=kmag
MozReview-Commit-ID: Fzd6BuAEgSl

--HG--
extra : transplant_source : %F3%1C%C6%13Hn%DF%051%2B%7D%AB%D1%AE%F17Y%05oF
2016-02-12 15:38:55 -08:00
Kris Maglione
ba2e5f60f4 Bug 1248855 - [webext] Add "object-curly-spacing" ESLint rule and auto-fix errors. r=billm
MozReview-Commit-ID: BAZ2rRl7eSM
2016-02-16 20:10:00 -08:00
Kris Maglione
985ebffc86 Bug 1234020: Part 2h.1 - [webext] Convert async API errors to rejected promises. r=billm
--HG--
extra : commitid : LDemRHYLfgu
extra : rebase_source : d8ddc14439e11884de7386092c914901c92d94a1
extra : histedit_source : 8c13d6259633a05950804250ee09b9d0303c2a86%2C1629c18f964d4a2e37ee694f4077f007d8bde6e4
2016-02-10 17:01:38 -08:00
Andrew Swan
c28e53d13a Bug 1156826 - Implement browser.runtime.setUninstallURL(). r=kmag 2016-02-08 16:00:25 -08:00
Luca Greco
761ed86097 Bug 1190685 - [webext] Add webNavigation.getFrame/getAllFrames test cases. r=kmag 2016-02-08 18:29:44 +01:00
Kris Maglione
f0a1600d9a Bug 1234020: Part 2a - [webext] Return promises from the background page APIs. r=rpl
--HG--
extra : commitid : 6QaVA3XIUzC
extra : rebase_source : a769506ee88b7ac0e4b972c26750409adec5239c
extra : histedit_source : 1768cb7a91aa363ee2ea0d5094ad8e5a18eb9605
2016-02-02 19:14:34 -08:00
Kris Maglione
109944fbfe Bug 1234020: Part 2j - [webext] Return promises from the tabs API. r=rpl
--HG--
extra : commitid : EK8NBTwpaM6
extra : rebase_source : ed2d93f292f53a5314b4e05b2668a05291f70b7b
2016-02-05 18:50:58 -08:00
Kris Maglione
544b3cd429 Bug 1234020: Part 2h - [webext] Return promises from the pageAction API. r=rpl
--HG--
extra : commitid : q1OQLdF7VP
extra : rebase_source : 78a7a2cc0a73ae9f57c2a7111aeae96b5b8fef72
2016-02-01 18:16:00 -08:00
Kris Maglione
a2027208b5 Bug 1234020: Part 2g - [webext] Return promises from the browserAction API. r=rpl
--HG--
extra : commitid : GQvpkew9gD
extra : rebase_source : ec53fa009edc8c874895f2f1abf8d896c5dd6753
2016-02-01 18:14:05 -08:00
Kris Maglione
c5b5341056 Bug 1231819: [webext] Implement the captureVisibleTab API. r=billm
--HG--
extra : commitid : 1KrAIBW3HgQ
extra : rebase_source : c11b44c28a967d65e66eca9a5a8bb73e36f17ab3
extra : amend_source : af19f6d511e3fa1c8f143e08a7a99b60dc5c044c
2016-01-25 17:48:54 -08:00
Matthew Wein
ca74460c52 Bug 1234308 - Fix tabs.onCreated callback to receive bare tabs object (bug 1234308); r=kmag
--HG--
extra : rebase_source : 849a3e2ddff63876202023f6590d7764a7cfe8eb
2016-01-27 16:33:32 -08:00
Kris Maglione
43657b1388 Bug 1244488: Fix intermittent failure caused by overly strict console listener. r=me
--HG--
extra : commitid : L4nSGtBUKbh
2016-01-30 23:08:03 -08:00
Kris Maglione
278a332b02 Bug 1225715: Part 5 - Add schema for extension manifests. r=billm
This currently forbids unknown top-level schema properties, and unknown
permissions. In the future, I'd like to make those warnings rather than
errors, for compatibility purposes, but I think errors are fine for now.

--HG--
extra : commitid : 9jGEwCU9AhR
extra : rebase_source : db16f1e5f9962fb7b24c0e52c05832ae646a57c2
2016-01-30 10:27:02 -08:00
Kris Maglione
e391b5ccaf Bug 1190680: Part 2 - [webext] Add initial support for lastError callbacks. r=billm
--HG--
extra : commitid : KyImBk4vvCu
extra : rebase_source : f05432e862480ca7e4c81c9fd663822bba63c7af
extra : histedit_source : 6cec5cd0c0c4986f0b22e4338b2e6da3cb851ef7
2016-01-29 18:38:08 -08:00
Kris Maglione
4b5513634b Bug 1238311: Part 3 - [webext] Add audible and muted support to browser.tabs API. r=gabor
--HG--
extra : commitid : 36za12ltvib
extra : rebase_source : 321506a4d0ab68ed6db18536a513584c50231c78
extra : histedit_source : 2787bfcb88593f5e943a77f64a51946e7d011db1
2016-01-26 17:06:41 -08:00
Carsten "Tomcat" Book
323b54c218 merge mozilla-inbound to mozilla-central a=merge 2016-01-28 12:13:37 +01:00
Kris Maglione
840051ba5c Bug 1210583: Part 2 - [webext] Support callbacks in tabs.executeScript/tabs.insertCSS. r=billm
--HG--
extra : commitid : K6slT54Lfwg
extra : rebase_source : d2e519e7932169e59c655ce0013ca7a488cef2d6
extra : histedit_source : b7b8a66f2fd4a0943a8c8c8ca20f8384b999d98e
2016-01-25 20:25:11 -08:00
Olivier Yiptong
7efb135032 Bug 1240169 - aboutNewTabService relies on AboutRedirector for default URL resolution r=mconley
--HG--
extra : commitid : LGNcbCje6o4
extra : rebase_source : 0476c10707a52f5a559911f01a37cec1fe6cd171
2016-01-27 13:50:18 -05:00
Kris Maglione
7a008145bd Bug 1217129: [webext] Follow-up: Fix race in pageAction tests.
--HG--
extra : commitid : HNq36ukKkyG
extra : rebase_source : 7c05750621c196382af98b96353756bef4b02470
2016-01-19 21:57:34 -08:00
Kris Maglione
a67888d4db Bug 1217129: Back out a changed test for intermittent bc4-e10s failures. a=philor for a CLOSED TREE
--HG--
extra : commitid : Hev779VzTYD
extra : rebase_source : 8f5824ad235271657c788e9a7199dfcf40800cb4
extra : amend_source : 2d5ee203275a5954441fd903c3ac9b6be24e98ef
2016-01-19 19:17:43 -08:00
Kris Maglione
1338145ff4 Bug 1217129: Part 6 - [webext] Test browserAction popups in both the toolbar and in the menu panel. r=gijs r=billm
--HG--
extra : commitid : E032c8k3ujN
extra : rebase_source : c4a991bc2d9dd9ec90de5c39d6fdf7ea3a4f9695
extra : source : 106365a3847c66c2122563abb423c29685ea059c
2016-01-10 19:58:09 -08:00
Kris Maglione
59c0ce29a5 Bug 1217129: Part 5 - [webext] Use CustomizableUI views for BrowserAction popups. r=gijs ui-r=bwinton
This version addresses some popup sizing bugs, and also a few other issues I
ran into when debugging Blake's problems:

 * The standalone popup needs a max width of 800px for Chrome compatibility,
   which is wider than our default max width.

 * I added a flex attribute to our browser so that it fills the entire space
   of the slide-in panel. This is only necessary for browsers with content
   that is shorter than the height of the panel when it gets its desired
   width, but becomes longer when it doesn't, so it didn't show up in my
   initial tests.

 * I also added an extra pixel to the width calculations, since I noticed that
   a lot of single lines of text were unexpectedly wrapping without it. I'll
   look into this more in a follow-up bug.

I also added some comments, and renamed a couple of variables, where things
seemed unclear.

The test changes are mostly just updates to older browser action tests to use
newer helpers, rather than ad-hoc events, to open/close/click the widgets. A
few tests also needed updates to explicitly close the panel when they were
done with it.

--HG--
extra : commitid : BhHv1aZSrBL
extra : rebase_source : 6fe0069ebd2f94b0ffd02ad757a799fbdff9226e
extra : source : 628af985c7eba7e4665a1b62f9a60f6a6fd39822
2016-01-15 15:14:25 -08:00
Kris Maglione
3284cbb0ee Bug 1217129: Part 4b - [webext] Use the extension name as the default title value for browserAction/pageAction popups. r=billm
This brings our behavior closer in line with Chrome's.

--HG--
extra : commitid : DaDofvmQEZW
extra : rebase_source : cbeda3889362511c5002f2710c063a2c83047d3c
extra : source : 7ad8b56958c54787313ecbe60eb1e8fbafb2f376
2016-01-15 21:43:26 -08:00
Carsten "Tomcat" Book
cc15740ff7 Backed out 8 changesets (bug 1217129) for test failures in browser_ext_pageAction_context.js
Backed out changeset dc5742de0823 (bug 1217129)
Backed out changeset 106365a3847c (bug 1217129)
Backed out changeset 628af985c7eb (bug 1217129)
Backed out changeset 7ad8b56958c5 (bug 1217129)
Backed out changeset 71f46fe62f59 (bug 1217129)
Backed out changeset 7d8dee4c335b (bug 1217129)
Backed out changeset 3b5fb2845c3b (bug 1217129)
Backed out changeset 93266f211716 (bug 1217129)
2016-01-18 09:08:35 +01:00
Kris Maglione
6404fdfa9c Bug 1217129: Follow-up: Fix test broken by rebase.
--HG--
extra : commitid : 2vdS3kBhmeq
2016-01-15 21:43:26 -08:00
Kris Maglione
ed68509b62 Bug 1217129: Part 6 - [webext] Test browserAction popups in both the toolbar and in the menu panel. r=gijs r=billm
--HG--
extra : commitid : 6dDqn4OyRZf
extra : rebase_source : a00cd5a4e1f7c22e2b45e0aaa3c1efe22ae5cb0b
2016-01-10 19:58:09 -08:00
Kris Maglione
afba49d5ab Bug 1217129: Part 5 - [webext] Use CustomizableUI views for BrowserAction popups. r=gijs ui-r=bwinton
This version addresses some popup sizing bugs, and also a few other issues I
ran into when debugging Blake's problems:

 * The standalone popup needs a max width of 800px for Chrome compatibility,
   which is wider than our default max width.

 * I added a flex attribute to our browser so that it fills the entire space
   of the slide-in panel. This is only necessary for browsers with content
   that is shorter than the height of the panel when it gets its desired
   width, but becomes longer when it doesn't, so it didn't show up in my
   initial tests.

 * I also added an extra pixel to the width calculations, since I noticed that
   a lot of single lines of text were unexpectedly wrapping without it. I'll
   look into this more in a follow-up bug.

I also added some comments, and renamed a couple of variables, where things
seemed unclear.

The test changes are mostly just updates to older browser action tests to use
newer helpers, rather than ad-hoc events, to open/close/click the widgets. A
few tests also needed updates to explicitly close the panel when they were
done with it.

--HG--
extra : commitid : 9OyRnaMTqn8
extra : rebase_source : efd28a49ca5961e2cf545420a81bd19b796d8957
2016-01-15 15:14:25 -08:00
Kris Maglione
5c12caa1dc Bug 1217129: Part 4b - [webext] Use the extension name as the default title value for browserAction/pageAction popups. r=billm
This brings our behavior closer in line with Chrome's.

--HG--
extra : commitid : 7X5knx0CtGm
extra : rebase_source : b301e9c568df0edb313b10cf06e2f7a9c23a6e78
2016-01-10 21:00:09 -08:00
Kris Maglione
09f2a22adf Bug 1239884: Part 2 - [webext] Force a GC after certain tests in debug mode to deal with timeout issues. r=billm
--HG--
extra : commitid : 2ebJbbI8V89
extra : rebase_source : 632b25203af39508240a7ed7053592f997f8d81f
2016-01-13 22:34:16 -08:00
Kris Maglione
5a95948ae6 Bug 1235365: Parse WebExtension JSON files as UTF-8. r=billm
--HG--
extra : commitid : IKunziwQUPp
extra : rebase_source : e36842c15d0be4f319a108e0bfc4e04baf96dd19
2016-01-09 16:53:24 -08:00
Olivier Yiptong
e9b515f263 Bug 1218996 - Fuse aboutNewTabService and RemoteNewTabLocation and return resource URLS r=marcosc
--HG--
extra : rebase_source : 6280fdc5cdad7c122e4ce71e809d812f8e75386f
2016-01-11 20:30:13 -05:00
Kris Maglione
05bccfe9b4 Bug 1233326: [webext] Fix default value handling for tabs.create, and add missing tests. r=billm
--HG--
extra : commitid : 1eeoFUeZ0JG
extra : rebase_source : aa504855b67e2e20411909b5004d658d8c23dc41
2016-01-05 19:06:44 -08:00
Kris Maglione
81ee0b7dad Bug 1237122 - Use base test suite eslintrc files for WebExtension tests. r=trivial
--HG--
extra : commitid : LQJzTvLEHsW
2016-01-05 16:10:33 -08:00
Kris Maglione
d72a5b435c Bug 1229248, 1224087, 1230439: Follow-up: Fix ESLint failures. r=trivial
--HG--
extra : commitid : 6j07lCiGq0O
2016-01-05 15:53:12 -08:00
Kris Maglione
cf89a22459 Bug 1211366: Follow-up: Fix ESLint errors. r=trivial
--HG--
extra : commitid : CkUBR1wpIeR
extra : rebase_source : 67d877bd2a379412b357f98227b8bc47fd068595
2016-01-05 14:10:58 -08:00
Kris Maglione
6b540dc946 Bug 1214007: Follow-up: Fix ESLint errors. r=trivial
--HG--
extra : commitid : 4XGbiDojWXa
extra : rebase_source : 4f7d66c5f8c7c6c9ef0b27c1145a7106e93782e5
2016-01-05 15:10:39 -08:00
Andy McKay
5847404799 Bug 1214007 - Implement chrome.tabs.move. r=billm 2015-12-23 17:04:23 -08:00
Gabor Krizsanits
f77ea57991 Bug 1235376 - Handling %s in contextMenus. r=kmaglione 2016-01-04 16:54:59 +01:00
Gabor Krizsanits
99d250bd13 Bug 1211366 - parentId validation in contextMenus. r=kmaglione 2016-01-04 16:54:59 +01:00
Gabor Krizsanits
c3b77c61e9 Bug 1211366 - contextMEnus refactoring. r=kmaglione 2016-01-04 16:54:59 +01:00
Ehsan Akhgari
d30a731cc8 Bug 1229248 - Increase the timeout of browser_ext_tabs_query.js 2015-12-30 22:27:40 -05:00
Ehsan Akhgari
6bd3322851 Bug 1230439 - Increase the timeout of browser_ext_tabs_executeScript_good.js 2015-12-30 22:27:40 -05:00
Ehsan Akhgari
b0f5bc7ec2 Bug 1224087 - Increase the timeout of browser_ext_tabs_onUpdated.js 2015-12-30 22:27:40 -05:00
Bill McCloskey
a3d3a41850 Bug 1208257 - [webext] browser_action.json (r=kmag) 2015-12-23 08:57:13 -08:00
Kris Maglione
589f766eac Bug 1230776: Fix ESLint failures in HTML test files. r=trivial
--HG--
extra : commitid : EXptoLWcoGy
extra : rebase_source : b5cd56ccd779abe263c7b6f5351736c7c1726f82
2015-12-22 22:26:36 -05:00
Steve Fink
23b3232cce Bug 1231879 - Fix tests: getElementById returns null on failure, not undefined, r=mrbkap
--HG--
extra : source : c54865e0b60bc496bbcfc61eefceb4690726e123
extra : amend_source : 5991d2c0b81cfbb7e2284d9968a6bd4fe723c5e3
2015-12-10 21:49:18 -08:00
Bill McCloskey
18a0bcc6d7 Bug 1208257 - [webext] Fix failing test 2015-12-06 11:01:20 -08:00
Bill McCloskey
6e0bf624bf Bug 1208257 - [webext] tabs.json (r=kmag) 2015-12-06 08:50:24 -08:00
Kris Maglione
b729a30707 Bug 1229874: Part 3 - Enable ESLint in WebExtension code. r=billm
The base .eslintrc is essentially a merge of the root Toolkit .eslintrc and
the devtools .eslintrc, with some minor changes to match our prevalent style.

For the most enforces the coding styles that we've been using most
consistently. There are a couple of significant differences, though:

 * The rule for opening brace alignment can only be applied globally, and
   doesn't make exceptions for top-level functions. I chose to turn it on, and
   change the brace style of existing top-level functions that violated it,
   since the rule seemed worth using, and that's the direction most Toolkit JS
   code has been headed anyway.

 * The rule for switch/case statements requires an added indentation level for
   case statements. Most of our switch statements did not use an extra level
   of indentation, and I initially wrote the rule to enforce that style, until
   I came across case statements that used blocks, and required the extra
   indentation level for sanity.

--HG--
rename : devtools/.eslintrc => toolkit/components/extensions/.eslintrc
extra : commitid : 4aDZOi5MNPc
extra : rebase_source : f34ba43aeb8046a0c971cb76b76410497bd12b42
extra : source : 2a7eb4ef7b375e5fd52d843ca206a071367a6475
2015-12-02 16:58:53 -08:00
Kris Maglione
5c5a4d1119 Bug 1190688: Part 2 - [webext] Add tests for executeScript permission checks. r=billm
--HG--
rename : browser/components/extensions/test/browser/browser_ext_tabs_executeScript.js => browser/components/extensions/test/browser/browser_ext_tabs_executeScript_good.js
extra : commitid : iRaiDjAAti
extra : rebase_source : 3906f8f3ffaf91815f9463564b9e6243f443750c
extra : source : 1d5e9f3d094d075cfda767dd2108b07c7f8557de
2015-12-02 15:07:02 -08:00
Kris Maglione
ccd1557027 Bug 1193837: Part 2 - [webext] Enforce host matching and load URI restrictions on tabs.executeScript and insertCSS. r=billm
--HG--
extra : commitid : 14Ay1RxALKN
extra : rebase_source : 539fce3e4d8a8456d73bd2d1736338e835e264da
extra : source : ebe2433705a55c4b91d5726ed81574e3bcb5c6fb
2015-12-01 20:32:18 -08:00
Wes Kocher
66050f6f32 Backed out 2 changesets (bug 1193837) because the web extension tests are failing CLOSED TREE
Backed out changeset ebe2433705a5 (bug 1193837)
Backed out changeset c3307a5ac126 (bug 1193837)
2015-12-02 13:23:18 -08:00
Wes Kocher
fdc2d1bcff Backed out 2 changesets (bug 1190688) for browser_ext_tabs_executeScript.js permatimeouts
Backed out changeset 1d5e9f3d094d (bug 1190688)
Backed out changeset 4a10c564dfca (bug 1190688)
2015-12-02 11:22:31 -08:00
Kris Maglione
0776c5fb47 Bug 1190688: Part 2 - [webext] Add tests for executeScript permission checks. r=billm
--HG--
extra : commitid : EEVPrB3WgcX
extra : rebase_source : 98f6f3363287429c8211c28f50e5a8abb0a66a01
2015-12-01 20:47:08 -08:00
Kris Maglione
6c8390c592 Bug 1193837: Part 2 - [webext] Enforce host matching and load URI restrictions on tabs.executeScript and insertCSS. r=billm
--HG--
extra : commitid : AHQ6RpQNa70
extra : rebase_source : 913662702f1a06a7773fd31e93eb095cab6b37d7
2015-12-01 20:32:18 -08:00
Kris Maglione
e5cf10f6e9 Bug 1212890: [webext] Implement browser.tabs.getCurrent. r=gabor
--HG--
extra : commitid : 1s2jDVvyZVV
extra : rebase_source : b014b7fb47a3a8e42c27bba5cbfcfaa568d4f08f
2015-11-24 19:04:00 -08:00
Johann Hofmann
75a90ffc8e Bug 1200674 - Allow flexible icon sizes in ExtensionUtils. r=dtownsend 2015-11-24 18:20:26 +01:00
Kris Maglione
f7cb8b827e Bug 1226423: [wbext] Add tests for panel popup API injection. r=billm
--HG--
extra : commitid : EMRXYC96Ufg
extra : rebase_source : a0b8b9088b02cd9e5c94d97f82f51dfd14d783b9
2015-11-20 15:16:31 -08:00
Kris Maglione
7214e18679 Bug 1218443: [webext] Fix some instances of window listeners not being added correctly. r=billm
--HG--
extra : commitid : EWbKyZP08Fs
extra : rebase_source : 3008f5a339c74af641f4a0d2f07942cb6acefb04
extra : source : 6fa3b2df62cc80058ea2f63834dcbdd6ec7caa36
2015-11-15 19:34:09 -08:00
Phil Ringnalda
b3918f8ac1 Back out 6fa3b2df62cc (bug 1218443) for browser_ext_pageAction_context.js leaks
CLOSED TREE
2015-11-17 22:38:20 -08:00
Kris Maglione
efe250798d Bug 1218443: [webext] Fix some instances of window listeners not being added correctly. r=billm
--HG--
extra : commitid : GkZzr4Rpp81
extra : rebase_source : 364da950cb8d50dcf990b529753d4e2cb3b0acf3
2015-11-15 19:34:09 -08:00
Kris Maglione
29636e2d6e Bug 1190321: [webext] Complete test coverage for the browserAction API. r=gabor
--HG--
rename : browser/components/extensions/test/browser/browser_ext_pageAction_popup.js => browser/components/extensions/test/browser/browser_ext_browserAction_popup.js
extra : commitid : KNrOPlO2bOP
extra : rebase_source : 367ab2d367b76512485920a17c8f979b0668beb3
extra : histedit_source : 2d114fc7778b21a9e5cd085a1b78d21b172376bd
2015-11-15 02:01:44 -08:00
Kris Maglione
e716dce577 Bug 1213433: [webext] Add enable and disable methods to browserAction API. r=gabor
--HG--
extra : commitid : IxCwe5mcCex
extra : rebase_source : 36e405fc199890175b70c9228c8beeafa665d667
extra : histedit_source : 21d800886ddf31425ea691c77558f987590df8ad
2015-10-28 02:27:29 -07:00
Edgar Chen
dba190796b Bug 1205221 - Fix chrome.tabs.onUpdate event doesn't be fired correctly when tab's attribute is changed. r=billm
--HG--
extra : transplant_source : %B7%2C%06e%0E%0F/%C3%E5-F%A1M%9B%C3%8F%060%95S
2015-09-15 14:06:51 +08:00
Luca Greco
a9764f9ff5 Bug 1213975 - add WebExtension tabs.onUpdated test case. r=billm 2015-10-26 04:54:00 +01:00
Johann Hofmann
e602c93ac2 Bug 1198405 - Use MatchPattern to match URLs in tabs.query. r=billm
--HG--
extra : rebase_source : 9a461d879f79cc67fb1f5405f9b68bd605dfa47d
2015-10-19 12:29:29 +02:00
Kris Maglione
afa8d67bb4 Bug 1197422 - Part 3: [webext] Update browserAction API to use the same context tracking code as pageAction. r=billm
--HG--
rename : browser/components/extensions/test/browser/browser_ext_pageAction_context.js => browser/components/extensions/test/browser/browser_ext_browserAction_context.js
extra : commitid : 5EzvwcupwbG
extra : rebase_source : 5ac2d9c8d131c718bd3290120a8b108e4601c36f
2015-10-15 15:14:49 -07:00
Kris Maglione
9dd208611e Bug 1197422 - Part 2: [webext] Implement the pageAction API. r=billm ui-r=bwinton
--HG--
rename : browser/components/extensions/test/browser/browser_ext_browserAction_icon.js => browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon.js
extra : commitid : GSQiN6Zykrs
extra : rebase_source : 45e056feb97f60592400568c6eeded4b7cc76ab5
2015-10-15 15:15:04 -07:00
Luca Greco
71224bbe04 Bug 1214040 - WebExtension tabs.sendMessage should not raise an exception on unexistent tabId. r=billm 2015-10-16 03:31:00 -04:00
Bill McCloskey
31df91c1aa Bug 1202897 - Switch all WebExtension tests to use generated zip files rather than files (r=gabor) 2015-10-12 16:19:50 -07:00
Jed Davis
faf361396a Bug 1201935 - Allow reading from TmpD in OS X content processes. r=smichaud
--HG--
extra : rebase_source : 68565c447e3731e9c562514e8355044cfd8c28b9
2015-10-07 13:41:00 +02:00
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Wes Kocher
0628e22f00 Merge m-c to inbound, a=merge CLOSED TREE 2015-10-05 13:11:26 -07:00
Gabor Krizsanits
255204ccf7 Bug 1190667 - WEAPI contextMenus. r=billm 2015-10-05 17:48:08 +02:00
Luca Greco
8c660fb1a2 Bug 1204583 - Implement WebExtension runtime.connect for background and tab. r=billm,gabor 2015-09-26 09:22:00 +02:00
Bill McCloskey
330e587de8 Bug 1207911 - [webext] Fix races in webextension tests (r=gabor) 2015-09-27 12:29:40 -07:00
Luca Greco
9a56539df6 Bug 1204575 - Test case for fix WebExtension EventManager fireFunc registering. r=billm r=gabor
--HG--
extra : rebase_source : f416a6f030a30e275c5331d6aff7e298785d3a1d
2015-09-25 04:35:00 +02:00
Bill McCloskey
dd18632ad0 Bug 1202483 - [webext] Support ImageData for browser.browserAction.setIcon (r=gabor) 2015-09-23 17:18:32 -07:00
Bill McCloskey
8d6655bb1a Bug 1202482 - [webext] Implement browser.extension.getViews (r=gabor) 2015-09-23 17:18:32 -07:00
Bill McCloskey
bee599ea75 Bug 1202479 - [webext] Implement "current window" support in browser.{windows,tabs} (r=gabor) 2015-09-23 17:18:31 -07:00
Bill McCloskey
22b5c13d6a Bug 1202501 - [webext] Clean up WebExtension tests (r=gabor)
--HG--
rename : browser/components/extensions/test/browser/browser_extensions_simple.js => browser/components/extensions/test/browser/browser_ext_simple.js
rename : toolkit/components/extensions/test/mochitest/file_contentscript_page1.html => toolkit/components/extensions/test/mochitest/file_sample.html
2015-09-23 17:18:28 -07:00
Bill McCloskey
d8c4e2691e Bug 1190662 - [webext] Browser action popup HTML should be reloaded each time popup is opened (r=gabor) 2015-09-23 17:18:26 -07:00
Phil Ringnalda
5b1ea9212a Backed out 12 changesets (bug 1202482, bug 1202483, bug 1202481, bug 1202486, bug 1202479, bug 1202478, bug 1197475, bug 1203331, bug 1139860, bug 1202501, bug 1199473, bug 1190662) for Mulet mochitest-5 timeouts
CLOSED TREE

Backed out changeset 6503123e95dd (bug 1139860)
Backed out changeset b83bc163064d (bug 1203331)
Backed out changeset 2f501bd57cd2 (bug 1202481)
Backed out changeset 37e6ac7beb42 (bug 1202486)
Backed out changeset f9b6e99e620e (bug 1202483)
Backed out changeset 466af9f9baee (bug 1202482)
Backed out changeset 6be690e265a2 (bug 1202479)
Backed out changeset 57ff88bfccf4 (bug 1197475)
Backed out changeset 7e8c04ff6049 (bug 1202478)
Backed out changeset 525227997274 (bug 1202501)
Backed out changeset da317cdb79d3 (bug 1199473)
Backed out changeset 73b8ddd6dac9 (bug 1190662)

--HG--
rename : browser/components/extensions/test/browser/browser_ext_simple.js => browser/components/extensions/test/browser/browser_extensions_simple.js
rename : toolkit/components/extensions/test/mochitest/file_sample.html => toolkit/components/extensions/test/mochitest/file_contentscript_page1.html
2015-09-22 19:29:51 -07:00
Bill McCloskey
095d27b08a Bug 1202483 - [webext] Support ImageData for browser.browserAction.setIcon (r=gabor) 2015-09-22 16:09:22 -07:00
Bill McCloskey
478824de97 Bug 1202482 - [webext] Implement browser.extension.getViews (r=gabor) 2015-09-22 16:09:22 -07:00
Bill McCloskey
b3efda9b23 Bug 1202479 - [webext] Implement "current window" support in browser.{windows,tabs} (r=gabor) 2015-09-22 16:09:21 -07:00
Bill McCloskey
fa351c11d6 Bug 1202501 - [webext] Clean up WebExtension tests (r=gabor)
--HG--
rename : browser/components/extensions/test/browser/browser_extensions_simple.js => browser/components/extensions/test/browser/browser_ext_simple.js
rename : toolkit/components/extensions/test/mochitest/file_contentscript_page1.html => toolkit/components/extensions/test/mochitest/file_sample.html
2015-09-22 16:09:20 -07:00
Bill McCloskey
68b72b8a50 Bug 1190662 - [webext] Browser action popup HTML should be reloaded each time popup is opened (r=gabor) 2015-09-22 16:09:20 -07:00
Edgar Chen
73389bf1f4 Bug 1202532 - The callback argument of windows.update() is optional. r=billm
--HG--
extra : transplant_source : %87%C8%A5TJ%7E3%C7%3F%91%89v%F7%01%85%5D%C8N5%BC
2015-09-07 18:55:00 +08:00
Bill McCloskey
48a154e45c Bug 1201935 - Disable WebExtension tests on MacOS because sandbox breaks them 2015-09-04 09:45:03 -07:00
Bill McCloskey
06a195312a Bug 1199842 - [webext] Add missing XUL_NS variable for browser_action (r=gabor) 2015-09-04 09:45:02 -07:00
Bill McCloskey
1b946c60b2 Bug 1199832 - [webext] browser.tabs.executeScript must create a context (r=gabor) 2015-09-04 09:45:02 -07:00
Bill McCloskey
1c1fce4a9e Bug 1199800 - [webext] Adding browser.tabs.update test (r=gabor) 2015-09-04 09:45:01 -07:00
Bill McCloskey
e1a341c5c3 Bug 1199800 - [webext] Add browser_tabs_query.js test (r=gabor) 2015-09-04 09:45:01 -07:00
Bill McCloskey
4fe3b5000e Bug 1199800 - [webext] Allow extensions to be used from chrome tests (r=gabor) 2015-09-04 09:45:00 -07:00
Carsten "Tomcat" Book
3145bc32e7 Backed out 11 changesets (bug 1201377, bug 1199800, bug 1197437, bug 1199832, bug 1199698, bug 1199842) for breaking browser_ext_tabs_executeScript.js test on a CLOSED TREE
Backed out changeset 8d8d73d3c3e1 (bug 1201377)
Backed out changeset 4ed8951e3f54 (bug 1199842)
Backed out changeset 5830178bc008 (bug 1199832)
Backed out changeset 4445c570fe49 (bug 1199698)
Backed out changeset 35fc1e25d167 (bug 1199800)
Backed out changeset 54c4c3bd2454 (bug 1199800)
Backed out changeset bd3112ce6b9b (bug 1199800)
Backed out changeset 701e56e18ca7 (bug 1199800)
Backed out changeset 4407d50a7995 (bug 1199800)
Backed out changeset af2fbe345712 (bug 1199800)
Backed out changeset 0a41d20fcf77 (bug 1197437)
2015-09-04 09:59:34 +02:00
Bill McCloskey
33f30d2bec Bug 1199842 - [webext] Add missing XUL_NS variable for browser_action (r=gabor) 2015-09-03 20:59:04 -07:00
Bill McCloskey
ce526a3a05 Bug 1199832 - [webext] browser.tabs.executeScript must create a context (r=gabor) 2015-09-03 20:59:04 -07:00
Bill McCloskey
8af67672f4 Bug 1199800 - [webext] Adding browser.tabs.update test (r=gabor) 2015-09-03 20:59:03 -07:00
Bill McCloskey
9540859dc5 Bug 1199800 - [webext] Add browser_tabs_query.js test (r=gabor) 2015-09-03 20:59:03 -07:00
Bill McCloskey
4e8805dd18 Bug 1199800 - [webext] Allow extensions to be used from chrome tests (r=gabor) 2015-09-03 20:59:02 -07:00
Kris Maglione
8de024d1d5 Bug 1339144 - Use windowless browser for remote background pages. r=aswan
MozReview-Commit-ID: LfmPbkTsgwu

--HG--
extra : rebase_source : 1cec29f836884b7f5ac400f0a0af904bad6488a8
extra : intermediate-source : c122b0183c7c94342c7bac953987ca1ed9c94625
extra : source : 2ba94924e6d7959f5d8850e6ab14008d4a1c6288
2017-02-16 17:26:15 -08:00
Iris Hsiao
94c8bb425f Backed out changeset c122b0183c7c (bug 1339144) for xpcshell failures
--HG--
extra : rebase_source : c207c08be92de010922c4e9d1559673f313558e9
2017-02-17 10:40:20 +08:00
Kris Maglione
43e4c2bb06 Bug 1339144 - Use windowless browser for remote background pages. r=aswan
MozReview-Commit-ID: LfmPbkTsgwu

--HG--
extra : source : 2ba94924e6d7959f5d8850e6ab14008d4a1c6288
extra : histedit_source : 2035406acd128331977baf481e5ad6c85252d067%2C97c30a16513b28e0f932161804f421145dc3e363
2017-02-16 17:26:15 -08:00