-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: safari errors #784
fix: safari errors #784
Conversation
* fix: Authorization header is not sent for page subresources (#791) * chore(deps): update dependency jsdoc-to-markdown to v9 (#793) * feat: let browser decide which images to render (#794) * fix: various security fixes (#792) --------- Co-authored-by: Andrei Tuicu <andrei.tuicu@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alexandre Capt <acapt@adobe.com>
## [6.47.1](v6.47.0...v6.47.1) (2024-09-04) ### Bug Fixes * **ci:** upgrade to node 20.8.1 ([c5a0a26](c5a0a26))
## [6.47.2](v6.47.1...v6.47.2) (2024-09-04) ### Bug Fixes * **rum:** instrument options page ([#796](#796)) ([b5626cc](b5626cc))
# [6.48.0](v6.47.2...v6.48.0) (2024-09-09) ### Features * **options:** do not use giturl anymore ([#798](#798)) ([08a4e50](08a4e50))
Co-authored-by: walf <walf@adobe.com>
Co-authored-by: walf <walf@adobe.com>
## [6.49.1](v6.49.0...v6.49.1) (2024-09-17) ### Bug Fixes * latest translations ([#809](#809)) ([ded27e9](ded27e9))
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix: Authorization header is not sent for page subresources (#791) * chore(deps): update dependency jsdoc-to-markdown to v9 (#793) * feat: let browser decide which images to render (#794) * fix: various security fixes (#792) --------- Co-authored-by: Andrei Tuicu <andrei.tuicu@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alexandre Capt <acapt@adobe.com>
@@ -68,7 +68,7 @@ | |||
"puppeteer-to-istanbul": "1.4.0", | |||
"request": "2.88.2", | |||
"semantic-release": "24.1.2", | |||
"semantic-release-discord-bot": "^1.1.0", | |||
"semantic-release-discord-bot": "1.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed dependencies only
@@ -18,7 +18,8 @@ | |||
log, | |||
getState, | |||
removeCacheParam, | |||
} = await import('./utils.js'); | |||
url, | |||
} = await import(chrome.runtime.getURL('utils.js')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Safari now complains about relative dynamic imports
@@ -2496,7 +2496,7 @@ import sampleRUM from './rum.js'; | |||
sk.showWait(); | |||
const loginUrl = getAdminUrl(sk.config, 'login'); | |||
let extensionId = window.chrome?.runtime?.id; | |||
if (!extensionId || window.navigator.vendor.includes('Apple')) { // exclude safari |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switch to header-based auth in Safari
@@ -64,7 +64,7 @@ export default async function injectSidekick(config, display) { | |||
} = curatedConfig; | |||
|
|||
// todo: improve config change handling. currently we only update the authToken | |||
chrome.storage.session.onChanged.addListener((changes) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Safari does not know this
header: 'authorization', | ||
value: `token ${authToken}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching to authorization
header because Safari only allows to modify a fixed list of well-known headers.
Fix #831
Fix #830