Commit graph

63 commits

Author SHA1 Message Date
Matthew Wein
f64c3ca257 Bug 1245355 - Add a unit test for tabs.getAllInWindow. r=kmag
MozReview-Commit-ID: 5wVRCLdCuq9

--HG--
extra : transplant_source : %B0%89%CB%F5%9C%C8%A7%94%BAJ%1Cz%BE%1AU%99%BE%A4%D0%AE
2016-03-17 09:35:58 +01:00
tofumatt
0f151b21a6 Bug 1237822 - Throw error if tabs.query is used without "tabs" permission with url param. r=kmag
MozReview-Commit-ID: 4WpawIYcwnl

--HG--
extra : transplant_source : %1FD%00%5D%CEJ%E6%10Wj%C3%92%87%FFN%A4Vo%0C%E7
2016-03-15 15:39:27 +01:00
Sebastian Hengst
1b915e4b70 Backed out changeset 562dbcad5a6e (bug 1245355) for leaking windows and a docshell in its new test browser_ext_tabs_getAllInWindow.js. r=backout 2016-03-16 19:19:41 +01:00
Matthew Wein
eb7409d4cd Bug 1245355 - Add a unit test for tabs.getAllInWindow r=kmag
MozReview-Commit-ID: 5wVRCLdCuq9

--HG--
extra : rebase_source : 3d937ea9c1806499d6ae0701014728700687f07f
2016-03-15 12:01:40 +01:00
Kris Maglione
876d0a0806 Bug 1220154, 1249830: Handle sendMessage replies with 0 and >1 listeners correctly. r=billm
MozReview-Commit-ID: 7lE7RaJcl7n

--HG--
extra : rebase_source : 424987c745840d56647600b8d9e1bf941afb1d95
2016-03-04 15:40:56 -08:00
Kris Maglione
ebd03d7771 Bug 1253132: [webext] Support window states in browser.windows APIs. r=billm
MozReview-Commit-ID: LIw6swRAB3h

--HG--
extra : rebase_source : ab313986de1b12e9a38d341da16c8338cc3ea5e5
2016-03-05 09:59:35 -08:00
Kris Maglione
66f9b57852 Bug 1248499: [webext] Implement tabs.detectLanguage. r=billm
MozReview-Commit-ID: F4GpSesj2ho

--HG--
extra : rebase_source : e9ffab3396b4f813c60e366c371ea54baccc160a
2016-02-26 13:20:28 -08:00
Andy McKay
8149342574 Bug 1248460 - pin during SSTabRestoring. r=kmag
MozReview-Commit-ID: A88UnreihK7

--HG--
extra : transplant_source : %93%C6Y%ADh%E1q%E7%840%93%F90%86w%EA%C6l%02O
2016-02-29 13:45:36 -08:00
Matthew Wein
b1ab0e41fd Bug 1220124 - Add support for chrome.tabs.onhighlight. r=kmag
MozReview-Commit-ID: BB6vJl8qV4l

--HG--
extra : rebase_source : fcbe0bd0aa21e47c2524e57434dded91592efe9d
extra : source : 90494d4d76ab4587805ad27cc663fa7407b04450
2016-02-07 18:35:22 -08:00
Kris Maglione
2eda01945e Bug 1213993: [webext] Support frameId/allFrames/runAt in browser.tabs.executeScript and insertCSS. r=billm
MozReview-Commit-ID: FgV9vyHVjj8

--HG--
extra : rebase_source : 04582c711ef40f3afc7eeaa9e4dec2e31b63e4e0
2016-02-08 17:40:02 -08:00
Luca Greco
29d1c88828 Bug 1227462 - tabs.create and tabs.update should check URLs using checkLoadURL. r=kmag
MozReview-Commit-ID: EKFRpoSuXrF

--HG--
extra : rebase_source : e8016dae12cdf5f4b3a9c345ce0a45f51bba519f
2016-02-25 18:13:59 +01:00
Kris Maglione
5201cc7869 Bug 1238313: Part 1 - Implement tabs.onMoved event. r=billm
MozReview-Commit-ID: F2GoU1fzj4s

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

