-
Notifications
You must be signed in to change notification settings - Fork 42
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
Only allows instrument.set() in active service worker #224
Conversation
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.
The proposed text seems fine, but does this also apply to things like IndexedDB? Is there a pointer to an issue describing why we are adding this restriction? Just wondering what the rationale is.
Thank you for reviews and I'm sorry for delayed reply. This pull request is initiated from #223. The problem would not have happened before (bfe952b). One solution is
I think this patch can resolve them. |
If my understanding is correct, IndexedDB storage is not associated with a service worker. The following link will be helpful to us: |
Ah, got it... it's "exposed" in a service worker, but not associated with it. Right - I'm my mind the instruments were not bound to the service worker... that's again the discussion around storage and credentials. |
@romandev: Shouldn't all the methods ( |
Like other service worker family features, we should only allow instrument.set() in active service worker. This fixes w3c#223 issue.
@rsolomakhin PTAL I think other methods(
|
FYI, when you wanna merge this or other PRs, according to #156, it's better to use a squash commit. (No merge commits) I think merge commits make it difficult for us to track our commit history. :) |
Like other service worker family features, we should only allow
instrument.set() in active service worker.
This fixes #223 issue.
Preview | Diff