Commit graph

844 commits

Author SHA1 Message Date
Kris Maglione
94213ad506 Bug 1320395: Part 3 - Run WebExtensions in their own process type. r=billm,bobowen
MozReview-Commit-ID: FZ4f1Lda5vh

--HG--
extra : rebase_source : 013dfd2ab5e74097d81b0a2afebd3e02060f5e75
2017-01-12 14:11:47 -08:00
Tomislav Jovanovic
9723a29fc6 Bug 1330167 - CookieStore.tabIds should be an array of tab IDs r=aswan
MozReview-Commit-ID: 7KuVKEEOhlv

--HG--
extra : rebase_source : 5c9693ec8194da62805fc6b4fbc3ba2513e9f1c3
2017-01-13 11:58:32 +01:00
Matthew Wein
e3673f105f Bug 1330337 - Add basic theme framework hidden behind pref r=mikedeboer
MozReview-Commit-ID: 1kje3tc7y9O

--HG--
extra : rebase_source : 62fa9ff12f20877deade86f4ad8a3c64d95bc448
2017-01-11 14:34:23 -05:00
Carsten "Tomcat" Book
088f1dc213 Merge mozilla-central to autoland 2017-01-12 10:39:04 +01:00
Carsten "Tomcat" Book
3ad97e202a merge mozilla-inbound to mozilla-central a=merge 2017-01-12 10:14:43 +01:00
Bob Silverberg
48702a014c Bug 1329971 - tab objects returned by sessions.getRecentlyClosed are missing some data, r=kmag
MozReview-Commit-ID: GB3Xaxg8HRf

--HG--
extra : rebase_source : 47d1d976b51ee53a4bfb64523dac41603380ed6e
2017-01-11 09:14:58 -05:00
Rob Wu
1fc7ef5070 Bug 1325830 - initialize tabListener if needed r=kmag
To verify, run the test in isolation:
mach mochitest browser/components/extensions/test/browser/browser_ext_tabs_executeScript_no_create.js

Without the fix, the test fails in e10s; with the fix, the test passes.

MozReview-Commit-ID: Imf0Ue7ORHd

--HG--
extra : rebase_source : a34ba67cf05f56dc360d46a6e30f0b0083a5a8a4
2016-12-26 12:30:50 +01:00
Kris Maglione
cc6af1c474 Clean up onChanged event handler cruft. r=aswan (no bug)
MozReview-Commit-ID: 7uyjRQ9tyWS

--HG--
extra : rebase_source : f47e744073bdf9d7365e761926550d0cc9abe61f
2017-01-11 11:27:03 -08:00
Luca Greco
60d15646a3 Bug 1324429 - Context menu items without contexts should inherit it from their parent. r=kmag
MozReview-Commit-ID: 9BKDdFZ6Hdd

--HG--
extra : rebase_source : 79d6fdc46caa0599160e2f797e103c0bf179c3e1
2016-12-21 16:44:30 -05:00
Mark Banner
582fcb8090 Bug 1329614 - [eslint] Catch more cases of importing globals from 'var foo = Cu.import('...');'. r=jaws
MozReview-Commit-ID: 5NKHHb70YA6

--HG--
extra : rebase_source : 4551e56f56065349fb9ddc8d90e67f9dc84c1701
2017-01-09 10:12:26 +00:00
Florian Quèze
028a82f682 Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00
Jared Wein
b33bfba51a Bug 1329017 - Enable the no-useless-return rule for eslint and use eslint --fix to autofix the errors. r=standard8
MozReview-Commit-ID: 2MhpvzUDgtK

--HG--
extra : rebase_source : 1df2b81badfe556928f6424c8990e4b3fde7056f
2017-01-06 12:09:28 -05:00
Jared Wein
43cacee3a5 Bug 1328995 - Remove unnecessary Promise.resolve() wrapper on return from async function. r=kmag
MozReview-Commit-ID: Jp40DyphLDj

--HG--
extra : rebase_source : 072fe57dd78e2f227703ba194b11156fcfe070b4
2017-01-05 15:55:30 -05:00
Tomislav Jovanovic
19ab5e2771 Bug 1320412 - Emit tabs.onUpdated event for title changes r=kmag
MozReview-Commit-ID: I0d5GJ8Rsev

--HG--
extra : rebase_source : b5cbe37fdddd048cb93504e4be3a272e5cbf1f53
2017-01-05 00:19:38 +01:00
Tom Schuster
3c8c39df45 Bug 1310026 - webext: Add cssOrigin option to insertCSS/removeCSS. r=kmag 2017-01-06 16:07:59 +01:00
Laurent
e7c67bac3c Bug 1322033 - "Patch to support Function Keys in WebExtensions". r=kmag 2016-12-31 08:34:00 +01:00
Jared Wein
560afd3f8e Bug 1326479 - Fix 'indent' eslint errors now that eslint scans multiline array and object definitions. r=Gijs
MozReview-Commit-ID: 99mWjxu8PPn

--HG--
extra : rebase_source : f78d800263b8544ce0accbdb2dc57b303969543f
2017-01-03 10:07:50 -05:00
Wes Kocher
31ced84f43 Merge m-c to autoland, a=merge 2016-12-22 18:45:10 -08:00
JerryShih
fa00bf1ff1 Bug 1310681 - do not use devtools colorUtils in browser. r=kmag,tromey
MozReview-Commit-ID: 3qbsBGC7Lt6

--HG--
extra : rebase_source : 3af07b87a2c07fb0283a46c144a8104445da918b
2016-10-21 10:03:58 -04:00
Wes Kocher
f015ecd4bf Backed out changeset 781d1e9b8586 (bug 1322033) for webextension xpcshell bustage a=backout
--HG--
extra : rebase_source : 46591fb028e7a25db4e24c476896526b420a1280
2016-12-19 14:27:15 -08:00
Laurent
f861aecae8 Bug 1322033 - Support Function Keys in WebExtensions. r=kmag
--HG--
extra : rebase_source : 4aae66a0868bd711b92e3ce29a1cdc3ecdb7f13d
2016-12-04 02:19:00 -05:00
Tomislav Jovanovic
689c8eff70 Bug 1316020 - Add separator before extension items in context menus r=kmag
MozReview-Commit-ID: LNQTZtNQgLN

--HG--
extra : rebase_source : 324262ce73f33206de5b15af9087a8e10c7ffe66
2016-12-06 01:29:09 +01:00
Tomislav Jovanovic
6db67b4e57 Bug 1316020 - Implement tab context for browser.contextMenus r=kmag
MozReview-Commit-ID: LNQTZtNQgLN

--HG--
rename : browser/components/extensions/test/browser/browser_ext_contextMenus_actionMenus.js => browser/components/extensions/test/browser/browser_ext_contextMenus_chrome.js
extra : rebase_source : 09094a700a5a7a1cc2d95ebea4fd6ddadf7928f2
2016-11-21 23:29:42 +01:00
Shane Caraveo
75b4321f38 Bug 1321615 fix tests for header modification in toplevel loads, r=kmag
MozReview-Commit-ID: DN6LgekAsRm

--HG--
extra : rebase_source : d94aaab49c2df55ea7e5628ad4561bf0743011b1
2016-12-17 10:14:26 -10:00
Andy McKay
390a9ca00f bug 1307012 raise an error on invalid id r=kmag
MozReview-Commit-ID: FDdPzmtN2mq

--HG--
extra : rebase_source : db614a4427288bb41d8ead675c07309f8c5e20e9
2016-12-08 08:09:08 -10:00
Bob Silverberg
e404e347f1 Bug 1320986 - Implement browsingData.settings WebExtensions API method, r=aswan
MozReview-Commit-ID: JqUm77vFod2

--HG--
extra : rebase_source : a2de57a7c5d635c142752720fa04caa85288643f
2016-11-28 09:17:04 -05:00
Phil Ringnalda
3ca40609e1 Backed out changeset 4c343bdb6e2a (bug 1321615) for browser_ext_webRequest.js timeouts
CLOSED TREE
2016-12-01 18:38:11 -08:00
Shane Caraveo
9e10dbda93 Bug 1321615 fix tests for header modification in toplevel loads, r=kmag
MozReview-Commit-ID: 3GfDbeumwzj

--HG--
extra : rebase_source : 6416dd3e5920913682bd0d09e6cfaa08fc6aac63
2016-12-01 11:46:36 -08:00
Ryan VanderMeulen
7af8f38714 Merge m-c to autoland on a CLOSED TREE. a=merge 2016-11-30 13:27:46 -05:00
Shane Caraveo
b1aaa3af6b Bug 1318800 fix systemPrincipal checks so top level tab loads work with webrequests, r=kmag
MozReview-Commit-ID: D5b8Qs839bP

--HG--
extra : rebase_source : 977527904c6988fce680a49cfb05e95ce6b88570
2016-11-29 16:00:06 -08:00
Matthew Wein
e4927a1aaf Bug 1320782 - Disable eslint no-cpows-in-tests check for browser_ext_omnibox.js r=aswan
MozReview-Commit-ID: 3BNSejB1lwF

--HG--
extra : rebase_source : 0425db76281416e621a557891849fd0d77b2bb8a
2016-11-29 15:34:41 -05:00
Kris Maglione
e74ac1d08e Bug 1318583: Part 5 - Re-enable OOP tests that were disabled due to focus issues. r=aswan
MozReview-Commit-ID: 2OLmadKQFqC

--HG--
extra : rebase_source : 4f4a68839a41471a38cab1fc315de46d7f46ea3e
extra : absorb_source : 57898cebc8c140e6fdc16b5e04a48e79a32be422
extra : histedit_source : 351845c4a1d0523754f848be730180e7f7da3715
2016-11-27 12:41:23 -08:00
Kris Maglione
53db5cbf30 Bug 1318583: Part 4 - Ensure the correct browser window is focused for tests that require it. r=aswan
MozReview-Commit-ID: ETAY8gLOrsU

--HG--
extra : rebase_source : 068402752268604ddb0e22b7f3e72ccb74611db0
extra : absorb_source : 041e7eb3a3627640c0ebd379c1744f97b2dcdc39
extra : histedit_source : e985cab762001901ce6d1cc027c125a8dc0a75bb
2016-11-29 16:58:16 -08:00
Kris Maglione
37d84033d3 Bug 1318583: Part 3 - Set minWidth and minHeight on non-fixed-width panel browsers. r=aswan
MozReview-Commit-ID: FvqsaubkFUy

--HG--
extra : rebase_source : a68dc6f821751edc797884eb988b156d5006f5a0
extra : histedit_source : c79640339f9d05357383bef3a667bcdcc7429334
2016-11-26 17:17:16 -08:00
Kris Maglione
0680a87ada Bug 1318583: Part 2 - Avoid races due to remote browser resizing round-trips. r=aswan
MozReview-Commit-ID: KPFKNhlLsCP

--HG--
extra : rebase_source : b2b8c9760978c33831979f51804366bcbacf6525
extra : histedit_source : dd7096e7d8dd4067f74216b2f97a49f1d64d123f
2016-11-29 16:09:32 -08:00
Kris Maglione
515eeba2cb Bug 1318583: Part 1 - Ignore fixed-width panel browser resizes that happened prior to reparenting. r=aswan
MozReview-Commit-ID: 1oFbtM6Khw7

--HG--
extra : rebase_source : a8ba0d1b8d2c512a78f81846139d42cd3b66bd30
extra : histedit_source : 031338de4c4d92270be6827551e495843e2fa3bd
2016-11-29 16:50:44 -08:00
Bob Silverberg
069390233f Bug 1320306 - Implement sessions.onChanged WebExtensions API, r=aswan
MozReview-Commit-ID: 14si74CKswB

--HG--
extra : rebase_source : 1090330364fa8c1bad79f2127dd15b6b5ec6cfaf
2016-11-16 14:30:20 -05:00
Tomislav Jovanovic
a668cce095 bug 1320439 - Fix submenus in page_action, browser_action contextMenus, r=kmag
MozReview-Commit-ID: AGhu1tbofrB

--HG--
extra : rebase_source : 1bee9519a2456e5cc328db4f879cce2d1a071963
2016-11-28 03:15:02 +01:00
Tomislav Jovanovic
92b6927b24 bug 1253418 - implement contextMenu page_action and browser_action contexts r=kmag
MozReview-Commit-ID: Ftp77zmxo4B

--HG--
extra : rebase_source : ed46fe948f0898e13dcc551721d56c5151a4bc4c
2016-11-09 21:03:33 +01:00
Carsten "Tomcat" Book
ad928dbca5 Merge mozilla-central to autoland 2016-11-23 16:45:11 +01:00
Kris Maglione
0b84ed8150 Bug 1319452: Part 2 - Don't expose extension views that the caller cannot access. r=billm
MozReview-Commit-ID: IS7mpOnQ8y0

--HG--
rename : browser/components/extensions/test/browser/browser_ext_incognito_popup.js => browser/components/extensions/test/browser/browser_ext_incognito_views.js
extra : rebase_source : 0be6b790687ce8afd60c8838267c760712ef243b
2016-11-22 12:31:37 -08:00
srivatsav
fdf44d1e9c Bug 1312466: Added a password context to contextMenus API. r=kmag
MozReview-Commit-ID: DzLX4JQTfRS

--HG--
extra : amend_source : 40ad422e18e3a8bb465dbf5d2143c712f1b15801
2016-11-22 16:57:43 +05:30
Phil Ringnalda
89e92b0c3b Merge m-c to autoland 2016-11-22 21:33:35 -08:00
Shane Caraveo
8083d89861 Bug 1319567 fix window id so it is never zero, r=kmag
MozReview-Commit-ID: 30u1o1BOAvv

--HG--
extra : rebase_source : 45da674668a97b863cfe82eac5f7ee9160d311d4
2016-11-22 17:35:37 -08:00
Wes Kocher
5b778fe03b Backed out changeset 15ab89563679 (bug 1319567) for browser-chrome failures a=backout 2016-11-22 16:57:39 -08:00
Shane Caraveo
c1b4dc9ae6 Bug 1319567 fix window id so it is never zero, r=kmag
MozReview-Commit-ID: 30u1o1BOAvv

--HG--
extra : rebase_source : cff385765b5c5e68fff557d1cbcc8648af59ce91
2016-11-22 15:12:14 -08:00
Kris Maglione
c60e149356 Bug 1266510: Also explicitly focus the second browser window after creation. r=me
MozReview-Commit-ID: 5G81rXCXnyg
2016-11-20 10:37:02 -08:00
Kris Maglione
c70bd10f2d Bug 1317154: Correctly support multiple concurrent listeners for the same event. r=aswan
MozReview-Commit-ID: 4OgukI6Sc6v

--HG--
extra : rebase_source : 5e6935b90198ec50221f75fa1649598220dc3917
2016-11-18 12:20:22 -08:00
Kris Maglione
3378821378 Bug 1318690: Fix a minor test race. r=trivial
MozReview-Commit-ID: 1GjJnUK1i7Z

--HG--
extra : rebase_source : b09a53eb54d331d9c485600d65f8f08b217dcea3
2016-11-18 12:36:13 -08:00
Kris Maglione
ce68ebb5f1 Bug 1318604: Don't add task for OOP preference initialization. r=mixedpuppy
Adding mochitest tasks from head scripts turns out to cause unpredictable
timing issues, where the initial add_task() call sometimes causes tests to
begin running before the main test script has loaded, and had a chance to add
its tasks. While I'd still prefer to do this initialization in a task, it's
not worth the intermittent failures it causes.

MozReview-Commit-ID: 3CDL82NyrzC

--HG--
extra : rebase_source : 0b2a5630a09f656f9d9f90cbd3d0e33e5d069703
2016-11-18 09:27:06 -08:00
Kris Maglione
a3c8b4f27c Bug 1317101: Follow-up: Split browserAction preloading tests into a separate unit.
MozReview-Commit-ID: 2fWXQIwCF9w

--HG--
rename : browser/components/extensions/test/browser/browser_ext_browserAction_popup.js => browser/components/extensions/test/browser/browser_ext_browserAction_popup_preload.js
extra : rebase_source : 491d703d2dc7256743b60b3cda83a1eb71f2e885
2016-11-17 11:08:21 -08:00
Kris Maglione
97d62aa407 Bug 1317101 - Part 8b: Run browser mochitests in both parent-process and remote configurations. r=billm
MozReview-Commit-ID: 6IGGnpgZLce

--HG--
rename : browser/components/extensions/test/browser/browser.ini => browser/components/extensions/test/browser/browser-common.ini
rename : browser/components/extensions/test/browser/browser.ini => browser/components/extensions/test/browser/browser-remote.ini
extra : rebase_source : 3a4cf9d7d77f3d906f8d34b537b4d05cb28718c4
extra : source : a8cdc81cdcce558592d01d3cc6d0ee66269f1077
2016-11-17 14:00:32 -08:00
Kris Maglione
73f6cab403 Bug 1317101 - Part 7c: Run extension popups in a remote browser. r=aswan
MozReview-Commit-ID: CATeESBwj1J

