Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !1035

Fix chrome tab reuse

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/einarlove/fix-chrome-tab-reuse into master Nov 11, 2016
  • Overview 2
  • Commits 2
  • Pipelines 0
  • Changes 1

Created by: einarlove

When you start the development server it open a tab with your preferred browser with the site your developing. The docs for react-dev-utils/openBrowser states:

Attempts to open the browser with a given URL. On Mac OS X, attempts to reuse an existing Chrome tab via AppleScript. Otherwise, falls back to opn behavior.

The reuse of tabs in Chrome does not work correctly because of a bug in the applescript which this PR provides a fix for. Additionally it now supports tab reuse even if you've navigated in your app with history API, and brings Chrome to the foreground focused after tab reuse.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/einarlove/fix-chrome-tab-reuse