--HG--
extra : source : 5ec466af51e171623333ad644a94034b55b73b08
2016-02-17 11:52:33 -08:00
Wes Kocher
099649f263 Backed out changeset 5ec466af51e1 (bug 1234086) for failures in browser_ext_tabs_update.js
--HG--
extra : commitid : F0V50PvojGj
2016-02-17 14:31:04 -08:00
Wes Kocher
5eb7c4d849 Backed out changeset c893cd374dcd (bug 1238313)
--HG--
extra : commitid : JH50wJBbF9C
2016-02-17 14:30:56 -08:00
Kris Maglione
f53c090725 Bug 1238313: Part 1 - Implement tabs.onMoved event. r=billm
MozReview-Commit-ID: F2GoU1fzj4s

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

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

--HG--
extra : transplant_source : %F3%1C%C6%13Hn%DF%051%2B%7D%AB%D1%AE%F17Y%05oF
2016-02-12 15:38:55 -08:00
Kris Maglione
ba2e5f60f4 Bug 1248855 - [webext] Add "object-curly-spacing" ESLint rule and auto-fix errors. r=billm
MozReview-Commit-ID: BAZ2rRl7eSM
2016-02-16 20:10:00 -08:00
Kris Maglione
8414d3b8d4 Bug 1235571: Add an adoptTab method to <tabbrowser> and remove duplicated code. r=billm
--HG--
extra : commitid : DthwEkfzjHB
extra : rebase_source : d5bcc106be49e118e60418a280dbaea2a6520899
2016-02-10 15:27:08 -08:00
Kris Maglione
109944fbfe Bug 1234020: Part 2j - [webext] Return promises from the tabs API. r=rpl
--HG--
extra : commitid : EK8NBTwpaM6
extra : rebase_source : ed2d93f292f53a5314b4e05b2668a05291f70b7b
2016-02-05 18:50:58 -08:00
Matthew Wein
4800c1a9aa Bug 1242588 fix how tab.create handles missing URLs. r=kmag
--HG--
extra : commitid : 9p3zXXVEsj5
extra : rebase_source : 1a02c985f3909c7ab42f87f18ffe6c9215e8c4f0
extra : amend_source : 017a1635a65747bb6b713ee341b7022e06966680
2016-01-30 17:09:49 -08:00
Kris Maglione
c5b5341056 Bug 1231819: [webext] Implement the captureVisibleTab API. r=billm
--HG--
extra : commitid : 1KrAIBW3HgQ
extra : rebase_source : c11b44c28a967d65e66eca9a5a8bb73e36f17ab3
extra : amend_source : af19f6d511e3fa1c8f143e08a7a99b60dc5c044c
2016-01-25 17:48:54 -08:00
Kris Maglione
751cbcb894 Bug 1234020: Part 1 - [webext] Add initial binding-level promise<->callback support. r=billm
--HG--
extra : commitid : LmqVSqXGkKa
extra : rebase_source : 1e28a81fd74c920822bb5eed0aff8841bd628271
extra : histedit_source : 9acf96c0593f1271a753507c6630765394b88f3c%2Cf19e421dfed99dd65482ba935ac50fffa1208a6d
2016-02-01 19:20:13 -08:00
Matthew Wein
ca74460c52 Bug 1234308 - Fix tabs.onCreated callback to receive bare tabs object (bug 1234308); r=kmag
--HG--
extra : rebase_source : 849a3e2ddff63876202023f6590d7764a7cfe8eb
2016-01-27 16:33:32 -08:00
Kris Maglione
e391b5ccaf Bug 1190680: Part 2 - [webext] Add initial support for lastError callbacks. r=billm
--HG--
extra : commitid : KyImBk4vvCu
extra : rebase_source : f05432e862480ca7e4c81c9fd663822bba63c7af
extra : histedit_source : 6cec5cd0c0c4986f0b22e4338b2e6da3cb851ef7
2016-01-29 18:38:08 -08:00
Kris Maglione
4b5513634b Bug 1238311: Part 3 - [webext] Add audible and muted support to browser.tabs API. r=gabor
--HG--
extra : commitid : 36za12ltvib
extra : rebase_source : 321506a4d0ab68ed6db18536a513584c50231c78
extra : histedit_source : 2787bfcb88593f5e943a77f64a51946e7d011db1
2016-01-26 17:06:41 -08:00
Kris Maglione
840051ba5c Bug 1210583: Part 2 - [webext] Support callbacks in tabs.executeScript/tabs.insertCSS. r=billm
--HG--
extra : commitid : K6slT54Lfwg
extra : rebase_source : d2e519e7932169e59c655ce0013ca7a488cef2d6
extra : histedit_source : b7b8a66f2fd4a0943a8c8c8ca20f8384b999d98e
2016-01-25 20:25:11 -08:00
Kris Maglione
3d50a9eb7e Bug 1210583: Part 1 - [webext] Add support for cross-process messaging with async responses. r=billm
--HG--
extra : commitid : 5deKex3Nhp
extra : rebase_source : 9c31f41230bb46127dead36ccad4449cd35ce1b0
extra : histedit_source : 2646ebbe46d96f8e50db75247a7672e81d57a74c
2016-01-27 12:57:21 -08:00
Kris Maglione
05bccfe9b4 Bug 1233326: [webext] Fix default value handling for tabs.create, and add missing tests. r=billm
--HG--
extra : commitid : 1eeoFUeZ0JG
extra : rebase_source : aa504855b67e2e20411909b5004d658d8c23dc41
2016-01-05 19:06:44 -08:00
Kris Maglione
6b540dc946 Bug 1214007: Follow-up: Fix ESLint errors. r=trivial
--HG--
extra : commitid : 4XGbiDojWXa
extra : rebase_source : 4f7d66c5f8c7c6c9ef0b27c1145a7106e93782e5
2016-01-05 15:10:39 -08:00
Andy McKay
5847404799 Bug 1214007 - Implement chrome.tabs.move. r=billm 2015-12-23 17:04:23 -08:00
Kris Maglione
b7869a821a Bug 1229874: Support defineLazyServiceGetter in components-import eslint helper. r=miker
--HG--
extra : commitid : JasCECgeDvZ
extra : rebase_source : 4f2bc306a845e8b2f561be4430d6741f44b204ec
extra : amend_source : 8955e75045f39f47b758587b635d7d2cec85f7f5
extra : source : 6745f48efb28b3ec118166e1211b02354ab01769
2015-12-02 16:49:50 -08:00
Felipe Gomes
bddd338cd7 Bug 1231728 - Fixes some code to follow eslint rules. r=mak
--HG--
extra : commitid : 2pB0pOqsHVW
2015-12-10 14:38:30 -05:00
Bill McCloskey
6e0bf624bf Bug 1208257 - [webext] tabs.json (r=kmag) 2015-12-06 08:50:24 -08:00
Kris Maglione
b729a30707 Bug 1229874: Part 3 - Enable ESLint in WebExtension code. r=billm
The base .eslintrc is essentially a merge of the root Toolkit .eslintrc and
the devtools .eslintrc, with some minor changes to match our prevalent style.

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

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

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