--HG--
extra : rebase_source : c83dbcabbafbe2884746d282de78d23f5e0edff6
extra : source : b7892d3fb0ca5268a252377ecbb44dfb1d289500
2016-11-17 11:28:40 -08:00
Kris Maglione
b6d9dc9190 Bug 1317101 - Part 5: Simply remote view initialization code, and fix some inconsistent handling. r=billm
MozReview-Commit-ID: 65BE0oF3rpI

--HG--
extra : rebase_source : c65b403f2960edaf6e5e46ee94d76c39f8507dba
extra : source : 225ad2535585ff6ce38e1e9f8fe5371194a70658
2016-11-12 16:13:21 -08:00
Kris Maglione
a9b0112912 Bug 1317101 - Part 4: Deduplicate the handling of context tab and window IDs, and handle <browser> nesting in tabs. r=aswan
This could still use a fair amount of additional cleanup.

MozReview-Commit-ID: BteBFMlZCsy

--HG--
extra : rebase_source : cc0dc4854167c49593a4f4046c3d6527afe1eddf
extra : source : b0521588011d866ee6b2019ee71654768b9e7677
2016-11-15 15:13:50 -08:00
Wes Kocher
4e5f6472fd Backed out 15 changesets (bug 1317101) for e10s jsreftest failures a=backout CLOSED TREE
Backed out changeset 17757ba4c0e8 (bug 1317101)
Backed out changeset 61f8a4084bbd (bug 1317101)
Backed out changeset a8cdc81cdcce (bug 1317101)
Backed out changeset e06d269a5d4f (bug 1317101)
Backed out changeset 1e1bfb578dcd (bug 1317101)
Backed out changeset 0f8144296a9d (bug 1317101)
Backed out changeset b7892d3fb0ca (bug 1317101)
Backed out changeset 039d63d5fef7 (bug 1317101)
Backed out changeset ef7e061b37bf (bug 1317101)
Backed out changeset af7b81d7a5cc (bug 1317101)
Backed out changeset 225ad2535585 (bug 1317101)
Backed out changeset b0521588011d (bug 1317101)
Backed out changeset 07321664430a (bug 1317101)
Backed out changeset 47d283897283 (bug 1317101)
Backed out changeset ffc63be3557c (bug 1317101)
2016-11-16 16:44:30 -08:00
Kris Maglione
488b66af65 Bug 1317101: Follow-up: Fix race in popup tests.
MozReview-Commit-ID: af64Ic1qBg

--HG--
extra : rebase_source : 05345e09c4e324a4397dceb2c228821013efa0ae
2016-11-16 15:35:24 -08:00
Kris Maglione
f037fc507b Bug 1317101 - Part 8b: Run browser mochitests in both parent-process and remote configurations. r=billm
MozReview-Commit-ID: 6IGGnpgZLce

--HG--
rename : browser/components/extensions/test/browser/browser.ini => browser/components/extensions/test/browser/browser-common.ini
rename : browser/components/extensions/test/browser/browser.ini => browser/components/extensions/test/browser/browser-remote.ini
extra : rebase_source : a51af3186f10c2865b929ec1a32519aff72b6660
extra : histedit_source : 27001abd91b029f9bb48d955b46616651f2e5002
2016-11-16 13:14:37 -08:00
Kris Maglione
c8e74990ec Bug 1317101 - Part 7c: Run extension popups in a remote browser. r=aswan
MozReview-Commit-ID: CATeESBwj1J

--HG--
extra : rebase_source : 646aa463a4f20a0b22c3b293c940904d761c6d1c
extra : histedit_source : 1825cc22cbf0d095e4eb5058d736bb7e0afcceb3%2C3826dd6bb5abbc55f9a461e7014390aaf933ad7f
2016-11-16 13:39:45 -08:00
Kris Maglione
3cb07fc3a1 Bug 1317101 - Part 5: Simply remote view initialization code, and fix some inconsistent handling. r=billm
MozReview-Commit-ID: 65BE0oF3rpI

--HG--
extra : rebase_source : 0c320b6c6c94576a0fc20d1117bf9d76c716c0f2
2016-11-12 16:13:21 -08:00
Kris Maglione
191000683d Bug 1317101 - Part 4: Deduplicate the handling of context tab and window IDs, and handle <browser> nesting in tabs. r=aswan
This could still use a fair amount of additional cleanup.

MozReview-Commit-ID: BteBFMlZCsy

--HG--
extra : rebase_source : 8b37748c25cc5c871ebac3eaab34ae6780175f37
2016-11-15 15:13:50 -08:00
Carsten "Tomcat" Book
e7ca75286b Merge mozilla-central to inbound 2016-11-16 14:53:15 +01:00
Shane Caraveo
d981ec07ec Bug 1311576 fix webrequest filter for tabId and windowId, r=kmag
MozReview-Commit-ID: FzW53LXktWz

--HG--
extra : rebase_source : e19987aa7f2bfa711f07abebaf37b75464508177
2016-11-15 16:34:33 -08:00
Carsten "Tomcat" Book
8cfa5253e8 merge mozilla-inbound to mozilla-central a=merge 2016-11-15 12:26:41 +01:00
Tomislav Jovanovic
2c891cc35b bug 1310331 - implement matchAboutBlank for tabs.executeScript r=kmag
MozReview-Commit-ID: ApuakyrctzD

--HG--
extra : rebase_source : 8155b4244f6f9652b7cb9ef79ee3d0e9dc6f1b8b
2016-11-03 11:41:21 +01:00
Michael Layzell
c82aff30be No bug - Correct previously ignored argument to gBrowser.duplicateTab, a=bustage
MozReview-Commit-ID: Bs3rkMsLFbk
2016-11-15 13:50:29 -05:00
Kris Maglione
b865966d97 Bug 1308416: Un-request longer timeout for browser_ext_windows_create, since the last failure was before it was split up.
MozReview-Commit-ID: 7CMC31puAOP

--HG--
extra : rebase_source : e05cd93d3e8723b579c93c9b017e374f8c42f583
2016-11-15 09:45:05 -08:00
Kris Maglione
4e22a4cec8 Bug 1315769, 1308416: Request longer timeouts for tests that can't be split up.
MozReview-Commit-ID: IWRk3FYqKIE

--HG--
extra : rebase_source : d9026951238d71142700c042d235414c840fd8fa
2016-11-15 09:36:27 -08:00
Kris Maglione
a92ba39567 Bug 1312492: Fix intermittent. r=me
MozReview-Commit-ID: 2l8z5BLP4hs

--HG--
extra : rebase_source : d0518cd618d44d80e66062a945ec8d881fbbcceb
2016-11-15 08:51:37 -08:00
Kris Maglione
f40b4e1594 Bug 1312392: Fix a timing regression in popup sizing tests. r=trivial
MozReview-Commit-ID: EDkPfxCN8BE

--HG--
extra : rebase_source : 43f8d59b810416ae4792ff01fb4c91cc56b5cac7
2016-11-14 17:15:45 -08:00
Kris Maglione
37ec10c623 Bug 1316784: Kill PseudoChildAPIManager. r=aswan
MozReview-Commit-ID: CIRltzhWWAJ

--HG--
extra : source : 888815bca14ce217d0be88ec39a79018790ee969
extra : histedit_source : 9cc4470284864b5a3dc4cbcb3b971b49d0af2e52
2016-11-11 15:50:29 -08:00
Sebastian Hengst
a80dab2133 Backed out changeset 888815bca14c (bug 1316784) 2016-11-12 13:43:23 +01:00
Kris Maglione
2155aae978 Bug 1316784: Kill PseudoChildAPIManager. r=aswan
MozReview-Commit-ID: CIRltzhWWAJ

--HG--
extra : rebase_source : 6a7f2ada60ec66b15c08e09dfd23c267200fd707
extra : histedit_source : 9c10941f8acc58b0f9476147fa74bafd8c563c1e%2C79208555c30ca2b41c897e20737740522f356004
2016-11-11 15:50:29 -08:00
Kris Maglione
14b9ffa5bc Bug 1316780: Part 2 - Remove ext-test.js. r=aswan
MozReview-Commit-ID: HGv8t0LZK4K

--HG--
extra : rebase_source : 04fa6526df53403156b89185d304e93a39b4cf48
2016-11-11 15:23:17 -08:00
Wes Kocher
cee41d5b80 Merge inbound to central, a=merge 2016-11-11 13:56:45 -08:00
Carsten "Tomcat" Book
cc5d30c616 Merge mozilla-central to mozilla-inbound
--HG--
extra : rebase_source : 658b3ffdfa71afff2d44129f50e50e2fbecbd06e
2016-11-11 16:43:07 +01:00
Carsten "Tomcat" Book
bff71a740a Backed out changeset 7ef35cccfd7b (bug 1267810) 2016-11-11 09:08:18 +01:00
Wes Kocher
93dca6f437 Backed out changeset 15886f6c3dd1 (bug 1311576) for test_ext_webrequest_filter.html failures a=backout 2016-11-10 23:36:07 -08:00
Matthew Wein
b3b4cd18df Bug 1267810 - Use the new module to implement the omnibox api. r=aswan,robwu
MozReview-Commit-ID: GYzueGSijyd

--HG--
extra : rebase_source : b55464fb90f63317822ba8acd47388ace84e4b96
2016-11-11 02:06:43 +00:00
Matthew Wein
3a3ce1cac9 Bug 1267810 - Use the new module to implement the omnibox api. r=aswan,robwu
MozReview-Commit-ID: GYzueGSijyd

--HG--
extra : rebase_source : 0d35faa215e9a4f675d20a5a4d550a371382464f
2016-11-11 02:06:43 +00:00
djmdev
f08897dbcb Bug 1274860 - Modify getContexts function so that page context is applied properly. r=kmag
--HG--
extra : rebase_source : 62f9766eafa3a8a1e3b0b1f3bc95c22904ec6047
2016-11-11 17:49:44 +05:30
Shane Caraveo
086959718c Bug 1311576 fix webrequest filter for tabId and windowId, r=kmag
MozReview-Commit-ID: Gfg3Wv7JGI6

--HG--
extra : rebase_source : 08999bd99d095d1198a9cbaa3eb0c84b051f4473
2016-11-10 09:54:34 -08:00
Carsten "Tomcat" Book
846adaea6c merge mozilla-inbound to mozilla-central a=merge 2016-11-09 16:38:04 +01:00
Kris Maglione
2be53ae148 Bug 1315872: Refactor browser_ext_tabs_cookieStoreId. r=aswan
MozReview-Commit-ID: J4diktOFIQR

--HG--
extra : rebase_source : 56de8d0b34022ec82f6550b9cfcb34bb870e38ab
extra : histedit_source : c0ae98a25ed447226e44bc3c18700850fe70865c
2016-11-07 22:08:24 -08:00
Kris Maglione
aa7573eedb Bug 1315872: Refactor tests that check for promise rejection to use assertRejects. r=aswan
MozReview-Commit-ID: 1fBE7B2OdH7

--HG--
extra : rebase_source : bd9e12c0ef3f0735e7587fe5db19cc10cd5a47e5
extra : histedit_source : aa50834f1c2594e28eae83fded023df284d3d3c0
2016-11-07 22:04:49 -08:00
Tom Schuster
cdf4b653b0 Bug 1221764 - Implement simple chrome.bookmarks events, r=aswan,mak
MozReview-Commit-ID: LWbhYf8CpZD

--HG--
extra : rebase_source : 74e11b9787ef151640aa5ff13024e62c40ddc476
2016-08-17 10:22:10 -04:00
Bob Silverberg
1459d5aa54 Bug 1308060 - Implement sessions.restore WebExtensions API, r=aswan
MozReview-Commit-ID: Ci7WhKYJBN1

--HG--
extra : rebase_source : 723aec47a2bd00cef74413c6be4b05dac7d97117
2016-11-07 14:53:27 -05:00
Kris Maglione
5afec92baa Bug 1315575: Part 3 - Convert ImageData objects at the binding layer, and remove unnecessary content bindings. r=aswan
MozReview-Commit-ID: CjqXRiFcMWp

--HG--
extra : rebase_source : 5e9a839c8193699083e304c27138b876675ea8a7
2016-11-06 17:35:07 -08:00
Wes Kocher
147936ec43 Merge inbound to central, a=merge 2016-11-07 14:00:52 -08:00
Kris Maglione
433c0df4cc Bug 1306797: Dispatch key events to the correct windows. r=me
MozReview-Commit-ID: 2jxb5dnVREu

--HG--
extra : rebase_source : 95c8b75f832c76dad942c4d594ae3855250cd88b
2016-11-06 19:18:24 -08:00
Phil Ringnalda
7f06434292 Merge m-c to m-i
MozReview-Commit-ID: KCA8bY2DowI
2016-11-06 19:16:46 -08:00
Kris Maglione
8b796251b6 Bug 1266510: Try explicitly focusing new browser window before waiting for focus change event. r=me
MozReview-Commit-ID: B3mod2MtA8d

--HG--
extra : rebase_source : 9531fab468c30492efbcf686425918a36e1ed21e
2016-11-06 19:03:03 -08:00
Kris Maglione
ab2c61f94d Bug 1308649: Split browser_ext_windows_create.js into three files. r=me
MozReview-Commit-ID: 5abJw8VEJCU

--HG--
rename : browser/components/extensions/test/browser/browser_ext_windows_create.js => browser/components/extensions/test/browser/browser_ext_windows_allowScriptsToClose.js
rename : browser/components/extensions/test/browser/browser_ext_windows_create.js => browser/components/extensions/test/browser/browser_ext_windows_create_params.js
extra : rebase_source : 6d5385560a1ca89f43b985504fa8f70710fe9eb1
2016-11-06 17:43:47 -08:00
Bob Silverberg
822f3154e2 Bug 1310019 - web extension API : chrome.tabs.query doesn’t get tabs title at first call, r=kmag
Add permission to the active tab on mousedown in ext-browserAction.js

MozReview-Commit-ID: H0oXQElppo7

--HG--
extra : rebase_source : 09ac61c479b57cb487bd81855dd9acae27537f39
extra : source : 935c49da3488b4270cf45447451d6bb0abe3f369
2016-10-31 17:30:16 -04:00
Sebastian Hengst
e9bafabd96 Backed out changeset 15760cbfa77a (bug 1308058) for almost permafailing browser_ext_sessions.js on Linux debug in e10s mode. r=backout a=backout
MozReview-Commit-ID: 6uhHHvTHguG
2016-11-05 11:12:19 +01:00
Bob Silverberg
799141376a Bug 1308058 - Implement sessions.getRecentlyClosed WebExtensions API, r=aswan
MozReview-Commit-ID: 7AKfMil3Dr4

--HG--
extra : rebase_source : a8a6c35e329c699eea523f1dad794e1106681719
2016-10-25 16:09:28 -04:00
Bob Silverberg
7083cbf0d9 Bug 1308058 - Implement sessions.getRecentlyClosed WebExtensions API, r=aswan
MozReview-Commit-ID: 7AKfMil3Dr4

--HG--
extra : rebase_source : 075f74835aff7f9937d3f456714c64b9a31168db
2016-10-25 16:09:28 -04:00
Kris Maglione
9ec833d34e Bug 1308421: Handle MessageChannel responses correctly after docshells have been swapped. r=aswan
MozReview-Commit-ID: HDTrBfdclXd

--HG--
extra : rebase_source : ec09a6772df798982fc2d52153186fd901a3984c
extra : amend_source : da03f0645ee6561497936f7c42d46f941ad2dd77
extra : histedit_source : 0937500d487c46a738c0a2783b04054ec238a940
2016-10-11 21:08:33 +01:00
Kris Maglione
e6b9c2b457 Bug 1307551: Don't attempt to pre-load popup for disabled browserAction. r=bsilverberg
MozReview-Commit-ID: 8imoqD1Xoja

--HG--
extra : rebase_source : 8f0fa63b813f77bc8cde28aa1878c880ac96a3df
extra : amend_source : dee66aef3c55b737fb8f946d9184fc82794f0ff5
2016-11-01 09:41:30 -07:00
Kris Maglione
e9c3a589bb Bug 1312690: Lazily initialize extension APIs. r=aswan
MozReview-Commit-ID: 2ofzT6wPvus

--HG--
extra : rebase_source : 462e3eca2a9750fb07ad753322e86bc1494a8b4e
2016-11-02 19:21:04 -07:00
Shane Caraveo
cb4c301312 Bug 1273138 fix WebRequest for background pages, r=kmag
MozReview-Commit-ID: DEW9anMmKi2

--HG--
extra : rebase_source : 7d82d1000473b2530d6144987a28e35815c11999
2016-11-02 09:30:50 -07:00
Kris Maglione
9c000b319d Bug 1313956: Async all the tests. r=aswan
MozReview-Commit-ID: CyNCfEsDD42

