Skip to content
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

Merged
merged 50 commits into from
Oct 3, 2024
Merged

fix: safari errors #784

merged 50 commits into from
Oct 3, 2024

Conversation

rofe
Copy link
Contributor

@rofe rofe commented Aug 19, 2024

Fix #831
Fix #830

rofe and others added 30 commits August 19, 2024 17:22
* 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>
# [6.49.0](v6.48.0...v6.49.0) (2024-09-13)

### Features

* add support for configurable badges ([#787](#787)) ([fb0deca](fb0deca))
* transient token support ([#788](#788)) ([a5ffc58](a5ffc58))
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>
semantic-release-bot and others added 12 commits September 30, 2024 14:21
* 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>
* **ci:** upgrade to node 20.8.1 ([c5a0a26](c5a0a26))
* **rum:** instrument options page ([#796](#796)) ([b5626cc](b5626cc))
@@ -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",
Copy link
Contributor Author

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'));
Copy link
Contributor Author

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
Copy link
Contributor Author

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) => {
Copy link
Contributor Author

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

Comment on lines +556 to +557
header: 'authorization',
value: `token ${authToken}`,
Copy link
Contributor Author

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.

.circleci/config.yml Outdated Show resolved Hide resolved
@rofe rofe marked this pull request as ready for review October 2, 2024 09:41
@rofe rofe requested a review from tripodsan October 2, 2024 09:41
@rofe rofe changed the title feat: safari uses auth header fix: safari errors Oct 2, 2024
@rofe rofe merged commit 8bb0b4a into main Oct 3, 2024
4 checks passed
@rofe rofe deleted the safari-cookieless branch October 3, 2024 13:47
rofe pushed a commit that referenced this pull request Oct 3, 2024
## [6.49.3](v6.49.2...v6.49.3) (2024-10-03)

### Bug Fixes

* multiple fixes ([#784](#784)) ([8bb0b4a](8bb0b4a)), closes [#830](#830)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[safari] sidekick does not show
6 participants