--HG--
rename : devtools/.eslintrc => toolkit/components/extensions/.eslintrc
extra : commitid : 4aDZOi5MNPc
extra : rebase_source : f34ba43aeb8046a0c971cb76b76410497bd12b42
extra : source : 2a7eb4ef7b375e5fd52d843ca206a071367a6475
2015-12-02 16:58:53 -08:00
Kris Maglione
66c9592a32 Bug 1190688: Part 1 - [webext] Implement the activeTab permission. r=billm
--HG--
extra : commitid : 7CvbJtxVmuS
extra : rebase_source : 88dadc60ac17cd9036f85c81ac19dfb3db1d0c91
extra : source : 4a10c564dfca3189ab521c3ccfa92330163189b1
2015-12-01 20:37:41 -08:00
Kris Maglione
ccd1557027 Bug 1193837: Part 2 - [webext] Enforce host matching and load URI restrictions on tabs.executeScript and insertCSS. r=billm
--HG--
extra : commitid : 14Ay1RxALKN
extra : rebase_source : 539fce3e4d8a8456d73bd2d1736338e835e264da
extra : source : ebe2433705a55c4b91d5726ed81574e3bcb5c6fb
2015-12-01 20:32:18 -08:00
Wes Kocher
66050f6f32 Backed out 2 changesets (bug 1193837) because the web extension tests are failing CLOSED TREE
Backed out changeset ebe2433705a5 (bug 1193837)
Backed out changeset c3307a5ac126 (bug 1193837)
2015-12-02 13:23:18 -08:00
Wes Kocher
fdc2d1bcff Backed out 2 changesets (bug 1190688) for browser_ext_tabs_executeScript.js permatimeouts
Backed out changeset 1d5e9f3d094d (bug 1190688)
Backed out changeset 4a10c564dfca (bug 1190688)
2015-12-02 11:22:31 -08:00
Kris Maglione
de25656504 Bug 1190688: Part 1 - [webext] Implement the activeTab permission. r=billm
--HG--
extra : commitid : 3fCvT7O5Oax
extra : rebase_source : 6df43947daa552eb318bf74a3c71792889328618
2015-12-01 20:37:41 -08:00
Kris Maglione
6c8390c592 Bug 1193837: Part 2 - [webext] Enforce host matching and load URI restrictions on tabs.executeScript and insertCSS. r=billm
--HG--
extra : commitid : AHQ6RpQNa70
extra : rebase_source : 913662702f1a06a7773fd31e93eb095cab6b37d7
2015-12-01 20:32:18 -08:00
Kris Maglione
e5cf10f6e9 Bug 1212890: [webext] Implement browser.tabs.getCurrent. r=gabor
--HG--
extra : commitid : 1s2jDVvyZVV
extra : rebase_source : b014b7fb47a3a8e42c27bba5cbfcfaa568d4f08f
2015-11-24 19:04:00 -08:00
Bill McCloskey
fd0aea8d56 Bug 1223585 - [webext] Annotate ignoreEvent (r=kmag) 2015-11-12 08:19:45 -08:00
Edgar Chen
dba190796b Bug 1205221 - Fix chrome.tabs.onUpdate event doesn't be fired correctly when tab's attribute is changed. r=billm
--HG--
extra : transplant_source : %B7%2C%06e%0E%0F/%C3%E5-F%A1M%9B%C3%8F%060%95S
2015-09-15 14:06:51 +08:00
Luca Greco
6884827a14 Bug 1213975 - fix WebExtension tabs.onUpdated cleanup on context close. r=billm 2015-10-26 04:56:00 +01:00
Luca Greco
4cc21e67d9 Bug 1213975 - filter out from WebExtension tabs.onUpdated events any location changes related to iframes. r=billm 2015-10-26 04:55:00 +01:00
Luca Greco
8a4dea3875 Bug 1213975 - WebExtension tab update events about location url change should contain status info. r=billm 2015-10-26 04:54:00 +01:00
Johann Hofmann
e602c93ac2 Bug 1198405 - Use MatchPattern to match URLs in tabs.query. r=billm
--HG--
extra : rebase_source : 9a461d879f79cc67fb1f5405f9b68bd605dfa47d
2015-10-19 12:29:29 +02:00
Christoph Kerschbaumer
eee83aa5d8 Bug 1204983 - Deprecate NewTabURL and forward calls to AboutNewTabService (r=florian,olivier)
--HG--
rename : browser/components/newtab/tests/xpcshell/test_NewTabURL.js => browser/components/newtab/tests/xpcshell/test_AboutNewTabService.js
2015-10-20 18:51:25 -07:00