--HG--
extra : source : efc9b52a218f7ffd40ba346de74fd846a9059ceb
2016-11-07 21:03:14 -08:00
Ryan VanderMeulen
a41f7d1058 Merge autoland to m-c. a=merge 2016-10-29 09:12:45 -04:00
Andrea Marchesini
0467141ad5 Bug 1302697 - Containers and WebExtensions - part 3 - getAllCookieStores, r=kmag 2016-10-28 10:16:32 +02:00
Andrea Marchesini
c119e65ac0 Bug 1302697 - Containers and WebExtensions - part 1 - Tab API, r=kmag 2016-10-28 10:15:42 +02:00
Eric Rahm
52e9f58e98 Bug 1312901 - Part 2: Use nsIArray for URL argument when opening a window. r=Gijs
This updates the URL argument to use an nsIMutableArray instead of an nsIArray.

MozReview-Commit-ID: 45kvKCBYNK6
2016-10-27 14:22:14 -07:00
Rob Wu
ca2c1cf947 Bug 1299411 - Pass port parameter to port.onMessage r=kmag
This should have been a part of bug 1298810, but that only set the
argument for native messaging ports, which does not use Port from
ExtensionUtils. The port parameter must also be included in runtime's
Port.onMessage to avoid regressions when the port implementations are
unified and native messaging starts using runtime's Port.

Note that starting from this commit, multiple onMessage listeners
receive the same (cloned) message instead of a new clone per listener.
This is a side effect of using `fire.withoutClone` instead of `fire`:
`fire` clones all parameters, but ports are not cloneable so we have
to use `fire.withoutClone` instead. This change with regards to message
cloning is fully compatible with Chrome's messaging API (which also
passes the same message object to all `port.onMessage` calls).

MozReview-Commit-ID: AUDuUKHkXCM

--HG--
extra : rebase_source : b91d701bba21f376935961a6eeb1a8489ac5591b
2016-09-24 11:34:26 +02:00
Carsten "Tomcat" Book
c1f7613ca2 Backed out changeset 0fd006bf6f9d (bug 1308058) for timeouts in browser_ext_sessions.js
--HG--
extra : rebase_source : d06e03178e4940618d0c42de2e7da26e485f23c0
2016-10-28 15:45:29 +02:00
Rob Wu
e668502481 Bug 1287007 - Fix timing issue in browser_ext_windows_create_tabId.js r=billm
When tabs.onUpdated is called before the promise of windows.create
resolves, the test fails.
This test failure was observed on almost every try run with non-e10s,
and sometimes (rarely) with e10s.

MozReview-Commit-ID: 3znCP1uAUSB

--HG--
extra : rebase_source : ec150b83f85a50f75eda2a0e41f3a60611625046
2016-10-21 01:35:03 +02:00
Rob Wu
2c28b34d3b Bug 1287007 - Fix timing issue in browser_ext_contextMenus.js r=billm
MozReview-Commit-ID: D7No2zFUWjf

--HG--
extra : rebase_source : 70dee95902fb580bdca2c1cf33675fd13346f22f
2016-10-12 01:10:33 +02:00
Rob Wu
9dfc705076 Bug 1287007 - Adjust state test in browser_ext_windows_update.js on Linux r=kmag
The test/browser/browser_ext_windows_update.js test fails on Linux.

The window ID is not expected to change, add assertion for it to
eliminate causes for test failures.

Ultimately, it turns out that the test failure is caused by a defect
in the implementation, not the test itself, see bugzil.la/1307759

MozReview-Commit-ID: Lo8IIvcfYQ2

--HG--
extra : rebase_source : 12ffc9c2d545723b012b6c5dcf216e7ef34e1790
2016-10-03 01:13:32 +02:00
Rob Wu
3a2af37b59 Bug 1287007 - Fix timing issue in browser_ext_tabs_onUpdated.js r=billm
Reload about:blank tab after opening it and registering the
`tabs.onUpdated` event. This is needed because about:blank loads very
fast, before the callback of `tabs.create` is invoked. This effect is
amplified by the fact that the APIs are now proxied.

MozReview-Commit-ID: DgPtIqHSUDx

--HG--
extra : rebase_source : afe6ec984bed06f47c24e39fee6fa7c757c3dde3
2016-10-01 01:07:22 +02:00
Rob Wu
3be3ab8f88 Bug 1287007 - Remove contextMenusInternal.onClicked r=billm
contextMenusInternal.onClicked is already inlined in context_menus.json.
It should be removed because otherwise the
`browser.contextMenusInternal.onClicked` API would be generated.

MozReview-Commit-ID: LAKd2IGM5GU

--HG--
extra : rebase_source : 60668c2ef75661eefe21ce3135a2b7d7d320cb7b
2016-10-01 00:46:19 +02:00
Rob Wu
3992652f2f Bug 1287007 - Make browser_ext_tabs_executeScript.js reliable r=billm
The ProxyMessenger registers a listener whenever the first addon
starts. Although the map does not have any listeners any more at
the end of the test, the listener itself is not removed because
the message-manager-close notification is not sent for them.

So do not count these persistent message managers in the test.
The actual message managers of interest are those associated with
the (closed) tab.

Note: When the test is run in isolation, it may still fail due
to bugzil.la/1293583. See bug for work-around if you want to test.

MozReview-Commit-ID: IiDHhmvQPcv

--HG--
extra : rebase_source : 3a9332d69be31e34bc704de217c823e2a02dd514
2016-09-15 15:53:03 -07:00
Rob Wu
70ca4c8753 Bug 1287007 - Make window.close in extension pages async r=billm
Test coverage by tabs.onRemoved + window.close() in:
toolkit/components/extensions/test/mochitest/test_ext_tab_teardown.html

MozReview-Commit-ID: 7asg2XGrTaQ

--HG--
extra : rebase_source : 4498725a207e1863bb5a1f0ee58673e6976df1f8
2016-09-13 20:26:18 -07:00
Rob Wu
67b8230b49 Bug 1287007 - Remove .contentWindow from ProxyContext r=billm
MozReview-Commit-ID: ASNigrM07yz

--HG--
extra : rebase_source : e9169090ec8cb1d9822f235faa15516403576dde
2016-09-13 16:02:03 -07:00
Rob Wu
0c66504d77 Bug 1287007 - Fix "onclick" in contextMenus, to child. r=billm
Main thing: Making contextMenus implementation webext-oop compatible.

Preparation:

- Add getParentEvent to ChildAPIManager to allow use of remote events.
- Introduce `addon_parent_only` to "allowedContexts" to only generate a
  schema API in the main process.
- Do not fill in `null` for missing keys if the schema declares a key as
  `"optional": "omit-key-if-missing"`. This is needed for the second
  point in the next list.

Drive-by fixes:

- Ensure that the "onclick" handler is erased when a context closes.
- Do not clear the "onclick" handler in `contextMenus.update` if the
  onclick key has been omitted (parity with Chrome).
- Remove some unnecessary `Promise.resolve()`
- Add extensive set of tests that check the behavior of the contextMenus
  APIs with regards to the onclick attribute in various scenarios.

MozReview-Commit-ID: A5f3AUQzU8T

--HG--
extra : rebase_source : 0464a1aa2387343a6f1d0fcd8fbabfdd1a68b1bb
2016-09-12 18:26:03 -07:00
Rob Wu
fcb710d311 Bug 1287007 - Move part of browserAction and pageAction to child r=billm
And remove redundant `Promise.resolve()` because it is the default
for async functions.

setIcon is not supported on Android, so there was no need to change
mobile/android/components/extensions/ext-pageAction.js.

MozReview-Commit-ID: 94ebaJFxLAi

--HG--
extra : rebase_source : 20466181501b264ba33fc8ab61fdf2bed20f9eef
2016-09-11 04:18:35 -07:00
Rob Wu
bd0fa6844a Bug 1287007 - Only close extension tabs upon shutdown r=billm
In one of the previous patches, the viewType of popup changed from
"popup" to "tab". As a result it was closed by the `page-shutdown`
event handler in ext-tabs.js. This prevents that from happening.

Also added a test that checks whether the options page type is a tab, to
prevent future regressions.

MozReview-Commit-ID: 3Qcf08PgNqb

--HG--
extra : rebase_source : c4b89d122df52a7280ff5818903cb1d8737fb31c
2016-09-08 19:02:56 -07:00
Rob Wu
dce0635037 Bug 1287007 - Use IPC to share viewType, tabId and windowId r=billm
Accessing <browser> in ContentChild does not work when extensions run in
a separate process.

MozReview-Commit-ID: EK0aOYeGaZ5

--HG--
extra : rebase_source : 359cb1f9022b8097d27aa74a30e133c4a7e7c742
2016-09-06 15:25:10 -07:00
Rob Wu
9db4f57609 Bug 1287007 - Fix timing issue in browser_ext_tabs_getCurrent.js r=billm
browser.test.sendMessage does not have enough time to finish
before tabs.remove since test moved to ChildAPIManager for
extension pages, causing the test to time out.

MozReview-Commit-ID: 1mmGZOi9fzm

--HG--
extra : rebase_source : b0d1310f867040f1f7d14b94a95ba364e3902f88
2016-09-06 14:45:58 -07:00
Rob Wu
ff65d297cc Bug 1287007 - Move extension context initialization to ExtensionContent r=billm
This is a simple move of ExtensionContext creation logic to
ExtensionChild.

Before the change, ExtensionContext was initialized as follows:

1. (ext-backgroundPage.js) Create background page
2. (Extension.jsm) document-element-inserted observed.
3. (Extension.jsm) new ExtensionContext + unload observer.

After this commit:

1. (ext-backgroundPage.js) Create background page
2. (ext-backgroundPage.js) emit extension-browser-inserted event
3. (Extension.jsm) Pass global to ExtensionContent + unload listener.
4. (ExtensionContent.jsm) document-element-inserted observed.
5. (ExtensionChild.jsm) new ExtensionContext

The next step is to use frame scripts and synchronize state.

MozReview-Commit-ID: K6mPdq7KQ2T

--HG--
extra : rebase_source : c742dfe89646d6717da134c7408aa5a066107c66
2016-09-05 23:50:11 -07:00
Rob Wu
6023c940a4 Bug 1287007 - Rename "context.type" to "context.viewType" r=billm
"viewType" is more easily searchable and not as ambiguous as "type".

MozReview-Commit-ID: 8sG4qagFCBu

--HG--
extra : rebase_source : 39d76379996e631b9fc33f0c77d565cf302b9df9
2016-09-05 22:26:56 -07:00
Rob Wu
4ec02709a6 Bug 1287007 - Mark all browserAction methods as async r=billm
E.g. browser.browserAction.enable(...).then(...) now works as expected.
Removed a Promise.resolve() because that is the default.

MozReview-Commit-ID: 4Shxtn0rjYH

--HG--
extra : rebase_source : 2f2516686c7d79094fac5ff1176c1c9310f1abe5
2016-09-02 14:22:09 -07:00
Rob Wu
8a87af36f9 Bug 1287007 - Require "async" in schemas to match name r=billm
In the pageAction and browserAction schemas, several methods are
declared with `"async": true` but without a specified callback in the
`"parameters"` object, so callbacks are not allowed. However, when a
callback is proxied, the `ParentAPIManager` will mirror the call by
passing in an extra callback to the proxied API - and break.

This patch fixes the issue by removing uses of async:true.  Also for
consistency between the browserAction and pageAction methods, the
methods that were not declared as async have also been marked as async.

MozReview-Commit-ID: JQqzmTUAotB

--HG--
extra : rebase_source : 62d1cbc4843dd6c792318337158e4311f8df94a4
2016-09-02 03:37:55 -07:00
Rob Wu
ef043e450c Bug 1287007 - Fix timing issue in browser/page action tests r=billm
MozReview-Commit-ID: 9L0ttaq42Ga

--HG--
extra : rebase_source : 0120e0bf68a5d60096454c6dd42b2496a73be3a5
2016-09-02 16:33:32 -07:00
Dave Townsend
5ae97524cb Bug 1312055: Fix various eslint errors. r=standard8
MozReview-Commit-ID: 2XbldhBnofs

--HG--
extra : rebase_source : f0c91dfbe37159077b8d0506913dd719fe577f17
2016-10-21 10:03:51 -07:00
Andy McKay
e4fa3c53f8 bug 1240631 so that both invalid windows and tabs hit runtime.lastError r=kmag
MozReview-Commit-ID: EflXdTBWEEO

--HG--
extra : rebase_source : f3464383ec97250a3778ba627df10c210b3c5242
2016-10-21 14:45:18 -07:00
Kris Maglione
16e60b24ea Bug 1312224: Fix race in browser_ext_browserAction_popup_resize.js. r=me
MozReview-Commit-ID: 6pSsJDfNJzO

--HG--
extra : rebase_source : 822a6e27c79fee454404b568dd7d9edffd4d8c96
2016-10-22 14:22:43 -07:00
Kris Maglione
8e0d5c9c7e Bug 1287209: Make popup tests compatible with remote browsers. r=aswan
MozReview-Commit-ID: 79Xa3j5Kzov

--HG--
extra : source : 642ee7eb70bbe1d512a06cf6478910bd2d0db273
extra : intermediate-source : 50dcca551b63ee6e9b07207208d6cb1c239467af
extra : histedit_source : ac9867b9d5c0a1666f751b86199b4ba14e32d918%2C6261a9a05cd6386e2abfeddddf6f67a1d208d6f3
2016-10-20 19:02:14 -07:00
Kris Maglione
062bc47b74 Bug 1287209: Handle popup and options browser resizing using a frame script. r=aswan
MozReview-Commit-ID: DIfynklqrus

--HG--
extra : source : 68806639c03110bfb67dd6c705a5441a917afcd6
extra : intermediate-source : cc7503f09572bc49cd2f86184d0d3abc810351c3
2016-10-20 15:27:51 -07:00
Tomislav Jovanovic
3743f656f6 bug 1290057 - fire onFocusChanged when Firefox loses/gains focus r=kmag
MozReview-Commit-ID: 7OdyglGjnFQ

--HG--
extra : rebase_source : 72fc9d46f004366419b0dd62c6e2ab201ab9fef1
2016-10-14 05:38:34 +02:00
Sebastian Hengst
0c23c32b56 Backed out changeset 68806639c031 (bug 1287209) for failing browser-chrome test browser_ext_popup_corners.js. r=backout 2016-10-20 09:17:03 +02:00
Sebastian Hengst
304f2d4ce5 Backed out changeset 642ee7eb70bb (bug 1287209) 2016-10-20 09:16:15 +02:00
Kris Maglione
0d4f94f79a Bug 1287209: Make popup tests compatible with remote browsers. r=aswan
MozReview-Commit-ID: 79Xa3j5Kzov

--HG--
extra : rebase_source : 4746880f12993aab2055221d752be50105278a85
2016-10-19 15:13:25 -07:00
Kris Maglione
00de90e4be Bug 1287209: Handle popup and options browser resizing using a frame script. r=aswan
MozReview-Commit-ID: DIfynklqrus

--HG--
extra : rebase_source : fe673f907b56f4d2bdc53be2e37271541c5332d6
2016-10-19 20:19:43 -07:00
Kris Maglione
919d2fdacb Bug 1294442: Follow-up: Fix additional windows-only test failures. r=bustage
MozReview-Commit-ID: 2fz7eeC7WLm

--HG--
extra : rebase_source : 0885b5701013ed9e287f5d19e15ccbdcb1b02439
2016-10-19 18:52:15 -07:00
Eric Rahm
1b5670be81 Bug 1311223 - Stop using nsISupportsArray for window args. r=froydnj
WindowWatcher allows for either nsIArray or nsISupports array to be passed in
for the arguments param. This converts all internal usage to nsIArray.

MozReview-Commit-ID: DQjtIkobik0
2016-10-19 16:23:57 -07:00
Kris Maglione
e9d564b143 Bug 1294442: Follow-up: Fix test failures. r=bustage
MozReview-Commit-ID: F7qWPN1SsNT

--HG--
extra : rebase_source : 146d0c0a54df4b11345ff808c1fbf5829ead1dcc
2016-10-19 15:15:51 -07:00
Kris Maglione
a6b566a249 Bug 1294442: Part 2 - Fix layout issues when popup's preferred size is larger than maximum. r=aswan
MozReview-Commit-ID: E9gaAeQWtDb

--HG--
extra : rebase_source : d74f85a06a29ffcf40ffbb64d01625aaf3acd082
2016-10-19 13:47:59 -07:00
Mark Banner
56a7b3961a Bug 1251003 - Change .eslintrc files to .eslintrc.js to avoid obsolete config file format. r=mossop
MozReview-Commit-ID: JrbFxQ5rj6I

