Skip to content

Improve compatibility with Firefox#9171

Merged
SunsetTechuila merged 5 commits intomainfrom
ff
Apr 7, 2026
Merged

Improve compatibility with Firefox#9171
SunsetTechuila merged 5 commits intomainfrom
ff

Conversation

@SunsetTechuila
Copy link
Copy Markdown
Member

Closes #9065

Closes #8994

Test URLs

Screenshot

@SunsetTechuila SunsetTechuila added bug firefox Related to Firefox only labels Apr 7, 2026
@github-actions github-actions bot added the meta Related to Refined GitHub itself label Apr 7, 2026
@SunsetTechuila SunsetTechuila changed the title Improve compatibility with mobile Firefox Improve compatibility with Firefox Apr 7, 2026
@SunsetTechuila SunsetTechuila removed the meta Related to Refined GitHub itself label Apr 7, 2026
@SunsetTechuila SunsetTechuila marked this pull request as draft April 7, 2026 15:58
@github-actions github-actions bot added the meta Related to Refined GitHub itself label Apr 7, 2026
@SunsetTechuila SunsetTechuila removed the meta Related to Refined GitHub itself label Apr 7, 2026
@SunsetTechuila SunsetTechuila marked this pull request as ready for review April 7, 2026 16:17
// Always Firefox… https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/setAccessLevel
const area = isFirefox() ? 'local' : 'session';
// Don't use `isFirefox` - #9065
const area = chrome.storage.session?.setAccessLevel === undefined ? 'local' : 'session';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can drop the ===undefined and flip the condition

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but the lint rule is wrong (rather the types are wrong). We can leave it as is for but eventually they'll detect === undefined just as well

@fregante
Copy link
Copy Markdown
Member

fregante commented Apr 7, 2026

Gotta love bots 😃

@SunsetTechuila
Copy link
Copy Markdown
Member Author

SunsetTechuila commented Apr 7, 2026

If only someone had foreseen this...

@fregante
Copy link
Copy Markdown
Member

fregante commented Apr 7, 2026

Ship

@SunsetTechuila
Copy link
Copy Markdown
Member Author

🫡

@SunsetTechuila SunsetTechuila merged commit 6e37a44 into main Apr 7, 2026
10 checks passed
@SunsetTechuila SunsetTechuila deleted the ff branch April 7, 2026 18:42
@fregante
Copy link
Copy Markdown
Member

fregante commented Apr 7, 2026

image

"webext-alert": "^1.1.0",
"webext-base-css": "^2.1.0",
"webext-bugs": "^1.1.1",
"webext-bugs": "^2.0.1",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SunsetTechuila Why was this dependency upgraded in this PR? Was it required for something specific? (I didn't see a clear motivation in the PR description).

thanks

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug firefox Related to Firefox only

3 participants