Commit Graph

64 Commits

Author SHA1 Message Date
Tomislav Jovanovic
d84d4dcf9b Bug 1359704 - "page" context items should not appear in "tab" context r=mixedpuppy
MozReview-Commit-ID: 9Lz8ZzzbNhq
2017-04-27 15:59:32 +02:00
Mark Banner
5ab31ba811 Bug 1358213 - Give WebExtension created menuitems in the context menu an ID. r=kmag
This matches the rest of the context menu and is better for unit tests.

MozReview-Commit-ID: 509HH4wnClN
2017-04-20 20:48:16 +01:00
Kris Maglione
da08b6926c Bug 1317697: Remove things from ExtensionUtils that don't belong there. r=mixedpuppy
MozReview-Commit-ID: CTX0TckLqoV
2017-04-07 13:39:06 -07:00
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Kris Maglione
e6a8ac0beb Bug 1355120: Get rid of top-level window ID tracking. r=aswan
MozReview-Commit-ID: y7DzMxXBot
2017-04-12 14:12:22 -07:00
kernp25
e42851c3cc Bug 1339416 - contextMenus.OnClickData should have the frameId. r=mixedpuppy 2017-04-04 12:00:16 +02:00
Kris Maglione
937291f42b Bug 1350522: Part 4 - Convert browser APIs to lazy loading. r=aswan
MozReview-Commit-ID: BQoWF9nHOuF
2017-04-02 11:59:55 -07:00
Shane Caraveo
ca388f6f17 Bug 1318791 support internal commands to open actions from context menus, r=kmag
MozReview-Commit-ID: 8haLmxc81BM
2017-03-22 10:25:25 -07:00
Shane Caraveo
971740bd92 Bug 1339440 use frameUrl to match context menus on frames r=kmag
MozReview-Commit-ID: LIlAZIP4HNx
2017-03-16 15:02:28 -07:00
Phil Ringnalda
e85047a56b Backed out changeset 075395ba45fe (bug 1339440) for browser_ext_contextMenus_chrome.js failures
CLOSED TREE
2017-03-15 18:32:50 -07:00
Shane Caraveo
60936bd8c0 Bug 1339440 use frameUrl to match context menus on frames r=kmag
MozReview-Commit-ID: LIlAZIP4HNx
2017-03-15 15:58:53 -07:00
Kris Maglione
bbe2608ca7 Bug 1260548: Part 1 - Factor out the common functionality of the tabs API. r=aswan
MozReview-Commit-ID: AS7asn6nXzr
2017-01-30 22:44:16 -08:00
Tomislav Jovanovic
812ef85b1f Bug 1302742 - Add keyboard modifiers to contextMenus ClickInfo r=aswan
MozReview-Commit-ID: K4YnQdH5uOO
2017-01-27 21:10:58 +01:00
Andrew Swan
d23b45b581 Bug 1203330 Part 2 Convert EventManager uses to SingletonEventManager r=kmag
MozReview-Commit-ID: A12TPwAYzTS
2017-01-26 11:27:03 -08:00
Phil Ringnalda
5781d2a09e Backed out 3 changesets (bug 1203330) for failures in test_delay_update_webextension.js
CLOSED TREE