--HG--
rename : .eslintrc => .eslintrc.js
rename : accessible/.eslintrc => accessible/.eslintrc.js
rename : accessible/tests/browser/.eslintrc => accessible/tests/browser/.eslintrc.js
rename : browser/.eslintrc => browser/.eslintrc.js
rename : browser/base/content/test/alerts/.eslintrc => browser/base/content/test/alerts/.eslintrc.js
rename : browser/base/content/test/chrome/.eslintrc => browser/base/content/test/chrome/.eslintrc.js
rename : browser/base/content/test/general/.eslintrc => browser/base/content/test/general/.eslintrc.js
rename : browser/base/content/test/newtab/.eslintrc => browser/base/content/test/newtab/.eslintrc.js
rename : browser/base/content/test/plugins/.eslintrc => browser/base/content/test/plugins/.eslintrc.js
rename : browser/base/content/test/popupNotifications/.eslintrc => browser/base/content/test/popupNotifications/.eslintrc.js
rename : browser/base/content/test/referrer/.eslintrc => browser/base/content/test/referrer/.eslintrc.js
rename : browser/base/content/test/social/.eslintrc => browser/base/content/test/social/.eslintrc.js
rename : browser/components/contextualidentity/test/browser/.eslintrc => browser/components/contextualidentity/test/browser/.eslintrc.js
rename : browser/components/customizableui/test/.eslintrc => browser/components/customizableui/test/.eslintrc.js
rename : browser/components/dirprovider/tests/unit/.eslintrc => browser/components/dirprovider/tests/unit/.eslintrc.js
rename : browser/components/downloads/test/browser/.eslintrc => browser/components/downloads/test/browser/.eslintrc.js
rename : browser/components/downloads/test/unit/.eslintrc => browser/components/downloads/test/unit/.eslintrc.js
rename : browser/components/extensions/.eslintrc => browser/components/extensions/.eslintrc.js
rename : browser/components/extensions/test/browser/.eslintrc => browser/components/extensions/test/browser/.eslintrc.js
rename : browser/components/extensions/test/xpcshell/.eslintrc => browser/components/extensions/test/xpcshell/.eslintrc.js
rename : browser/components/feeds/test/.eslintrc => browser/components/feeds/test/.eslintrc.js
rename : browser/components/feeds/test/chrome/.eslintrc => browser/components/feeds/test/chrome/.eslintrc.js
rename : browser/components/feeds/test/unit/.eslintrc => browser/components/feeds/test/unit/.eslintrc.js
rename : browser/components/migration/tests/unit/.eslintrc => browser/components/migration/tests/unit/.eslintrc.js
rename : browser/components/newtab/tests/browser/.eslintrc => browser/components/newtab/tests/browser/.eslintrc.js
rename : browser/components/newtab/tests/xpcshell/.eslintrc => browser/components/newtab/tests/xpcshell/.eslintrc.js
rename : browser/components/originattributes/test/browser/.eslintrc => browser/components/originattributes/test/browser/.eslintrc.js
rename : browser/components/places/tests/browser/.eslintrc => browser/components/places/tests/browser/.eslintrc.js
rename : browser/components/places/tests/chrome/.eslintrc => browser/components/places/tests/chrome/.eslintrc.js
rename : browser/components/places/tests/unit/.eslintrc => browser/components/places/tests/unit/.eslintrc.js
rename : browser/components/preferences/in-content/tests/.eslintrc => browser/components/preferences/in-content/tests/.eslintrc.js
rename : browser/components/privatebrowsing/test/browser/.eslintrc => browser/components/privatebrowsing/test/browser/.eslintrc.js
rename : browser/components/safebrowsing/content/test/.eslintrc => browser/components/safebrowsing/content/test/.eslintrc.js
rename : browser/components/search/test/.eslintrc => browser/components/search/test/.eslintrc.js
rename : browser/components/selfsupport/test/.eslintrc => browser/components/selfsupport/test/.eslintrc.js
rename : browser/components/sessionstore/test/.eslintrc => browser/components/sessionstore/test/.eslintrc.js
rename : browser/components/sessionstore/test/unit/.eslintrc => browser/components/sessionstore/test/unit/.eslintrc.js
rename : browser/components/shell/test/.eslintrc => browser/components/shell/test/.eslintrc.js
rename : browser/components/shell/test/unit/.eslintrc => browser/components/shell/test/unit/.eslintrc.js
rename : browser/components/tests/browser/.eslintrc => browser/components/tests/browser/.eslintrc.js
rename : browser/components/translation/test/.eslintrc => browser/components/translation/test/.eslintrc.js
rename : browser/components/translation/test/unit/.eslintrc => browser/components/translation/test/unit/.eslintrc.js
rename : browser/components/uitour/test/.eslintrc => browser/components/uitour/test/.eslintrc.js
rename : browser/experiments/test/xpcshell/.eslintrc => browser/experiments/test/xpcshell/.eslintrc.js
rename : browser/extensions/formautofill/.eslintrc => browser/extensions/formautofill/.eslintrc.js
rename : browser/extensions/formautofill/test/browser/.eslintrc => browser/extensions/formautofill/test/browser/.eslintrc.js
rename : browser/extensions/pdfjs/test/.eslintrc => browser/extensions/pdfjs/test/.eslintrc.js
rename : browser/modules/test/.eslintrc => browser/modules/test/.eslintrc.js
rename : browser/modules/test/unit/social/.eslintrc => browser/modules/test/unit/social/.eslintrc.js
rename : browser/modules/test/xpcshell/.eslintrc => browser/modules/test/xpcshell/.eslintrc.js
rename : devtools/.eslintrc => devtools/.eslintrc.js
rename : devtools/.eslintrc.mochitests => devtools/.eslintrc.mochitests.js
rename : devtools/.eslintrc.xpcshell => devtools/.eslintrc.xpcshell.js
rename : devtools/client/aboutdebugging/test/.eslintrc => devtools/client/aboutdebugging/test/.eslintrc.js
rename : devtools/client/animationinspector/test/.eslintrc => devtools/client/animationinspector/test/.eslintrc.js
rename : devtools/client/animationinspector/test/unit/.eslintrc => devtools/client/animationinspector/test/unit/.eslintrc.js
rename : devtools/client/canvasdebugger/test/.eslintrc => devtools/client/canvasdebugger/test/.eslintrc.js
rename : devtools/client/commandline/test/.eslintrc => devtools/client/commandline/test/.eslintrc.js
rename : devtools/client/debugger/new/test/mochitest/.eslintrc => devtools/client/debugger/new/test/mochitest/.eslintrc.js
rename : devtools/client/debugger/test/.eslintrc => devtools/client/debugger/test/.eslintrc.js
rename : devtools/client/dom/.eslintrc => devtools/client/dom/.eslintrc.js
rename : devtools/client/dom/test/.eslintrc => devtools/client/dom/test/.eslintrc.js
rename : devtools/client/framework/test/.eslintrc => devtools/client/framework/test/.eslintrc.js
rename : devtools/client/inspector/.eslintrc => devtools/client/inspector/.eslintrc.js
rename : devtools/client/inspector/components/test/.eslintrc => devtools/client/inspector/components/test/.eslintrc.js
rename : devtools/client/inspector/computed/test/.eslintrc => devtools/client/inspector/computed/test/.eslintrc.js
rename : devtools/client/inspector/fonts/test/.eslintrc => devtools/client/inspector/fonts/test/.eslintrc.js
rename : devtools/client/inspector/markup/test/.eslintrc => devtools/client/inspector/markup/test/.eslintrc.js
rename : devtools/client/inspector/rules/test/.eslintrc => devtools/client/inspector/rules/test/.eslintrc.js
rename : devtools/client/inspector/shared/test/.eslintrc => devtools/client/inspector/shared/test/.eslintrc.js
rename : devtools/client/inspector/test/.eslintrc => devtools/client/inspector/test/.eslintrc.js
rename : devtools/client/jsonview/.eslintrc => devtools/client/jsonview/.eslintrc.js
rename : devtools/client/jsonview/test/.eslintrc => devtools/client/jsonview/test/.eslintrc.js
rename : devtools/client/memory/test/browser/.eslintrc => devtools/client/memory/test/browser/.eslintrc.js
rename : devtools/client/memory/test/unit/.eslintrc => devtools/client/memory/test/unit/.eslintrc.js
rename : devtools/client/netmonitor/.eslintrc => devtools/client/netmonitor/.eslintrc.js
rename : devtools/client/netmonitor/har/test/.eslintrc => devtools/client/netmonitor/har/test/.eslintrc.js
rename : devtools/client/netmonitor/test/.eslintrc => devtools/client/netmonitor/test/.eslintrc.js
rename : devtools/client/performance/test/.eslintrc => devtools/client/performance/test/.eslintrc.js
rename : devtools/client/performance/test/unit/.eslintrc => devtools/client/performance/test/unit/.eslintrc.js
rename : devtools/client/projecteditor/test/.eslintrc => devtools/client/projecteditor/test/.eslintrc.js
rename : devtools/client/promisedebugger/test/.eslintrc => devtools/client/promisedebugger/test/.eslintrc.js
rename : devtools/client/responsive.html/test/browser/.eslintrc => devtools/client/responsive.html/test/browser/.eslintrc.js
rename : devtools/client/responsive.html/test/unit/.eslintrc => devtools/client/responsive.html/test/unit/.eslintrc.js
rename : devtools/client/responsivedesign/test/.eslintrc => devtools/client/responsivedesign/test/.eslintrc.js
rename : devtools/client/scratchpad/test/.eslintrc => devtools/client/scratchpad/test/.eslintrc.js
rename : devtools/client/shadereditor/test/.eslintrc => devtools/client/shadereditor/test/.eslintrc.js
rename : devtools/client/shared/components/.eslintrc => devtools/client/shared/components/.eslintrc.js
rename : devtools/client/shared/components/test/browser/.eslintrc => devtools/client/shared/components/test/browser/.eslintrc.js
rename : devtools/client/shared/components/test/mochitest/.eslintrc => devtools/client/shared/components/test/mochitest/.eslintrc.js
rename : devtools/client/shared/shim/test/.eslintrc => devtools/client/shared/shim/test/.eslintrc.js
rename : devtools/client/shared/test/.eslintrc => devtools/client/shared/test/.eslintrc.js
rename : devtools/client/shared/test/unit/.eslintrc => devtools/client/shared/test/unit/.eslintrc.js
rename : devtools/client/sourceeditor/.eslintrc => devtools/client/sourceeditor/.eslintrc.js
rename : devtools/client/sourceeditor/test/.eslintrc => devtools/client/sourceeditor/test/.eslintrc.js
rename : devtools/client/storage/test/.eslintrc => devtools/client/storage/test/.eslintrc.js
rename : devtools/client/styleeditor/test/.eslintrc => devtools/client/styleeditor/test/.eslintrc.js
rename : devtools/client/webaudioeditor/test/.eslintrc => devtools/client/webaudioeditor/test/.eslintrc.js
rename : devtools/client/webconsole/net/.eslintrc => devtools/client/webconsole/net/.eslintrc.js
rename : devtools/client/webconsole/net/test/mochitest/.eslintrc => devtools/client/webconsole/net/test/mochitest/.eslintrc.js
rename : devtools/client/webconsole/net/test/unit/.eslintrc => devtools/client/webconsole/net/test/unit/.eslintrc.js
rename : devtools/client/webconsole/new-console-output/test/.eslintrc => devtools/client/webconsole/new-console-output/test/.eslintrc.js
rename : devtools/client/webconsole/test/.eslintrc => devtools/client/webconsole/test/.eslintrc.js
rename : devtools/client/webide/test/.eslintrc => devtools/client/webide/test/.eslintrc.js
rename : devtools/server/tests/browser/.eslintrc => devtools/server/tests/browser/.eslintrc.js
rename : devtools/server/tests/mochitest/.eslintrc => devtools/server/tests/mochitest/.eslintrc.js
rename : devtools/server/tests/unit/.eslintrc => devtools/server/tests/unit/.eslintrc.js
rename : devtools/shared/heapsnapshot/tests/unit/.eslintrc => devtools/shared/heapsnapshot/tests/unit/.eslintrc.js
rename : devtools/shared/platform/content/.eslintrc => devtools/shared/platform/content/.eslintrc.js
rename : devtools/shared/platform/content/test/.eslintrc => devtools/shared/platform/content/test/.eslintrc.js
rename : devtools/shared/security/tests/unit/.eslintrc => devtools/shared/security/tests/unit/.eslintrc.js
rename : devtools/shared/tests/browser/.eslintrc => devtools/shared/tests/browser/.eslintrc.js
rename : devtools/shared/tests/unit/.eslintrc => devtools/shared/tests/unit/.eslintrc.js
rename : devtools/shared/transport/tests/unit/.eslintrc => devtools/shared/transport/tests/unit/.eslintrc.js
rename : devtools/shared/webconsole/test/unit/.eslintrc => devtools/shared/webconsole/test/unit/.eslintrc.js
rename : devtools/shared/worker/tests/browser/.eslintrc => devtools/shared/worker/tests/browser/.eslintrc.js
rename : mobile/android/components/extensions/.eslintrc => mobile/android/components/extensions/.eslintrc.js
rename : mobile/android/components/extensions/test/mochitest/.eslintrc => mobile/android/components/extensions/test/mochitest/.eslintrc.js
rename : security/manager/.eslintrc.json => security/manager/.eslintrc.js
rename : security/manager/ssl/tests/.eslintrc.json => security/manager/ssl/tests/.eslintrc.js
rename : security/manager/ssl/tests/mochitest/browser/.eslintrc.json => security/manager/ssl/tests/mochitest/browser/.eslintrc.js
rename : security/manager/ssl/tests/mochitest/mixedcontent/.eslintrc.json => security/manager/ssl/tests/mochitest/mixedcontent/.eslintrc.js
rename : security/manager/ssl/tests/mochitest/stricttransportsecurity/.eslintrc.json => security/manager/ssl/tests/mochitest/stricttransportsecurity/.eslintrc.js
rename : security/manager/ssl/tests/unit/.eslintrc.json => security/manager/ssl/tests/unit/.eslintrc.js
rename : security/manager/tools/.eslintrc.json => security/manager/tools/.eslintrc.js
rename : storage/.eslintrc => storage/.eslintrc.js
rename : testing/mochitest/browser.eslintrc => testing/mochitest/browser.eslintrc.js
rename : testing/mochitest/chrome.eslintrc => testing/mochitest/chrome.eslintrc.js
rename : testing/mochitest/mochitest.eslintrc => testing/mochitest/mochitest.eslintrc.js
rename : testing/xpcshell/xpcshell.eslintrc => testing/xpcshell/xpcshell.eslintrc.js
rename : toolkit/.eslintrc => toolkit/.eslintrc.js
rename : toolkit/components/aboutmemory/tests/.eslintrc => toolkit/components/aboutmemory/tests/.eslintrc.js
rename : toolkit/components/aboutperformance/tests/browser/.eslintrc => toolkit/components/aboutperformance/tests/browser/.eslintrc.js
rename : toolkit/components/addoncompat/tests/browser/.eslintrc => toolkit/components/addoncompat/tests/browser/.eslintrc.js
rename : toolkit/components/alerts/test/.eslintrc => toolkit/components/alerts/test/.eslintrc.js
rename : toolkit/components/asyncshutdown/tests/xpcshell/.eslintrc => toolkit/components/asyncshutdown/tests/xpcshell/.eslintrc.js
rename : toolkit/components/autocomplete/tests/unit/.eslintrc => toolkit/components/autocomplete/tests/unit/.eslintrc.js
rename : toolkit/components/captivedetect/test/unit/.eslintrc => toolkit/components/captivedetect/test/unit/.eslintrc.js
rename : toolkit/components/commandlines/test/unit/.eslintrc => toolkit/components/commandlines/test/unit/.eslintrc.js
rename : toolkit/components/commandlines/test/unit_unix/.eslintrc => toolkit/components/commandlines/test/unit_unix/.eslintrc.js
rename : toolkit/components/commandlines/test/unit_win/.eslintrc => toolkit/components/commandlines/test/unit_win/.eslintrc.js
rename : toolkit/components/contentprefs/tests/mochitest/.eslintrc => toolkit/components/contentprefs/tests/mochitest/.eslintrc.js
rename : toolkit/components/contentprefs/tests/unit/.eslintrc => toolkit/components/contentprefs/tests/unit/.eslintrc.js
rename : toolkit/components/contentprefs/tests/unit_cps2/.eslintrc => toolkit/components/contentprefs/tests/unit_cps2/.eslintrc.js
rename : toolkit/components/crashes/tests/xpcshell/.eslintrc => toolkit/components/crashes/tests/xpcshell/.eslintrc.js
rename : toolkit/components/crashmonitor/test/unit/.eslintrc => toolkit/components/crashmonitor/test/unit/.eslintrc.js
rename : toolkit/components/ctypes/tests/chrome/.eslintrc => toolkit/components/ctypes/tests/chrome/.eslintrc.js
rename : toolkit/components/ctypes/tests/unit/.eslintrc => toolkit/components/ctypes/tests/unit/.eslintrc.js
rename : toolkit/components/downloads/test/unit/.eslintrc => toolkit/components/downloads/test/unit/.eslintrc.js
rename : toolkit/components/extensions/.eslintrc => toolkit/components/extensions/.eslintrc.js
rename : toolkit/components/extensions/test/mochitest/.eslintrc => toolkit/components/extensions/test/mochitest/.eslintrc.js
rename : toolkit/components/extensions/test/xpcshell/.eslintrc => toolkit/components/extensions/test/xpcshell/.eslintrc.js
rename : toolkit/components/feeds/test/.eslintrc => toolkit/components/feeds/test/.eslintrc.js
rename : toolkit/components/filepicker/test/unit/.eslintrc => toolkit/components/filepicker/test/unit/.eslintrc.js
rename : toolkit/components/filewatcher/tests/xpcshell/.eslintrc => toolkit/components/filewatcher/tests/xpcshell/.eslintrc.js
rename : toolkit/components/formautofill/test/browser/.eslintrc => toolkit/components/formautofill/test/browser/.eslintrc.js
rename : toolkit/components/formautofill/test/chrome/.eslintrc => toolkit/components/formautofill/test/chrome/.eslintrc.js
rename : toolkit/components/formautofill/test/xpcshell/.eslintrc => toolkit/components/formautofill/test/xpcshell/.eslintrc.js
rename : toolkit/components/jsdownloads/test/browser/.eslintrc => toolkit/components/jsdownloads/test/browser/.eslintrc.js
rename : toolkit/components/jsdownloads/test/data/.eslintrc => toolkit/components/jsdownloads/test/data/.eslintrc.js
rename : toolkit/components/jsdownloads/test/unit/.eslintrc => toolkit/components/jsdownloads/test/unit/.eslintrc.js
rename : toolkit/components/lz4/tests/xpcshell/.eslintrc => toolkit/components/lz4/tests/xpcshell/.eslintrc.js
rename : toolkit/components/mediasniffer/test/unit/.eslintrc => toolkit/components/mediasniffer/test/unit/.eslintrc.js
rename : toolkit/components/narrate/.eslintrc => toolkit/components/narrate/.eslintrc.js
rename : toolkit/components/narrate/test/.eslintrc => toolkit/components/narrate/test/.eslintrc.js
rename : toolkit/components/osfile/tests/mochi/.eslintrc => toolkit/components/osfile/tests/mochi/.eslintrc.js
rename : toolkit/components/osfile/tests/xpcshell/.eslintrc => toolkit/components/osfile/tests/xpcshell/.eslintrc.js
rename : toolkit/components/passwordmgr/.eslintrc => toolkit/components/passwordmgr/.eslintrc.js
rename : toolkit/components/passwordmgr/test/.eslintrc => toolkit/components/passwordmgr/test/.eslintrc.js
rename : toolkit/components/passwordmgr/test/browser/.eslintrc => toolkit/components/passwordmgr/test/browser/.eslintrc.js
rename : toolkit/components/passwordmgr/test/unit/.eslintrc => toolkit/components/passwordmgr/test/unit/.eslintrc.js
rename : toolkit/components/perf/.eslintrc => toolkit/components/perf/.eslintrc.js
rename : toolkit/components/perfmonitoring/tests/browser/.eslintrc => toolkit/components/perfmonitoring/tests/browser/.eslintrc.js
rename : toolkit/components/places/tests/.eslintrc => toolkit/components/places/tests/.eslintrc.js
rename : toolkit/components/places/tests/bookmarks/.eslintrc => toolkit/components/places/tests/bookmarks/.eslintrc.js
rename : toolkit/components/places/tests/browser/.eslintrc => toolkit/components/places/tests/browser/.eslintrc.js
rename : toolkit/components/places/tests/chrome/.eslintrc => toolkit/components/places/tests/chrome/.eslintrc.js
rename : toolkit/components/places/tests/expiration/.eslintrc => toolkit/components/places/tests/expiration/.eslintrc.js
rename : toolkit/components/places/tests/favicons/.eslintrc => toolkit/components/places/tests/favicons/.eslintrc.js
rename : toolkit/components/places/tests/history/.eslintrc => toolkit/components/places/tests/history/.eslintrc.js
rename : toolkit/components/places/tests/migration/.eslintrc => toolkit/components/places/tests/migration/.eslintrc.js
rename : toolkit/components/places/tests/network/.eslintrc => toolkit/components/places/tests/network/.eslintrc.js
rename : toolkit/components/places/tests/queries/.eslintrc => toolkit/components/places/tests/queries/.eslintrc.js
rename : toolkit/components/places/tests/unifiedcomplete/.eslintrc => toolkit/components/places/tests/unifiedcomplete/.eslintrc.js
rename : toolkit/components/places/tests/unit/.eslintrc => toolkit/components/places/tests/unit/.eslintrc.js
rename : toolkit/components/promiseworker/tests/xpcshell/.eslintrc => toolkit/components/promiseworker/tests/xpcshell/.eslintrc.js
rename : toolkit/components/prompts/test/.eslintrc => toolkit/components/prompts/test/.eslintrc.js
rename : toolkit/components/remotebrowserutils/tests/browser/.eslintrc => toolkit/components/remotebrowserutils/tests/browser/.eslintrc.js
rename : toolkit/components/satchel/test/.eslintrc => toolkit/components/satchel/test/.eslintrc.js
rename : toolkit/components/satchel/test/browser/.eslintrc => toolkit/components/satchel/test/browser/.eslintrc.js
rename : toolkit/components/satchel/test/unit/.eslintrc => toolkit/components/satchel/test/unit/.eslintrc.js
rename : toolkit/components/search/tests/xpcshell/.eslintrc => toolkit/components/search/tests/xpcshell/.eslintrc.js
rename : toolkit/components/social/test/xpcshell/.eslintrc => toolkit/components/social/test/xpcshell/.eslintrc.js
rename : toolkit/components/sqlite/tests/xpcshell/.eslintrc => toolkit/components/sqlite/tests/xpcshell/.eslintrc.js
rename : toolkit/components/startup/tests/browser/.eslintrc => toolkit/components/startup/tests/browser/.eslintrc.js
rename : toolkit/components/startup/tests/unit/.eslintrc => toolkit/components/startup/tests/unit/.eslintrc.js
rename : toolkit/components/telemetry/tests/unit/.eslintrc => toolkit/components/telemetry/tests/unit/.eslintrc.js
rename : toolkit/components/terminator/tests/xpcshell/.eslintrc => toolkit/components/terminator/tests/xpcshell/.eslintrc.js
rename : toolkit/components/thumbnails/test/.eslintrc => toolkit/components/thumbnails/test/.eslintrc.js
rename : toolkit/components/timermanager/tests/unit/.eslintrc => toolkit/components/timermanager/tests/unit/.eslintrc.js
rename : toolkit/components/url-classifier/tests/mochitest/.eslintrc => toolkit/components/url-classifier/tests/mochitest/.eslintrc.js
rename : toolkit/components/url-classifier/tests/unit/.eslintrc => toolkit/components/url-classifier/tests/unit/.eslintrc.js
rename : toolkit/components/urlformatter/tests/unit/.eslintrc => toolkit/components/urlformatter/tests/unit/.eslintrc.js
rename : toolkit/components/viewsource/test/.eslintrc => toolkit/components/viewsource/test/.eslintrc.js
rename : toolkit/components/viewsource/test/browser/.eslintrc => toolkit/components/viewsource/test/browser/.eslintrc.js
rename : toolkit/components/workerloader/tests/.eslintrc => toolkit/components/workerloader/tests/.eslintrc.js
rename : toolkit/components/xulstore/tests/chrome/.eslintrc => toolkit/components/xulstore/tests/chrome/.eslintrc.js
rename : toolkit/components/xulstore/tests/xpcshell/.eslintrc => toolkit/components/xulstore/tests/xpcshell/.eslintrc.js
rename : toolkit/content/tests/browser/.eslintrc => toolkit/content/tests/browser/.eslintrc.js
rename : toolkit/content/tests/chrome/.eslintrc => toolkit/content/tests/chrome/.eslintrc.js
rename : toolkit/content/tests/unit/.eslintrc => toolkit/content/tests/unit/.eslintrc.js
rename : toolkit/content/tests/widgets/.eslintrc => toolkit/content/tests/widgets/.eslintrc.js
rename : toolkit/crashreporter/test/browser/.eslintrc => toolkit/crashreporter/test/browser/.eslintrc.js
rename : toolkit/crashreporter/test/unit/.eslintrc => toolkit/crashreporter/test/unit/.eslintrc.js
rename : toolkit/crashreporter/test/unit_ipc/.eslintrc => toolkit/crashreporter/test/unit_ipc/.eslintrc.js
rename : toolkit/forgetaboutsite/test/browser/.eslintrc => toolkit/forgetaboutsite/test/browser/.eslintrc.js
rename : toolkit/forgetaboutsite/test/unit/.eslintrc => toolkit/forgetaboutsite/test/unit/.eslintrc.js
rename : toolkit/identity/tests/chrome/.eslintrc => toolkit/identity/tests/chrome/.eslintrc.js
rename : toolkit/identity/tests/unit/.eslintrc => toolkit/identity/tests/unit/.eslintrc.js
rename : toolkit/modules/addons/.eslintrc => toolkit/modules/addons/.eslintrc.js
rename : toolkit/modules/subprocess/.eslintrc => toolkit/modules/subprocess/.eslintrc.js
rename : toolkit/modules/subprocess/test/xpcshell/.eslintrc => toolkit/modules/subprocess/test/xpcshell/.eslintrc.js
rename : toolkit/modules/tests/browser/.eslintrc => toolkit/modules/tests/browser/.eslintrc.js
rename : toolkit/modules/tests/chrome/.eslintrc => toolkit/modules/tests/chrome/.eslintrc.js
rename : toolkit/modules/tests/mochitest/.eslintrc => toolkit/modules/tests/mochitest/.eslintrc.js
rename : toolkit/modules/tests/xpcshell/.eslintrc => toolkit/modules/tests/xpcshell/.eslintrc.js
rename : toolkit/mozapps/downloads/tests/chrome/.eslintrc => toolkit/mozapps/downloads/tests/chrome/.eslintrc.js
rename : toolkit/mozapps/downloads/tests/unit/.eslintrc => toolkit/mozapps/downloads/tests/unit/.eslintrc.js
rename : toolkit/mozapps/extensions/.eslintrc => toolkit/mozapps/extensions/.eslintrc.js
rename : toolkit/mozapps/extensions/test/browser/.eslintrc => toolkit/mozapps/extensions/test/browser/.eslintrc.js
rename : toolkit/mozapps/extensions/test/mochitest/.eslintrc => toolkit/mozapps/extensions/test/mochitest/.eslintrc.js
rename : toolkit/mozapps/extensions/test/xpcshell/.eslintrc => toolkit/mozapps/extensions/test/xpcshell/.eslintrc.js
rename : toolkit/mozapps/extensions/test/xpinstall/.eslintrc => toolkit/mozapps/extensions/test/xpinstall/.eslintrc.js
rename : toolkit/mozapps/update/tests/chrome/.eslintrc => toolkit/mozapps/update/tests/chrome/.eslintrc.js
rename : toolkit/mozapps/update/tests/unit_aus_update/.eslintrc => toolkit/mozapps/update/tests/unit_aus_update/.eslintrc.js
rename : toolkit/mozapps/update/tests/unit_base_updater/.eslintrc => toolkit/mozapps/update/tests/unit_base_updater/.eslintrc.js
rename : toolkit/mozapps/update/tests/unit_service_updater/.eslintrc => toolkit/mozapps/update/tests/unit_service_updater/.eslintrc.js
rename : toolkit/profile/test/.eslintrc => toolkit/profile/test/.eslintrc.js
rename : toolkit/themes/osx/mochitests/.eslintrc => toolkit/themes/osx/mochitests/.eslintrc.js
rename : toolkit/xre/test/.eslintrc => toolkit/xre/test/.eslintrc.js
rename : tools/lint/eslint/eslint-plugin-mozilla/lib/rules/.eslintrc => tools/lint/eslint/eslint-plugin-mozilla/lib/rules/.eslintrc.js
extra : rebase_source : 60affc4b9bf436bba7e0e21a8da3a85d16c9fc06
2016-10-18 08:38:10 +01:00
Tomislav Jovanovic
224b21b060 bug 1281354 - test current window correct after moving tab, r=aswan
MozReview-Commit-ID: 14dgxq0FkNB

