-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
node: Add support for installing unpacked addons at runtime in Firefo…
…x webdriver (#10216) * node: Add support for installing unpacked addons at runtime in Firefox webdriver * Move example webextension files to //common/extensions
- Loading branch information
Showing
14 changed files
with
93 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
filegroup( | ||
name = "extensions", | ||
srcs = glob([ | ||
"*", | ||
"**/*", | ||
]), | ||
visibility = [ | ||
"//javascript/node/selenium-webdriver:__pkg__", | ||
], | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
((function(document) { | ||
var div = document.createElement('div'); | ||
div.id = 'webextensions-selenium-example' | ||
div.textContent = "Content injected by webextensions-selenium-example"; | ||
document.body.appendChild(div); | ||
})(document)) |
17 changes: 17 additions & 0 deletions
17
common/extensions/webextensions-selenium-example/manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"manifest_version": 2, | ||
"name": "webextensions-selenium-example", | ||
"description": "Inject a div with id webextensions-selenium-example to verify that WebExtensions work in Firefox/Selenium" , | ||
"version": "0.1", | ||
"content_scripts": [ | ||
{ | ||
"matches": ["https://*/*","http://*/*"], | ||
"js": ["inject.js"] | ||
} | ||
], | ||
"applications": { | ||
"gecko": { | ||
"id": "webextensions-selenium-example@example.com" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+256 Bytes
javascript/node/selenium-webdriver/lib/test/data/chrome/download.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters