-
Notifications
You must be signed in to change notification settings - Fork 2.7k
MM-27497 Patch localForage to fix logging out on old Edge #6308
Conversation
Lines 5373 to 5394 of the patch are the actual changes to fix the issue. The rest of the changes are because the library checks in their compiled files as well. This link works, but you have to click to load the patch for it to scroll you to the right place. |
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.
just as a mention the patch is creating a new file. not a blocker but strange
The new file was actually a problem. I copied files into node_modules wrong when preparing the patch. That should be fixed now, and the patch is much easier to read now. |
Locally, I'm getting:
|
Yeah, I'm seeing that as well. I'll take a look since clearly this fix isn't working as well as I'd hoped |
I did some more testing locally, and for some reason the fix was still causing Edge to throw errors. I've instead gone with just downgrading |
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.
Yep, working now ✓, LGTM
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.
Thank you @hmhealey
Tested, looks good to merge.
- Verified user can logout successfully on the Microsoft Edge, returns to login screen. No console errors.
Test server destroyed |
When logging out, we call a method of
localForage
that in turn attempts to call a browser method that's not supported on pre-Chromium versions of Edge. There's a PR submitted to fix that (localForage/localForage#971), but it's waiting to be merged and released, so I'm taking a page from the mobile app's handbook and usingpatch-package
to temporarily apply the patch at install time since it's easier than maintaining a fork until the next version oflocalForage
is released.Ticket Link
https://mattermost.atlassian.net/browse/MM-27497