--HG--
extra : rebase_source : 9e673fcd0f8fd4b4905907ce013e53af919d0c90
2016-10-12 23:46:21 +02:00
Tomislav Jovanovic
e06eb7dfd0 bug 1273146 - populate tabs in windows.create() return value r=kmag
MozReview-Commit-ID: 5dnnSdXrsaJ

--HG--
extra : rebase_source : 5cc49e83ed070b9c96dc7855ff3f612045a44647
2016-10-09 02:11:25 +02:00
Bob Silverberg
24591f86d2 Bug 1308058 - Implement sessions.getRecentlyClosed WebExtensions API, r=aswan
MozReview-Commit-ID: 7AKfMil3Dr4

--HG--
extra : rebase_source : f86d57529e26435e30ad552332e176d0c700fcf7
2016-10-25 16:09:28 -04:00
Matthew Wein
98ce8031a3 Bug 1246034: Part 2 - [webext] Add support for _execute_browser_action. r=kmag
MozReview-Commit-ID: EIbPidn07qZ

--HG--
extra : rebase_source : 30ebf49ce314899877734e482bbd6ddf0971d037
2016-07-08 15:02:49 -07:00
Kris Maglione
5fa61868b6 Bug 1246034: Part 1 - [webext] Add a helper function to trigger a browserAction. r=jaws
MozReview-Commit-ID: JUW6oUpWiN4

--HG--
extra : rebase_source : 324a7ece3b7bc550478326b5bd2795599a5ec6bb
2016-09-07 11:05:11 +01:00
Ryan VanderMeulen
e980397fb4 Merge m-c to autoland. a=merge 2016-10-07 23:22:46 -04:00
Kris Maglione
a4e557a57b Bug 1289273: Resolve URLs passed to windows.create relative to the caller. r=aswan a=al
MozReview-Commit-ID: 3TUIK6EvO3q

--HG--
extra : rebase_source : cccf23ce3edc1543f15223c677645c42be0ff7a6
extra : histedit_source : 42bdc39ad4c4bdc01e3d094f8d62eae11f3532ba
2016-10-05 20:27:06 +01:00
Tomislav Jovanovic
fcec1aca37 bug 1278685 - test contextMenus.removeAll with two extensions, r=aswan
MozReview-Commit-ID: AoEw1Jo7m4R

--HG--
extra : rebase_source : db61749f7108602899866710de6168e1d3a503ce
2016-10-07 02:11:05 +02:00
Tomislav Jovanovic
0c231aa27e bug 1301227 - add allowScriptsToClose option to windows.create(), r=kmag
MozReview-Commit-ID: 4p8A1y2FALX

--HG--
extra : rebase_source : 5be607adae5c5eb8de8061a76461d1c056786161
2016-09-23 23:40:24 +02:00
Kris Maglione
fcb32d398e Bug 1299891: Make pageAction panels tab-specific. r=jaws
MozReview-Commit-ID: D0ZIJzWnUF6

--HG--
extra : rebase_source : c577f58115cf737c005a030c00b5f6131db6b212
2016-09-29 23:56:58 +01:00
Jesper Kristensen
6401f74ad3 Bug 1254221 - Support private browsing cookies in WebExtensions r=kmag
MozReview-Commit-ID: 29ci8wbnMra

--HG--
extra : rebase_source : e124aa6526cbe9f8f51736aaa0258442b125b588
2016-09-29 19:18:14 +02:00
Carsten "Tomcat" Book
6636b09ddd merge mozilla-inbound to mozilla-central a=merge 2016-09-30 12:02:16 +02:00
Rob Wu
743d610ca6 Bug 1301862 - Call tabs.create sooner r=kmag
Call tabs.create immediately after the tab is created without delay to
reduce the chance of losing tabs.onUpdated events.

If needed, the tab waiting is done by `executeScript`, etc.

MozReview-Commit-ID: 7A1zH99zafK

--HG--
extra : rebase_source : 56fb363f45040e76a120e6a3de8feaad1575c337
2016-09-11 01:32:24 -07:00
Phil Ringnalda
6f3a9050ba Backed out changeset 9b6a4552a5c2 (bug 1254221) for test_ext_cookies.html timeouts and lint failures
CLOSED TREE
2016-09-27 18:21:01 -07:00
Kris Maglione
7fe3c9e28a Bug 1306037: Support options_ui in embedded WebExtensions. r=aswan
MozReview-Commit-ID: KZVPz52qrTS

--HG--
extra : rebase_source : 302bdead12c6bf36e30ed3782c6cb4526f1ef1c7
2016-09-28 23:11:35 +01:00
Jesper Kristensen
f4c17f8383 Bug 1254221 - Support private browsing cookies in WebExtensions r=kmag
MozReview-Commit-ID: 29ci8wbnMra

--HG--
extra : rebase_source : 8ab40a6dfa39c2988d52212630305bc10542b9ad
2016-05-15 12:18:13 +02:00
Rob Wu
467b53928a Bug 1296900 - Hide commands API if manifest key is missing r=kmag
MozReview-Commit-ID: 7vld6MgSlqG

