Please describe the issue and what steps we can take to reproduce it:
- Build and enable the attached Safari app extension InspectorBug
- Allow on all websites and in private browsing
- Disable the extension in Safari Settings
- Open a new private window
- Open the web inspector to the Sources tab
- Enable the extension in Safari Settings
Expected results: The extension content script is not loaded into the empty tab
Actual results: The extension content script is loaded into the empty tab. See the attached screenshots. The Console tab shows that the content script JavaScript runs, but the "safari" variable is not defined.
See also FB22800921 Web inspector loads Safari app extension style sheet into new tabs
InspectorBug.zip

Please describe the issue and what steps we can take to reproduce it:
Expected results: The extension content script is not loaded into the empty tab
Actual results: The extension content script is loaded into the empty tab. See the attached screenshots. The Console tab shows that the content script JavaScript runs, but the "safari" variable is not defined.
See also FB22800921 Web inspector loads Safari app extension style sheet into new tabs
InspectorBug.zip