mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore(firefox): move sources from //lib/firefox to //lib (#3920)
This commit is contained in:
parent
a210dd7ee2
commit
1676f9927c
@ -13,8 +13,8 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
const FirefoxLauncher = require('./lib/firefox/Launcher.js').Launcher;
|
const FirefoxLauncher = require('./lib/Launcher.js').Launcher;
|
||||||
const BrowserFetcher = require('./lib/firefox/BrowserFetcher.js');
|
const BrowserFetcher = require('./lib/BrowserFetcher.js');
|
||||||
|
|
||||||
class Puppeteer {
|
class Puppeteer {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -23,7 +23,7 @@ const readline = require('readline');
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const util = require('util');
|
const util = require('util');
|
||||||
const {helper} = require('./helper');
|
const {helper} = require('./helper');
|
||||||
const {TimeoutError} = require('../Errors')
|
const {TimeoutError} = require('./Errors')
|
||||||
const FirefoxTransport = require('./FirefoxTransport');
|
const FirefoxTransport = require('./FirefoxTransport');
|
||||||
|
|
||||||
const mkdtempAsync = util.promisify(fs.mkdtemp);
|
const mkdtempAsync = util.promisify(fs.mkdtemp);
|
@ -1,8 +1,8 @@
|
|||||||
const {helper, assert, debugError} = require('./helper');
|
const {helper, assert, debugError} = require('./helper');
|
||||||
const {Keyboard, Mouse} = require('./Input');
|
const {Keyboard, Mouse} = require('./Input');
|
||||||
const {constants} = require('../common');
|
const {constants} = require('./common');
|
||||||
const {Dialog} = require('./Dialog');
|
const {Dialog} = require('./Dialog');
|
||||||
const {TimeoutError} = require('../Errors');
|
const {TimeoutError} = require('./Errors');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const mime = require('mime');
|
const mime = require('mime');
|
||||||
const util = require('util');
|
const util = require('util');
|
@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
const {TimeoutError} = require('../Errors');
|
const {TimeoutError} = require('./Errors');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
@ -7,7 +7,7 @@ const path = require('path');
|
|||||||
// Based on: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Enterprise_deployment_before_60#Configuration
|
// Based on: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Enterprise_deployment_before_60#Configuration
|
||||||
async function installFirefoxPreferences(executablePath) {
|
async function installFirefoxPreferences(executablePath) {
|
||||||
const firefoxFolder = path.dirname(executablePath);
|
const firefoxFolder = path.dirname(executablePath);
|
||||||
const {helper} = require('../lib/firefox/helper');
|
const {helper} = require('../lib/helper');
|
||||||
const mkdirAsync = helper.promisify(fs.mkdir.bind(fs));
|
const mkdirAsync = helper.promisify(fs.mkdir.bind(fs));
|
||||||
|
|
||||||
let prefPath = '';
|
let prefPath = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user