--HG--
extra : rebase_source : 8569bb3f878adf1c25216ad5a0ddae90b0d50dda
2016-08-20 23:01:43 -07:00
Rob Wu
cbe00aff2e Bug 1296900 - Add test for availability of default WebExtension APIs r=kmag
MozReview-Commit-ID: LIr5Nsv51I3

--HG--
extra : rebase_source : 54e4b9169c545cb6359c7a0273dfaa54369da231
2016-08-20 22:21:45 -07:00
Wes Kocher
b77ba3eb2a Backed out 2 changesets (bug 1296900) for mochitest failures in test_ext_all_apis.html a=backout
Backed out changeset c37cf3cfd39c (bug 1296900)
Backed out changeset 998ed8336288 (bug 1296900)
2016-09-23 16:15:05 -07:00
Rob Wu
2487486fb5 Bug 1296900 - Hide commands API if manifest key is missing r=kmag
MozReview-Commit-ID: 7vld6MgSlqG

--HG--
extra : rebase_source : c86bdd4fefa357655c5fb95e2934b79320fd2fa8
2016-08-20 23:01:43 -07:00
Rob Wu
e31aa32c80 Bug 1296900 - Add test for availability of default WebExtension APIs r=kmag
MozReview-Commit-ID: LIr5Nsv51I3

--HG--
extra : rebase_source : 00f17e5b9b38b4a658b4b2a011ff6061a3f520b0
2016-08-20 22:21:45 -07:00
Tomislav Jovanovic
4e44ccab20 bug 1269421 - enable HTML tooltips in extension popups, r=aswan
MozReview-Commit-ID: 6pyJKgKGW5F

--HG--
extra : rebase_source : ccb839e4a8bed8fff2f384d095893ec0ada26f6b
2016-09-22 03:22:15 +02:00
Tomislav Jovanovic
6c44e70416 bug 1274809 - Add missing properties to OnClicked data, r=aswan
MozReview-Commit-ID: 4BodpIuKCz2

--HG--
extra : rebase_source : 981fe298e821c872898f503707ccd59fcb85b869
2016-09-21 02:12:11 +02:00
Phil Ringnalda
43631e2cd1 Backed out 2 changesets (bug 1296900) for est_ext_all_apis.html | failures
Backed out changeset fa509c880990 (bug 1296900)
Backed out changeset 06ee8b3640af (bug 1296900)
2016-09-21 18:59:22 -07:00
Rob Wu
fbdafd9474 Bug 1296900 - Hide commands API if manifest key is missing r=kmag
MozReview-Commit-ID: 7vld6MgSlqG

--HG--
extra : rebase_source : 6563d74c854ad4b9640557b15d31073d6fd2168a
2016-08-20 23:01:43 -07:00
Rob Wu
e081e458f4 Bug 1296900 - Add test for availability of default WebExtension APIs r=kmag
MozReview-Commit-ID: LIr5Nsv51I3

--HG--
extra : rebase_source : 75791499515f797267c397ac2b9e9b0c81339a02
2016-08-20 22:21:45 -07:00
Jared Wein
4b027e3645 Bug 1315781 - Enable no-shadow rule for eslint for xpcshell mochitests. r=mossop
MozReview-Commit-ID: 1mhCWplknyN

--HG--
extra : rebase_source : ab47e6e1bc2ba94fa26179ec18053fa798d9b778
2016-11-07 22:34:25 -05:00
Iris Hsiao
0cc78823fe Backed out changeset f6f28be8d8f2 (bug 1315781) for XPCShell test timed out
--HG--
extra : rebase_source : 0122a5372b6ac2174d4c37e7cc0169bf9c437178
2016-11-10 14:53:46 +08:00
Jared Wein
8ebd29ee02 Bug 1315781 - Enable no-shadow rule for eslint for xpcshell mochitests. r=mossop
MozReview-Commit-ID: DnpVQRrG9Ec

--HG--
extra : rebase_source : 3641e46c32b0e6700ee86fc71dcd35924ce1ed3a
2016-11-07 22:34:25 -05:00
Kris Maglione
c38ae6f59c Bug 1322869: Part 2 - Memoize some relatively expensive-to-compute tab attributes. r=bsilverberg
MozReview-Commit-ID: EpjsLhlNzvG

--HG--
extra : rebase_source : 2b0abdf1baaa631938eab2d1c2b1d03f1917a880
2016-12-19 12:34:50 -08:00
Kris Maglione
51f0eeae2f Bug 1322869: Part 1 - Apply window filters per-window rather than per-tab. r=bsilverberg
MozReview-Commit-ID: AAlyBJowMOm

--HG--
extra : rebase_source : 1dd37f5d13f9128dd4310397f928b3ddad6aab2b
2016-12-19 12:34:09 -08:00
Kanika Narang
fcdff1b513 Bug 1302950 - Rename --panel-arrowcontent* CSS variables to --arrowpanel*. r=dao 2016-09-20 09:27:49 +02:00
Sebastian Hengst
05c340d60c Backed out changeset 752f33561e8f (bug 1302950) for failing browser-chrome test browser_ext_popup_background.js. r=backout 2016-09-17 14:49:50 +02:00
Kanika Narang
89af03b5df Bug 1302950 - Rename --panel-arrowcontent* CSS variables to --arrowpanel*. r=dao
--HG--
extra : rebase_source : d8dccc1fb8131ba27b2f2e22a5439d1a841ebdc4
2016-09-17 12:17:04 +02:00
Greg Tatum
1e5a5a50e2 Bug 1290988 - Collect devtools/shared/css-* files into a folder. r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8

--HG--
rename : devtools/shared/css-color-db.js => devtools/shared/css/color-db.js
rename : devtools/shared/css-color.js => devtools/shared/css/color.js
rename : devtools/shared/css-lexer.js => devtools/shared/css/lexer.js
rename : devtools/shared/css-parsing-utils.js => devtools/shared/css/parsing-utils.js
rename : devtools/shared/css-properties-db.js => devtools/shared/css/properties-db.js
extra : rebase_source : 51d8d92db0ae91a7368b109aae9a509ba8012b3f
extra : histedit_source : ee3409615461cba0c656b32fee7f80d4b72a09d1
2016-09-14 10:00:27 -05:00
Matthew Wein
70cc92591a Bug 1245346 - Add test for onUpdated while lacking tab permissions. r=kmag
MozReview-Commit-ID: EZysUdjnSJK

--HG--
extra : transplant_source : 2%E4%1A%F4%5BY%DA%25%18%12%FF%F5%DA%9EG%87V%CBtk
2016-04-19 20:13:08 -04:00
Tomislav Jovanovic
285ceaf1ee bug 1288263 - tabs.detectLanguage() returns "und" for undetermined, r=kmag
MozReview-Commit-ID: 72ltWdufHiu

--HG--
extra : rebase_source : b5b9e78424aea9584615f70904eb9810e4843d5a
2016-09-10 23:05:02 +02:00
Rob Wu
9b30640835 Bug 1241719 - Fix intermittent browser_ext_tabs_onUpdated.js r=kmag
MozReview-Commit-ID: LhHS6F0YFUJ

--HG--
extra : rebase_source : b174f162c4a51868748420e39e1a7c85d789a96a
2016-09-10 03:16:39 -07:00
Rob Wu
7530f86ecf Bug 1298979 - move tabs.sendMessage/connect to child process r=billm
- Use the frame's message manager to direct messages via the
  ProxyMessenger to the right tab instead of directly to the tab.
- Put the implementation in a separate file that is only loaded in
  child processes (in the future).
- Explicitly list all addon-process specific files in a new category
  instead of reusing the content one.

MozReview-Commit-ID: 8oIMx9ol7Tl

--HG--
extra : rebase_source : f93805ecdf44d4607dffc20ffe1cf0cbeb8c86be
2016-08-28 20:07:46 -07:00
Rob Wu
dc0a47c098 Bug 1298979 - Fix LegacyExtensionContext r=aswan
LegacyExtensionContext should inherit from BaseContext instead of
ExtensionContext, because the latter is moving to a separate process.

Remove the optional `url` parameter because the context is not a frame.
`url` is assigned to `sender.url`, which should only be set for frames.
The sender is only used in extension messaging when `runtime.connect` or
`runtime.sendMessage` are used (where `sender.url` is visible at the
receiver). Since legacy extensions don't send messages, there is no
point at all in setting the `url` value.

MozReview-Commit-ID: FJboNC2SZh0

--HG--
extra : rebase_source : bbfd6670355a3b9985b03b5a203f3b0a19cdfde4
2016-09-06 01:48:58 -07:00
Rob Wu
3df8d2e80e Bug 1298979 - Add ProxyMessenger, change message managers and getSender r=billm
- Introduce a proxy for IPC messages to allow the following APIs
  to be run out-of-process (ProxyMessenger):

    * runtime.connect
    * runtime.sendMessage
    * tabs.connect
    * tabs.sendMessage
    * runtime.onConnect
    * runtime.onMessage

- Update getSender in ext-tabs, make it independent of the context
  (in particular do not throw an error when a message is received while
  the tab is gone), and move it from MessageChannel to ProxyMessenger to
  make sure that it works in webext-oop. MessageChannel lives in a child
  process, whereas the TabManager (used by getSender) requires data from
  the main process.

- Set the third parameter of `addMessageListener` to true in some places
  to make sure that messages get delivered even after unloading the
  context. This is needed for the next two points.

- Put the `messageManager` property in BaseContext, and let it be set by
  `setContentWindow` - runtime.sendMessage/connect and tabs.sendMessage/
  connect depends on this property, and using the frame message manager
  makes sense.

- Unconditionally use the frame message manager in
  runtime.sendMessage/connect instead of sometimes the cpmm.

MozReview-Commit-ID: 4QkPnlMOkjS

--HG--
extra : rebase_source : f2c753a9d396e4b5c40e46cd926024e664372002
2016-08-25 17:08:08 -07:00
Rob Wu
36a4f48491 Bug 1300883 - Use changeInfo.status instead of tab.status in browser_ext_tabs_events.js r=kmag
the tabs.onUpdated event can fire for many reasons.
I observed a test failure because a faviconUrl change triggered the
onUpdated event, which caused on-updated-dims to be sent too early.

MozReview-Commit-ID: 8YT8hSXnIoo

--HG--
extra : rebase_source : d2ce09a061c7e54f1c9bde78307831dd879dc7af
2016-09-06 13:22:11 -07:00
Bob Silverberg
a61ae5ffdb Bug 1272676 - Remove HistoryTime and use Date type instead, r=aswan
MozReview-Commit-ID: IqH2eLJwn5d

--HG--
extra : rebase_source : db17fffbe617e873277d708707c17250fd85c237
2016-09-06 12:56:56 -04:00
Luca Greco
9226a7b2f4 Bug 1252215 - [webext] LegacyExtensionsUtils JSM module and LegacyExtensionContext helper. r=aswan,kmag
- this new module contains helpers to be able to receive connections
  originated from a webextension context from a legacy extension context
  (implemented by the `LegacyExtensionContext` class exported from
  this new jsm module)

- two new test files (an xpcshell-test and a mochitest-browser) ensures that the LegacyExtensionContext can receive a Port
  object and exchange messages with a background page and a content script (the content script test
  is in a different test file because it doesn't currently work on android, because it needs
  the browser.tabs API and the TabManager internal helper)

MozReview-Commit-ID: DS1NTXk0fB6

--HG--
extra : rebase_source : 462d6a461167e317297d204e72c2f6773bc5c770
2016-08-24 18:31:36 +02:00
Kris Maglione
60459f8fe7 Bug 1265371: Refactor schema parsing to reduce cyclomatic complexity. r=bsilverberg
MozReview-Commit-ID: HzVrf4yG7hZ

--HG--
extra : rebase_source : 3e7892f8e9b6ce9d5362fd4b0ea877a5cfa235f9
2016-08-30 12:24:32 -07:00
Wes Kocher
309fb2cc5f Merge m-c to inbound, a=merge 2016-08-25 17:14:17 -07:00
Kris Maglione
eedfd4420e Bug 1293287: Close extension popups on extension shutdown. r=aswan
MozReview-Commit-ID: 5lpIk6XrdOM

--HG--
extra : rebase_source : ec403c06c2044fc3d65cc1e830e34670ea4e500d
2016-08-24 16:26:35 -07:00
Rob Wu
bef0b5a7ac Bug 1287010 - Use sandbox instead of JSM for global separation r=billm
MozReview-Commit-ID: GSqmh0xC2hW

--HG--
extra : rebase_source : 9b23172c205a1e4ef49f018eb2fbd5d9bd207adc
2016-08-23 16:19:33 -07:00
Rob Wu
be3652cd57 Bug 1287010 - Make environment of Context explicit. r=billm
- Add `envType` to BaseContext.
 - Pass an explicit envType to all `registerSchemaAPI` invocations.
 - The factories passed to `registerSchemaAPI` will be split up later, so
   that content scripts (`content_child`) and addon pages can share
   common implementations.
 - The factories that implement the addon API will also be split up,
   to separate code running in the main process (`addon_parent`) from
   code running in a child process (`addon_child`).
 - Remove the use of a hardcoded list of `namespaces` from ProxyContext.
   Now `envType` is used to specify whether an API should be activated.

MozReview-Commit-ID: Jiff8HIwG92

--HG--
extra : rebase_source : 946a3c0009a4e3223c2d10044b3099a94c845394
2016-08-16 15:51:50 -07:00
Rob Wu
459ac122eb Bug 1287010 - Use minimal global scope for ext-*.js scripts r=billm
Currently there is a tight coupling between registered APIs because they
share the same global scope, and the dependencies between the modules
that use these globals are not explicit. Consequently, it would be
possible for APIs to break when the registered APIs run in separate
processes, because then there are separate global scopes.
To mitigate this issue, this patch isolates the global namespaces of
API registrations in different environments, starting with the "chrome"
process. Content and addon processes will follow later.

A new JSM is introduced to avoid hidden dependencies between ext-*.js
and the script loader. ExtensionUtils.jsm would be a natural choice for
this shared utility method, but cannot be used because its local
`EventEmitter` implementation conflicts with the `EventEmitter` import
in ext-tabs.js.

So, this patch provides isolation of global variables declared through
`globals.XXX = ...`, but does not provide isolation for `Cu.import`-ed
logic. Ideally `Cu.import` should always use its second argument to
prevent inadvertent namespace pollution.

MozReview-Commit-ID: 1DTZaKOaeSE

--HG--
extra : rebase_source : 1376a1325fd9bf186e09e1dbe83467f3ad94516f
2016-08-17 20:28:19 -07:00
Kris Maglione
b8397e058b Bug 1293548: Split browser_ext_pageAction_context into two files. r=me
MozReview-Commit-ID: 1Zj36K0xkX4

--HG--
rename : browser/components/extensions/test/browser/browser_ext_pageAction_context.js => browser/components/extensions/test/browser/browser_ext_pageAction_title.js
rename : browser/components/extensions/test/browser/browser_ext_pageAction_context.js => browser/components/extensions/test/browser/head_pageAction.js
extra : rebase_source : 8fc9e53ed34169838635abe5c00c7f9562c4b06c
2016-08-23 18:18:27 -07:00
Kris Maglione
580f9d04d0 Bug 1271374: Cache-bust page URL. r=me
MozReview-Commit-ID: FAdxwoxRLMA

--HG--
extra : rebase_source : f876d4ad6bc7c6e17f8b2f377fdd2a421bed6c64
2016-08-23 18:00:58 -07:00
Shane Caraveo
ff811bd1a9 Bug 1289549 bump slop in jpg color test, r=maglione
MozReview-Commit-ID: GGNze65Lpkl
2016-08-23 15:24:07 -07:00
Hector Zhao
ff7bc87130 Bug 1295894 - Show localized strings for browserAction/pageAction title. r=kmag
MozReview-Commit-ID: 1SMd3cnUOH4

--HG--
extra : rebase_source : 4c746fe866222e9d05177ba9b1d9210e15e1eac2
2016-08-17 14:39:33 +08:00
Ryan VanderMeulen
833833b8c5 Merge inbound to m-c. a=merge 2016-08-22 09:40:41 -04:00
Rob Wu
53ae1a1256 Bug 1286712 - Validate runtime.sendMessage parameters r=billm
The main motive for this patch is to remove the use of the GlobalManager
global (which was used to see if an extension ID is valid, which was
specifically added in order to create thebrowser_ext_lastError.js test).
To preserve test coverage I implemented a full validation of the
runtime.sendMessage method.

Now the error for a non-existent extension is identical in both the
content script and background pages. Note that this also fixes a
minor privacy leak: Previously extensions could see whether another
extension is installed by sending a message to the specified extension
and using the different responses to see whether another extension is
installed.

MozReview-Commit-ID: 82R97Ei25Xr

