-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(browserstack): adding Firefox with enabled ShadowDOM
- Loading branch information
1 parent
7ca542f
commit 1407878
Showing
3 changed files
with
35 additions
and
1 deletion.
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
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,21 @@ | ||
# Generating Firefox Profiles | ||
|
||
It is possible to configure Firefox instance, e.g. to enable ShadowDOM support. [firefox-profile](https://www.npmjs.com/package/firefox-profile) can generate base64 encoded profiles including preferences and extensions. | ||
|
||
The generated profile can be passed to an environment entry for Firefox via the `firefox_profile` capability. | ||
|
||
--- | ||
|
||
```sh | ||
npm install firefox-profile | ||
``` | ||
|
||
```js | ||
var FirefoxProfile = require('firefox-profile'); | ||
var profile = new FirefoxProfile(); | ||
profile.setPreference('dom.webcomponents.enabled', true); | ||
profile.updatePreferences(); | ||
profile.encoded(function(data) { | ||
console.log(data); | ||
}); | ||
``` |
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 @@ | ||
UEsDBBQACAAIACq1QkgAAAAAAAAAAAAAAAAHAAAAdXNlci5qc5VWPW/bMBDd+ysKTy1QE22CLO3UJh0KFMgQBB0JijpZjCkeQR6t+N/3KFmJZclfGy28d9/3zilCkD5A9WmhvBfJl4pAqES4+PKxUjbC5x8f0iwInCoslPO4ImDLLFFi6yyqUjTKqRV/iDW2/2pwT6QCGbc6Tf/9/PenwA2EYEpgKIV0ENDgqEPeCqU1eOqiOo61xq0FenASXgmCU5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