Backed out changeset 2d42350d209a (bug 1203330)
Backed out changeset 3a12c51c3eca (bug 1203330)
Backed out changeset 31fac390e15d (bug 1203330)
2017-01-26 19:13:11 -08:00
Andrew Swan
99c8d3a692 Bug 1203330 Part 2 Convert EventManager uses to SingletonEventManager r=kmag
MozReview-Commit-ID: A12TPwAYzTS
2017-01-26 11:27:03 -08:00
Luca Greco
cf1ae37aa7 Bug 1324429 - Context menu items without contexts should inherit it from their parent. r=kmag
MozReview-Commit-ID: 9BKDdFZ6Hdd
2016-12-21 16:44:30 -05:00
Florian Quèze
45647c4570 Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00
Tomislav Jovanovic
a7d333e24d Bug 1316020 - Add separator before extension items in context menus r=kmag
MozReview-Commit-ID: LNQTZtNQgLN
2016-12-06 01:29:09 +01:00
Tomislav Jovanovic
412c9e6226 Bug 1316020 - Implement tab context for browser.contextMenus r=kmag
MozReview-Commit-ID: LNQTZtNQgLN
2016-11-21 23:29:42 +01:00
Tomislav Jovanovic
07dc88615d bug 1253418 - implement contextMenu page_action and browser_action contexts r=kmag
MozReview-Commit-ID: Ftp77zmxo4B
2016-11-09 21:03:33 +01:00
srivatsav
3b918ed510 Bug 1312466: Added a password context to contextMenus API. r=kmag
MozReview-Commit-ID: DzLX4JQTfRS
2016-11-22 16:57:43 +05:30
djmdev
1b539bd4c9 Bug 1274860 - Modify getContexts function so that page context is applied properly. r=kmag 2016-11-11 17:49:44 +05:30
Kris Maglione
b73015d895 Bug 1315872: Refactor tests that check for promise rejection to use assertRejects. r=aswan
MozReview-Commit-ID: 1fBE7B2OdH7
2016-11-07 22:04:49 -08:00
Rob Wu
9ebbb4a33c 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
2016-09-12 18:26:03 -07:00
Tomislav Jovanovic
1dbc50dbf9 bug 1274809 - Add missing properties to OnClicked data, r=aswan
MozReview-Commit-ID: 4BodpIuKCz2
2016-09-21 02:12:11 +02:00
Rob Wu
812e170fe8 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
2016-08-16 15:51:50 -07:00
Rob Wu
6efdd88867 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
2016-08-15 01:04:58 -07:00
Sebastian Hengst
c7a498ffbd 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
6189daa99f 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
2016-08-15 01:04:58 -07:00
Rob Wu
dcd241dee3 Bug 1275126 - Implement targetUrlPattern for link contexts. r=kmag
MozReview-Commit-ID: EzqX8YbeQqI
2016-07-27 18:23:24 -07:00
Matthew Wein
b7a8a23d03 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
2016-07-14 14:41:03 -07:00
Pushpankar
77a14e357c Bug 1286854 - Replace ownerDocument.defaultView with ownerGlobal in browser/. r=dao 2016-07-16 10:20:04 +02:00
Kris Maglione
e30a4f143e Bug 1272222: Use larger icons for browser actions in the menu panel. r=Gijs
MozReview-Commit-ID: 26lmlcrngPk
2016-07-13 15:16:00 -07:00
Matthew Wein
96bca68b5d Bug 1246044 - Part 2 - Fix issue where context menu items show up after extension is uninstalled. r=kmag
MozReview-Commit-ID: 9eGwSkY8PWo
2016-07-05 17:11:21 -07:00
Matthew Wein
9b94f8859e 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
2016-07-05 16:17:52 -07:00
Kris Maglione
843973aa31 Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
MozReview-Commit-ID: 8m7wJrAbFwS
2016-06-09 17:44:47 -07:00
Sebastian Hengst
d97f588f03 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
b2a33e3bf1 Bug 1279392: [webext] Move API permission definitions to the schemas. r=aswan
MozReview-Commit-ID: 8m7wJrAbFwS
2016-06-09 17:44:47 -07:00
Bob Silverberg
6646a2292b Bug 1274877 - contextMenus API starts logging errors after removing an item, r=kmag
MozReview-Commit-ID: 86bxjxEQaQX
2016-06-07 15:26:08 -04:00
jdinartejesus
718c0f32f9 Bug 1250685 - Fix extension context menu for images. r=kmag 2016-04-11 00:40:50 +02:00
Matthew Wein
447fb7f971 Bug 1250631 - Implement chrome.contextMenus.onClicked. r=kmag
MozReview-Commit-ID: Ic7opjJtmRB
2016-03-23 02:39:10 -07:00
Matthew Wein
b1e1284881 Bug 1215375 - Add support for checkboxes, radio groups, and icons. r=kmag 2016-03-02 15:10:01 -08:00
Kris Maglione
666cee3637 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
d86e5b575c Bug 1234020: Part 2i - [webext] Return promises from the contextMenus API. r=rpl 2016-02-01 18:14:55 -08:00
Kris Maglione
274180ad2c Bug 1211366: Follow-up: Fix ESLint errors. r=trivial 2016-01-05 14:10:58 -08:00
Gabor Krizsanits
14bd34a891 Bug 1235376 - Handling %s in contextMenus. r=kmaglione 2016-01-04 16:54:59 +01:00
Gabor Krizsanits
ee0c99137d Bug 1211366 - parentId validation in contextMenus. r=kmaglione 2016-01-04 16:54:59 +01:00