--HG--
extra : rebase_source : 900a65e695afd6db83d5102f515dc29d46d001f1
2016-08-16 21:36:42 -07:00
Rob Wu
bacc209644 Bug 1295082 - Put Extension in BaseContext r=kmag
ExtensionContext in Extension.jsm has |extension| as an instance member,
so use it instead of passing |extension| to registerSchemaAPI's
callback.

And to make sure that this pattern also works in content processes, move
the |extension| member to BaseContext.

MozReview-Commit-ID: BgsGGCPQxJR

--HG--
extra : rebase_source : 7aa9fb7a53e057e8d3d8c477bd6821f8344c571a
2016-08-15 01:04:58 -07:00
Kris Maglione
2c634c4cb0 Bug 1296888: Add "webextensions" tag to WebExtension tests. r=aswan
MozReview-Commit-ID: 3QYXtpdznrP

--HG--
extra : rebase_source : 4aacd77cd2569b9ffc3916a5db3f41dd26bc7b70
2016-08-20 15:41:31 -07:00
Kris Maglione
dbc9f1910b Bug 1259093: Follow-up: Fix another test race. r=me
MozReview-Commit-ID: 3DsTcQli8Ga

--HG--
extra : rebase_source : e32b68893d6684211cd752b88967f7cc74600faa
2016-08-20 14:00:37 -07:00
Kris Maglione
71987e4163 Bug 1259093: Follow-up: Fix some test races. r=me
MozReview-Commit-ID: riVGF5q3xV
2016-08-19 17:20:22 -07:00
Kris Maglione
e9d8b48ce4 Bug 1259093: Part 3 - Preload browserAction popups to prevent flicker during opening. r=Gijs r=jaws r=bwinton f=mattw
MozReview-Commit-ID: EpAKLV8VPTn

--HG--
extra : rebase_source : 6ce6e622734214c7214fc2ddb7ddb2233fc0c8fd
2016-08-19 12:29:11 -07:00
Sebastian Hengst
2164cd95c8 Backed out changeset 0ce1cc39aa3d (bug 1295082) for timing out in test_ext_schemas_api_injection.js. r=backout 2016-08-18 16:47:09 +02:00
Rob Wu
dfc11d6f00 Bug 1295082 - Put Extension in BaseContext r=kmag
ExtensionContext in Extension.jsm has |extension| as an instance member,
so use it instead of passing |extension| to registerSchemaAPI's
callback.

And to make sure that this pattern also works in content processes, move
the |extension| member to BaseContext.

MozReview-Commit-ID: BgsGGCPQxJR

--HG--
extra : rebase_source : 9a85d95f0c147198938b86c57127f6e7403fd53c
2016-08-15 01:04:58 -07:00
Rob Wu
0077f92ec3 Bug 1295473 - Fix return type of {tabs,runtime}.sendMessage r=billm
The tabs.sendMessage and runtime.sendMessage implementations behave like
an async function: They take a callback parameter and return a promise.
So they should be handled by |callAsyncFunction|, not
|callFunctionNoReturn|.

This fixes the issue for background pages, but not for content scripts
because sendMessage is not implemented as a schema at the moment. This
will also be fixed once content script APIs are generated via Schemas.

MozReview-Commit-ID: 9p1hvOP0KSm

--HG--
extra : rebase_source : 7fc804e52184d59cc1dae2f299c644ed13d8a3c7
2016-08-15 23:53:24 -07:00
Bob Silverberg
068821e975 Bug 1295301 - history.onVisitRemoved argument is wrong after a call to history.deleteAll, r=aswan
MozReview-Commit-ID: 9b9PKAwcNDA

--HG--
extra : rebase_source : a0cbbe63b227139085b3641786e14e2a1df13bbe
2016-08-16 09:35:37 -04:00
Wes Kocher
48b8d407c8 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change

--HG--
extra : amend_source : f7e57101e1a25d3cf3536a256898ec2a21c54b38
2016-08-16 17:05:30 -07:00
Rob Wu
cbd2a581f6 Bug 1294920 - Fix test expectation on high-density screens in browser_ext_browserAction_pageAction_icon_permissions r=billm
MozReview-Commit-ID: 8iQXNEmsMJ5

--HG--
extra : rebase_source : a4f4cf9a1d48194a00aff060c199426f3872a1ce
2016-08-12 19:15:28 -07:00
Rob Wu
65acb9a681 Bug 1290157 - Always pass an array to tabs.executeScript on success r=kmag
MozReview-Commit-ID: Ctw8RUtfEZC

--HG--
extra : rebase_source : 7f76c1c99b5948463e5bfa0f7270fe50f6e95a88
2016-08-09 00:28:47 -07:00
Phil Ringnalda
602a0147b1 Backed out 3 changesets (bug 1246034) for Win e10s timeouts in browser_ext_commands_execute_browser_action.js
Backed out changeset f1f24546c26c (bug 1246034)
Backed out changeset 2c396099a21d (bug 1246034)
Backed out changeset 8cce25ece209 (bug 1246034)
2016-08-15 21:36:34 -07:00
Wes Kocher
162c6aa3c3 Bug 1246034 - ESLint followup a=me CLOSED TREE 2016-08-15 15:20:40 -07:00
Wes Kocher
2253eb9510 Merge m-c to inbound, a=merge 2016-08-15 14:53:49 -07:00
Wes Kocher
d602abb016 Merge inbound to central, a=merge 2016-08-15 14:20:38 -07:00
Kris Maglione
9462ff7027 Bug 1225215: Follow-up: ESLint fix. r=me
MozReview-Commit-ID: WP5idmrVE6
2016-08-14 20:05:07 -07:00
Sebastian Hengst
d11b74103a merge mozilla-central to autoland. r=merge a=merge 2016-08-13 13:54:41 +02:00
Sebastian Hengst
9ec085584d Backed out changeset 0c4f81bc2b52 (bug 1252224) for permafailing in browser_ext_browserAction_popup_resize.js on Linux after merge to mozilla-central. r=backout a=backout
MozReview-Commit-ID: KUARkl7QxB7
2016-08-13 13:27:15 +02:00
Wes Kocher
b44cee8b2a Merge fx-team to central, a=merge CLOSED TREE 2016-08-12 14:37:49 -07:00
Wes Kocher
4aec37ca6e Merge m-c to autoland, a=merge 2016-08-12 16:30:03 -07:00
Rob Wu
f50a92851a Bug 1293583 - add test that checks whether the main frame has frame ID 0 r=billm
Tests cannot be run in a new process, so when this test is run along
with other tests, the faulty behavior is not caught.
You can manually check whether the bug is still present by running the
test in isolation:

    mach mochitest browser/components/extensions/test/browser/browser_ext_webNavigation_frameId0.js

MozReview-Commit-ID: LwumSU7zh8R

--HG--
extra : rebase_source : c09fae54cd94af90d7d5391361b33532df6a8d72
2016-08-09 00:12:09 -07:00
Jared Wein
c1a786bb11 Bug 1252224 - Remove synchronous layout flushes and style invalidations during the opening of multiview panels. r=mconley
MozReview-Commit-ID: 9T4gAPwFrXp
* * *
[mq]: temp

MozReview-Commit-ID: Bj91OhNd8ed
* * *
[mq]: temp

MozReview-Commit-ID: J8h8InaMRP4
2016-08-04 17:30:54 -04:00
Carsten "Tomcat" Book
553a2da922 merge mozilla-inbound to mozilla-central a=merge 2016-08-10 15:54:26 +02:00
Kris Maglione
bc51ef01c8 Bug 1280128: [webext] Use transparent backgrounds and correct border radii for popup browsers. r=bwinton ui-r=maritz
MozReview-Commit-ID: 9jmuxdSLmBM

--HG--
extra : source : 9999b6b8022bfe815d79a4f309986d2859285e16
extra : histedit_source : 69afe0d2ecfa9d73e30fc6e363dbfa6849530dcf%2C3a9aaafbb3288f43d7f2b17b0e93597d9a305032
2016-08-09 12:08:04 -07:00
Wes Kocher
8ca795c1c8 Backed out changeset 9999b6b8022b (bug 1280128) for ESLint failures 2016-08-09 11:28:12 -07:00
Kris Maglione
818537d543 Bug 1280128: [webext] Use transparent backgrounds and correct border radii for popup browsers. r=bwinton ui-r=maritz
MozReview-Commit-ID: 9jmuxdSLmBM

--HG--
extra : rebase_source : 377e47f39b1c52e36813f79e9d650c5f6bfab970
extra : histedit_source : c0d5ec2e5143ac4013e203dd75980dfcb43e7c9e
2016-08-09 10:54:53 -07:00
Andrew Swan
b904b2d437 Bug 1286908 Remove id allocation from SpecialPowers loadExtension() r=kmag
Prior to this change, SpecialPowers used the extension id to identiy
extension instances in inter-process messaging.  This required that
an id be allocated from the content process side when loadExtension()
was called, but that made it impossible to test code that exercises the
code path in the AddonManager that allocates ids for extensions that do
not include an id in the manifest (it also made the loadExtension() api
clunky).

With this change, SpecialPowers allocates an internal identifier for
messaging, but this identifier is separate from extension ids.
Confusingly, we still store the actual extension id in an id property
on the object returned by loadExtension(), but there are enough tests
that reference this that it would be unnecessarily disruptive to get
rid of it so it stays for now...

MozReview-Commit-ID: G6xk1mBJJL8

--HG--
extra : rebase_source : a0891e5ba308972c35813f55274badf9edde62f7
extra : source : e8818ef3c28489e196d1db92cabf224861b693c9
2016-08-02 16:04:37 -07:00
Kris Maglione
617494218f Bug 1290117: Call sendMessage response callback when there are no replies. r=robwu
MozReview-Commit-ID: 1BYD1CgZmvD

--HG--
extra : rebase_source : dc6297a85062c6713fa808f935ec7051d8668dc1
extra : amend_source : e398638f70f95835c7a8f8e94ea6945fa763ccb6
2016-08-06 14:21:10 -07:00
Kris Maglione
93814e012e Bug 1293036: Prevent BasePopup._resizeBrowser from being called recursive from MozScrolledAreaChanged events. r=robwu
This doesn't include tests for this behavior, because I'm not sure there's a
good way to test it reliably.

MozReview-Commit-ID: CM5rj1f9YiG

--HG--
extra : rebase_source : 11608a2d0b78802021a4f8aec39f0caa2f75af2c
2016-08-07 12:44:15 -07:00
Kris Maglione
947c1cf7ba Bug 1289527: Hide browserAction and pageAction namespaces when relevant manifest entries are missing. r=aswan
MozReview-Commit-ID: 2gx0pLkHaVJ

--HG--
extra : rebase_source : 94ab5fbc632aedee4dc8261145bc8832ae31f53d
2016-08-06 14:43:58 -07:00
Matthew Wein
019b4824e4 Bug 1246034 - Part 2: [webext] Add support for _execute_browser_action. r=kmag
MozReview-Commit-ID: EIbPidn07qZ

--HG--
extra : rebase_source : 5ed49fb3b70fa07b6ec5430381c73d702d156898
2016-07-08 15:02:49 -07:00
Kris Maglione
1d020acead Bug 1246034 - Part 1: [webext] Add a helper function to trigger a browserAction. r=jaws
MozReview-Commit-ID: JUW6oUpWiN4

--HG--
extra : rebase_source : 91473d3b5278df43694709fe732b176696f25151
2016-08-05 18:35:39 -07:00
fiveNinePlusR
f69df51c78 Bug 1289213 - Part 2: Fall back to the tab.label when there is no browser.contentTitle available. r=kmag
When a tab is unloaded, the session browser.contentTitle is unavailable so this patch allows the title to be exposed when the tab is unloaded.
2016-08-11 19:44:00 -04:00
fiveNinePlusR
479a4f4ae3 Bug 1291830 - Do not return tabs that are in the process of closing from a chrome.tabs.query call. r=kmag
--HG--
extra : rebase_source : 24e51c2a777bf22b4314f7001018aa8ae756ea53
2016-08-09 16:43:33 -07:00
Kris Maglione
d63b08badc Bug 1293099: Fill panel arrow and arrow content with browser body's background color. r=bwinton ui-r=maritz
MozReview-Commit-ID: 3xf31UgUy2A

--HG--
extra : rebase_source : 4f1e4149587da7a2c0aefdde7c8880ea21330393
2016-08-08 14:06:19 -07:00
Kris Maglione
8e7896a8c6 Bug 1277181: Split up browser_ext_browserAction_page_icon test. r=trivial
MozReview-Commit-ID: 2A0TZzTrREu

--HG--
rename : browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon.js => browser/components/extensions/test/browser/browser_ext_browserAction_pageAction_icon_permissions.js
extra : rebase_source : fc4be9e1db1909aa57dc96e48ab840187ab7b9fb
2016-08-10 12:19:45 -07:00
Kris Maglione
4f1b1dda0b Bug 1225215: [webext] Raise the expected errors when given invalid tab IDs. r=aswan
MozReview-Commit-ID: E5G0GmVhzLh

--HG--
extra : rebase_source : 5c6624b9d2d06109a1b047ad48dcac7e9405ee59
extra : amend_source : fb23020f7d2772f56fabc61f2e32f7d9c4c2f52a
2016-02-26 17:56:30 -08:00
Kris Maglione
a4884b4563 Bug 1288085: Remove spurious "windows" permission. r=me
MozReview-Commit-ID: Cce7PLJJGPY
2016-08-08 11:12:59 -07:00
Andrew Swan
0a3f040d19 Bug 1292605 Import PlacesUtils.jsm in ext-bookmarks r=kmag
MozReview-Commit-ID: 7h3SR5r9TWN

--HG--
extra : rebase_source : d922d3f6ccca83a3bef66aa5b139d01d3e1ed9c7
2016-08-04 13:47:36 -07:00
Carsten "Tomcat" Book
cf611bec79 merge mozilla-inboudn to mozilla-central a=merge 2016-08-05 12:01:14 +02:00
Kris Maglione
0dba25a0da Bug 1288979: Always convert badge background color to a ColorTuple. r=aswan
MozReview-Commit-ID: CWmaa9wwQLD

--HG--
extra : rebase_source : aa8eaa19bad2b825c818abd29172f75fa84368dd
2016-08-04 14:50:52 -07:00
Kris Maglione
9e29edc5a4 Bug 1268184: Split browser_ext_runtime_openOptionsPage into two files. r=trivial
MozReview-Commit-ID: I9UbxGmOjMg

--HG--
rename : browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage.js => browser/components/extensions/test/browser/browser_ext_runtime_openOptionsPage_uninstall.js
extra : rebase_source : 2347ab5594b2a9bb60c6ec0a041bd7b7822e8f21
2016-08-04 13:27:31 -07:00
Andrew Swan
965b6726d5 Bug 1292093 Import PlacesUtils.jsm in ext-history r=kmag
MozReview-Commit-ID: ICxJbWfVYdb

--HG--
extra : rebase_source : d8677b284f8dd95a40eb7e5253fd834194b0a1b7
2016-08-04 11:26:55 -07:00
Carsten "Tomcat" Book
d036bdb09c merge fx-team to mozilla-central a=merge 2016-08-04 15:54:27 +02:00
Jared Wein
871ed4e3ba Bug 1291855 - Enable the no-else-return rule for eslint. r=Felipe,kmag,mossop
MozReview-Commit-ID: DYOmE6xwMJh

--HG--
extra : rebase_source : bc81b68ea5599fd1815dc34dac7106eef7044483
2016-08-03 18:54:59 -04:00
Matthew Wein
525255f4a1 Bug 1287159 - Grant activeTab permission to the current tab when onCommand fires. r=kmag
MozReview-Commit-ID: ETwqDOBHCRS

--HG--
extra : rebase_source : 59c73f10fca5c5e9e9fd806d556a82433c609e9c
2016-07-25 14:42:23 -07:00
Carsten "Tomcat" Book
cc6b6404c0 Merge mozilla-central to fx-team 2016-08-02 17:13:42 +02:00
Rob Wu
ed596b32d9 Bug 1275126 - Implement targetUrlPattern for link contexts. r=kmag
MozReview-Commit-ID: EzqX8YbeQqI

--HG--
extra : transplant_source : %11%87%12%B3%C5a%C5%93c%05%16%04%D9g%D9%CD%B6%8AH%7B
2016-07-27 18:23:24 -07:00
Robert Helmer
e7f6d9d4ec Bug 1290617 - allow non-temp mock webextensions r=kmag
MozReview-Commit-ID: JeEeMkrQ4te

--HG--
extra : rebase_source : 98d95907134c68a347067de1cce601656f27b4a3
2016-07-29 16:14:19 -07:00
Matthew Wein
eaa94c242e Bug 1272198 - Add tests for accepted modifiers. r=kmag
MozReview-Commit-ID: KTLk7sMcsmt

--HG--
extra : transplant_source : %87%A0%24%7B%96GT%06w%83%BE%FA%C3%B0f%25T%D7%F05
2016-07-25 10:36:07 -07:00
Carsten "Tomcat" Book
8c47612fee merge mozilla-inbound to mozilla-central a=merge 2016-07-29 11:56:43 +02:00
Kris Maglione
97c23c220b Bug 1287649: Don't hide pageAction when only hash fragment changes. r=aswan
MozReview-Commit-ID: EvufryoPgcs

