question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Safari: The welcome page is opened on update

See original GitHub issue

Extension version

22.2.13

Browser(s) used

Safari 15.3

Description

This should not happen on update, but apparently Safari triggers the install event even on update…

Two choices, one of which must be picked before the next release:

  • exclude Safari from the current logic
  • find another way to do this, maybe via the app? Or maybe better logic? Not sure if it exists.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fregantecommented, Feb 18, 2022

How about this, in the install handler:

if (isSafari()) {
	if (!await detectFirstInstall()) {
		// Just an update #5412
		return;
	}

	// Then continue to open the first install page
}

In detectFirstInstall we check for featuresAlreadySeen and for a custom key like firstInstall. If neither is set, save firstInstall in detectFirstInstall itself to ensure this keeps working as intended even if the user has never opened the options.

Two advantages of this solution:

  • Chrome users are unaffected, they don’t need firstInstall at all
  • Most Safari users will be automatically migrated over, with a small minority seeing the message once
1reaction
kidonngcommented, Feb 16, 2022
  • find another way to do this, maybe via the app? Or maybe better logic? Not sure if it exists.

The typical first_installation check probably works:

if (!browser.storage.sync.get('first_installation')) {
	browser.storage.sync.set('first_installation')
    window.open('https://github.com/refined-github/refined-github/issues/3543')
}

This was always an issue? Or they just broke this now?

Both (#5228 is on Dec 20, 2021)

image
Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize a start page in Safari on Mac - Apple Support
In the Safari app on your Mac, choose Bookmarks > Show Start Page. · Click the Options button in the bottom-right corner of...
Read more >
iOS 15: How to Customize Your Safari Start Page and ...
1. Launch Safari on your iPhone or iPad. 2. Tap the open tabs icon in the bottom right corner of the Safari interface....
Read more >
How to Change Your Homepage in Safari - Lifewire
Safari iOS app: Open the page you want > Sharing icon > Add to Home Screen. This article explains how to change your...
Read more >
How to customize Safari start page on iPhone or iPad
Open Safari and stay on the start page or open a new tab. Scroll down and tap Edit. Toggle off the options you...
Read more >
How To Make the Safari Start Page Super Useful - YouTube
https://macmost.com/e-2713 The Start Page in Safari is often ignored, but it can be a very useful tool. By removing some items from it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found