--HG--
extra : rebase_source : c0730dd43ab2400145e30759ad721e9701287d01
2016-07-26 17:28:29 -07:00
Kris Maglione
cd2ef08297 Bug 1274871: Return a more useful error message for executeScript without matching window. r=aswan
MozReview-Commit-ID: 3AhuxY6gQPL

--HG--
extra : rebase_source : 35323eefade3ebd254cfe5bcf0f21ce0cc26ffdb
extra : amend_source : 93e150dce3dd0f467d38b630cd517452c12683a8
2016-07-26 17:55:58 -07:00
Carsten "Tomcat" Book
1e0260eddf Merge mozilla-central to fx-team 2016-07-28 17:44:58 +02:00
Kris Maglione
1ecad9867e Bug 1282189: Improve resizing behavior for browser action views in menu panel. r=Gijs
MozReview-Commit-ID: 3SPQ1IimAY8

--HG--
extra : rebase_source : 9c7ccf3c293ed805a5a5a01c2a045a96dab600ab
2016-07-27 12:46:43 -07:00
Sebastian Hengst
b18a29d071 Backed out changeset 8da1ed0adf15 (bug 1288885) for failure and crashes in test_ext_background_window_properties.js on Android in xpcshell and sets tests. r=backout 2016-07-28 10:06:35 +02:00
Sebastian Hengst
8cf6309948 Backed out changeset 8c67ff2971ec (bug 1288885)
--HG--
rename : browser/components/extensions/test/xpcshell/test_ext_bookmarks.js => toolkit/components/extensions/test/mochitest/test_ext_bookmarks.html
2016-07-28 10:06:34 +02:00
Sebastian Hengst
37588ab145 Backed out changeset eeb6bc8a42e6 (bug 1288885)
--HG--
rename : browser/components/extensions/test/xpcshell/test_ext_history.js => browser/components/extensions/test/browser/browser_ext_history.js
2016-07-28 10:06:33 +02:00
Kris Maglione
817d21897d Bug 1288885: Migrate history mochitests to xpcshell. r=aswan
MozReview-Commit-ID: tzQdEJx6TN

--HG--
rename : browser/components/extensions/test/browser/browser_ext_history.js => browser/components/extensions/test/xpcshell/test_ext_history.js
extra : rebase_source : 33a5b87939477e3ec9ffbd78917a6b5ea5495f82
extra : histedit_source : a9e355199d9431f74856c77d1e819ac4a130e02a
2016-07-22 18:57:38 -07:00
Kris Maglione
ac8debc6f4 Bug 1288885: Migrate bookmarks mochitests to xpcshell. r=aswan
MozReview-Commit-ID: 9PFJcqXXxhU

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_bookmarks.html => browser/components/extensions/test/xpcshell/test_ext_bookmarks.js
extra : rebase_source : 2c9d2611b967733ff685cb9ce7886ae326eae6a3
extra : histedit_source : 880c65df5bbd9721e1c7dcf963396e3d73b49c5d
2016-07-22 17:29:52 -07:00
Kris Maglione
ff96d80145 Bug 1288885: Support testing WebExtensions from xpcshell tests. r=aswan
Most of the test helper code is derived from the SpecialPowers/ExtensionTestUtils
code that does the same. Eventually, the two implementations should probably
be unified, but I don't think it's worth the trouble for now.

MozReview-Commit-ID: 7Yy9jWkGsMM

--HG--
extra : rebase_source : 92cc01e1cde97fa79250d51bad5a56181fbe715c
2016-07-24 16:09:26 -07:00
Kris Maglione
bd9082edf7 Bug 1288885: Migrate history mochitests to xpcshell. r=aswan
MozReview-Commit-ID: tzQdEJx6TN

--HG--
rename : browser/components/extensions/test/browser/browser_ext_history.js => browser/components/extensions/test/xpcshell/test_ext_history.js
extra : source : eeb6bc8a42e69e989bb70cc6daf56296936f60b0
extra : histedit_source : cd90f8cfa3040588aa2847d4192bf3ba47edc33b
2016-07-22 18:57:38 -07:00
Kris Maglione
f6052f7eae Bug 1288885: Migrate bookmarks mochitests to xpcshell. r=aswan
MozReview-Commit-ID: 9PFJcqXXxhU

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_bookmarks.html => browser/components/extensions/test/xpcshell/test_ext_bookmarks.js
extra : source : 8c67ff2971ecc155ce26dc5d9905c5de7e4bfd4b
2016-07-22 17:29:52 -07:00
Kris Maglione
5595379222 Bug 1288885: Support testing WebExtensions from xpcshell tests. r=aswan
Most of the test helper code is derived from the SpecialPowers/ExtensionTestUtils
code that does the same. Eventually, the two implementations should probably
be unified, but I don't think it's worth the trouble for now.

MozReview-Commit-ID: 7Yy9jWkGsMM

--HG--
extra : source : 8da1ed0adf15e8244e57f22c581bbee072a118b9
2016-07-24 16:09:26 -07:00
Sebastian Hengst
9cf345f4bd Bug 1275116 - Fix {document|target}UrlPatterns by passing in the correct arguments to SingleMatchPattern.match: add spaces to fix eslint errors. r=eslint-fix 2016-07-26 13:23:54 +02:00
Matthew Wein
7ea866f07e Bug 1275116 - Fix {document|target}UrlPatterns by passing in the correct arguments to SingleMatchPattern.match. r=kmag
MozReview-Commit-ID: LLNu7jNfUZq


G: changed browser/components/extensions/test/browser/head.js

--HG--
extra : transplant_source : %88%06%94%11%B5l%3B%9F%26%9CjGL%A3%F3%11%7F%40%D4Q
2016-07-14 14:41:03 -07:00
Matthew Wein
73fad24130 Bug 1272133 - Fix runtime error thrown when no shortcut is found for the target platform. r=kmag
MozReview-Commit-ID: CzR64GL5mxn

--HG--
extra : rebase_source : 7ec1ea379a89383f21e5292345bbcd75e807b733
2016-07-25 11:18:12 -07:00
Matthew Wein
9db4b394c8 Bug 1285063 - Part 2: Switch to using the Category Manager to register scripts/schemas in order to load them in time for Fennec. r=kmag
MozReview-Commit-ID: 2U8cTYeH8kg

--HG--
extra : rebase_source : 32ffedca29caeb1154d9d1712795f18fc74dbe2a
2016-07-22 12:44:40 -07:00
Kris Maglione
8d58c7c636 Bug 1285493: Add-on Manager should not be closed when an add-on with options_ui is disabled. r=billm
MozReview-Commit-ID: 8oRK8uPphDf

--HG--
extra : rebase_source : c6dcc7da1823711e3223ba39d038e1ccc949f6fd
2016-07-24 15:05:39 -07:00
Kris Maglione
fba8996a05 Bug 1274775 - Make sure background pages are created with a PresShell. r=billm
MozReview-Commit-ID: GLWg5aK47g5

--HG--
extra : rebase_source : 472365762aca534e826173989c48f5058960a987
2016-07-24 15:09:07 -07:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Carsten "Tomcat" Book
ac018ea603 merge fx-team to mozilla-central a=merge 2016-07-21 16:23:11 +02:00
Bob Silverberg
55401c8180 Bug 1280357 - Update browser.history.onVisited to not call PlacesUtils.promisePlaceInfo, r=kmag
MozReview-Commit-ID: 3j4JdWI6APu

--HG--
extra : transplant_source : %B0ir%3B%FF%08%1A%08%D8%DDa%C1%90%AD%03%97M%DA%E3%FC
2016-07-19 17:01:08 -04:00
Carsten "Tomcat" Book
cbe2855b89 Backed out changeset 5f60270bf1bb (bug 1272198) for breaking mochitests 2016-07-20 11:32:24 +02:00
Iris Hsiao
b81eed1658 Backed out changeset d950882eb6ce (bug 1285063) 2016-07-20 17:01:05 +08:00
Matthew Wein
feefa99c13 Bug 1285063 - Part 2 - Switch to using the Category Manager to register scripts/schemas in order to load them in time for Fennec. r=kmag
MozReview-Commit-ID: AviHoenUfwY

--HG--
extra : transplant_source : %F5%7DR%03%C2S%81%27%D1%0C%F9%89%1A%A8%7C%25%EB%24v%B4
2016-07-18 15:05:52 -07:00
Rob Wu
f8554fe4b9 Bug 1234677 - Introduce _generated_background_page.html r=billm
- Fixes bugzil.la/1234677
- Fixes bugzil.la/1286057
- Fixes bug: the URL failed to load if a query string or reference
  fragment was present.

MozReview-Commit-ID: 4oMwI3IS7OX

--HG--
extra : rebase_source : 621878e4f62febdc34899192e254f8ec315b789e
2016-07-12 13:55:14 -07:00
Matthew Wein
e27af22316 Bug 1272198 - Add tests for accepted modifiers. r=kmag
MozReview-Commit-ID: CPw25rNrvYn

--HG--
extra : transplant_source : G%13%F7R%00%15%9C%FFez%B5X%7D%CB%E1n%11%FB%C9%00
2016-05-26 19:26:02 -07:00
Pushpankar
c6670d980f Bug 1286854 - Replace ownerDocument.defaultView with ownerGlobal in browser/. r=dao
--HG--
extra : rebase_source : 72d50e73baf595840a2aade57ae782e4c40d4c27
2016-07-16 10:20:04 +02:00
Kris Maglione
63c5aef93a Bug 1272222: Use larger icons for browser actions in the menu panel. r=Gijs
MozReview-Commit-ID: 26lmlcrngPk

--HG--
extra : rebase_source : b9d6bfb7669d3cb826ccaa6728e153ad3e3b2b8b
2016-07-13 15:16:00 -07:00
Kris Maglione
005248648e Bug 1284942: Don't fire message listeners for windows hidden in bfcache. r=aswan
MozReview-Commit-ID: KSqLt7Qqdkf

--HG--
extra : rebase_source : 0b1322a7a4b6db5992bbe1cfc73975e2ed64035e
2016-07-06 17:14:02 -07:00
Matthew Wein
5aa03549f3 Bug 1246044 - Part 4 - Add unit tests for context menu icons. r=kmag
MozReview-Commit-ID: 6mVKldnmB48

--HG--
extra : rebase_source : 32790a2ddac08cfb6be1718ee60d0642a2b9ad3a
2016-07-05 17:16:03 -07:00
Matthew Wein
ad9292df1f Bug 1246044 - Part 3 - Add unit tests for uninstall bug. r=kmag
MozReview-Commit-ID: JA10PnhFObL

--HG--
extra : rebase_source : 45880d9ba40671d259d086b853e5c4b1efd29d07
2016-07-05 16:56:52 -07:00
Matthew Wein
930e6de010 Bug 1246044 - Part 2 - Fix issue where context menu items show up after extension is uninstalled. r=kmag
MozReview-Commit-ID: 9eGwSkY8PWo

--HG--
extra : rebase_source : 378af343cc7eb5363b90532ab423fe11e0d0a535
2016-07-05 17:11:21 -07:00
Matthew Wein
45b87155ca Bug 1246044 - Part 1 - Split out the testing for radio groups and checkboxes into separate files. r=kmag
MozReview-Commit-ID: KIwj3tZzyuz

--HG--
extra : rebase_source : 3993c18e6b5e41004dd6dc5c04f93f4d38698811
2016-07-05 17:02:24 -07:00
Matthew Wein
8b6e105036 Bug 1284265 - Fix regression caused by bug 1270742 which moved IconDetails into ExtensionUtils.jsm r=kmag
Postmortem: The context menu script, ext-contextMenus.js, uses IconDetails to show the extension icon next to the top level menu item. Originally, IconDetails lived in ext-utils.js because it was only used by Desktop.  However, in order to make it usable by Fennec for the PageActions API, it was moved into the shared ExtensionUtils.jsm.  Since none of the unit tests for ext-contextMenus.js covered the use of IconDetails, when it was moved it broke this part of the code. Switching it to use the version in ExtensionUtils.jsm fixes the issue. Lesson learned: Don't leave anything untested.

MozReview-Commit-ID: I6bFQnKvoMh

--HG--
extra : transplant_source : %140%8As%BC%86%17%0A%FE%85%F2%97P%19i%D8%84%AD%87%ED
2016-07-05 16:17:52 -07:00
Matthew Wein
569e667c08 Bug 1270742 - Add support for default_icon in chrome.pageAction r=kmag
MozReview-Commit-ID: D9uR0JUXJwx

--HG--
extra : transplant_source : %FC%FBu%0Cboh%DFv%BB%8D%AC%20%ED%A5%E1%3E%DE%126
2016-05-23 15:59:33 -07:00
Martin Giger
bc7ec4df3e Bug 1282171 - Use setTimeout from parent window to throttle resizes. r=kmag
MozReview-Commit-ID: FsEjqfJKOUC
2016-06-25 00:06:56 +00:00
Sebastian Hengst
2e51abafdb Backed out changeset 1008f5b88e6b (bug 1270742) for failing browser_ext_browserAction_context.js. r=backout 2016-06-24 13:00:31 +02:00
Matthew Wein
48b0f752e6 Bug 1270742 - Add support for default_icon in chrome.pageAction. r=kmag
MozReview-Commit-ID: D9uR0JUXJwx

--HG--
extra : transplant_source : %D2%EEUA%D1%C7Yp%88E%851%200n%90%D7%8F%0C%F4
2016-05-23 15:59:33 -07:00
Martin Giger
2072a2d80e Bug 1215025 - Resize popup when content size changes. r=kmag
--HG--
extra : rebase_source : f70828223c7853f68d080f0beea6f8fbd62fae72
2016-06-22 02:55:00 -04:00
Martin Giger
1478f20494 Bug 1279562 - Accept negative 'left' and 'top' values in chrome.windows.update. r=kmag
--HG--
extra : rebase_source : 25a49cfc156fafcb490dcd997d26f20c550fa4ec
2016-06-17 02:22:00 -04:00
Carsten "Tomcat" Book
a967cdb984 merge mozilla-inbound to mozilla-central a=merge 2016-06-16 08:06:50 +01:00
Bob Silverberg
53b6985242 Bug 1265845 - Implement browser.history.onVisited, r=aswan
MozReview-Commit-ID: 6jXEUA1Cll9

--HG--
extra : transplant_source : %FC%8Frg%7C2%25%A6%A0%FB%27%AB%DE%04Q%3E%83%BE%A6%EE
2016-06-08 12:42:13 -04:00
Kris Maglione
a1dac7caad Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
MozReview-Commit-ID: 8m7wJrAbFwS

--HG--
extra : source : a00cf073f5c00380d4e42b13bc0cd3146b708845
extra : amend_source : d74ef90e88acbe62e33af3b5b9cf870d5c0a9d3e
2016-06-09 17:44:47 -07:00
Sebastian Hengst
f8035f62a8 Backed out changeset a00cf073f5c0 (bug 1279392) for failing mochitest test_ext_contentscript_create_iframe.html at least on Linux x64 opt. r=backout 2016-06-14 13:37:52 +02:00
Kris Maglione
b465305345 Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
MozReview-Commit-ID: 8m7wJrAbFwS

--HG--
extra : rebase_source : cba877c0ef400917b0b7e5913895e64ebefb34b9
extra : amend_source : 6e943015e3e00854c431cbd653994a6734e66ce4
2016-06-09 17:44:47 -07:00
Kris Maglione
c80375c0f9 Bug 1272219: Use 16px icons for BrowserAction buttons, support 18px as a legacy fallback. r=bwinton ui-r=bwinton
MozReview-Commit-ID: 2c0UWR6hITQ

--HG--
extra : rebase_source : 5dd417ba99bb85a50dd1ae87cf2fb5603da07ce8
2016-06-05 21:05:36 -07:00
Carsten "Tomcat" Book
3f4b349341 Backed out changeset 8ea9433ab777 (bug 1265845) for test failures in browser_ext_history.js 2016-06-15 06:18:48 +01:00
Carsten "Tomcat" Book
a5fd82744f Backed out changeset 5e6356e7a99e (bug 1270742) for eslint test failures 2016-06-15 01:29:04 +01:00
Matthew Wein
e774e0c1a6 Bug 1270742 - Add support for default_icon in chrome.pageAction. r=kmag
MozReview-Commit-ID: D9uR0JUXJwx

--HG--
extra : transplant_source : 5%125%05%88%F8%85%AB%D11%7C%83D%02d%EC%1A1%A6%92
2016-05-23 15:59:33 -07:00
Bob Silverberg
60dca09bae Bug 1265845 - Implement browser.history.onVisited, r=aswan
MozReview-Commit-ID: 6jXEUA1Cll9

--HG--
extra : transplant_source : %09gs%97%8A%FD%EA%B6%BE_k%0C%DE%F1%AA%876%60%10%20
2016-06-08 12:42:13 -04:00