gristlabs_grist-core/app/client/components
Dmitry S 29a7eadb85 (core) Fix problem with localStorage in some cross-origin embed situations
Summary:
- Handle the possibility that any access to localStorage causes error.
- Move getStorage() and getSessionStorage() safe functions to a separate file.
- Use these safe functions in more places.

Test Plan:
Added a test case, using a webdriver instance that blocks third-party cookies,
to enforce third-party restrictions. Added to gristUtil a way to override the
webdriver instance.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3719
2022-11-30 23:52:50 -05:00
..
AceEditor.css (core) Show example values in formula autocomplete 2022-09-28 19:42:36 +02:00
AceEditor.js (core) Show example values in formula autocomplete 2022-09-28 19:42:36 +02:00
AceEditorCompletions.ts (core) Show example values in formula autocomplete 2022-09-28 19:42:36 +02:00
ActionLog.css (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
ActionLog.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
Banner.ts (core) Add product for new personal plan 2022-07-26 11:33:23 -07:00
Base.js (core) move client code to core 2020-10-02 13:24:21 -04:00
BaseView2.ts (core) Copy column type and options when pasting into an empty column 2022-04-04 14:53:16 +02:00
BaseView.js (core) Update sort and filter UI 2022-11-17 15:33:45 -05:00
CellPosition.ts (core) Draft cells 2021-05-25 21:14:49 +02:00
CellSelector.ts (core) Add cell selection summary 2022-09-30 09:11:46 -07:00
ChartView.css (core) move client code to core 2020-10-02 13:24:21 -04:00
ChartView.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
ClientScope.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
Clipboard.css (core) move client code to core 2020-10-02 13:24:21 -04:00
Clipboard.js (core) Trim trailing whitespace when pasting plain text 2021-11-04 01:26:47 +02:00
CodeEditorPanel.css (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
CodeEditorPanel.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
ColumnFilters.css (core) Context menu for cards. 2021-06-29 15:29:56 +02:00
ColumnTransform.ts (core) Adding font options to the style picker 2022-04-07 20:35:03 +02:00
Comm.ts (core) Fix issue with 'UNEXPECTED ORDER OF CALLBACKS' in Client.ts. 2022-06-16 23:51:14 -04:00
commandList.js (core) Update sort and filter UI 2022-11-17 15:33:45 -05:00
commands.css (core) move client code to core 2020-10-02 13:24:21 -04:00
commands.js (core) Updating flow and UI for shortcut warnings 2022-10-26 10:23:28 +02:00
CopySelection.ts (core) Copy column type and options when pasting into an empty column 2022-04-04 14:53:16 +02:00
Cursor.ts (core) When a checkbox is clicked on a new record, set default values determined by linking 2022-11-10 14:34:40 -05:00
CursorMonitor.ts (core) Fix problem with localStorage in some cross-origin embed situations 2022-11-30 23:52:50 -05:00
CustomView.css (core) Fix CustomView css to take full height of widget on all browsers including Safari 2020-10-06 13:18:50 -04:00
CustomView.ts (core) Faster builds all around. 2022-07-04 10:42:40 -04:00
DataTables.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
DeprecatedCommands.ts (core) Updating flow and UI for shortcut warnings 2022-10-26 10:23:28 +02:00
DetailView.css (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
DetailView.js (core) Changing shortcuts for adding and removing rows 2022-10-21 18:45:25 +02:00
DocComm.ts (core) add an access token mechanism to help with attachments in custom widgets 2022-07-19 11:55:18 -04:00
DocConfigTab.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DocumentUsage.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
Drafts.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
duplicatePage.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
EditorMonitor.ts (core) Fix problem with localStorage in some cross-origin embed situations 2022-11-30 23:52:50 -05:00
EmbedForm.css (core) move client code to core 2020-10-02 13:24:21 -04:00
FieldConfigTab.css (core) move client code to core 2020-10-02 13:24:21 -04:00
FormulaTransform.ts (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
GridView.css (core) Fixing background color in frozen columns for zebra stripes 2022-10-28 09:43:34 +02:00
GridView.js (core) Update sort and filter UI 2022-11-17 15:33:45 -05:00
GristDoc.css (core) move client code to core 2020-10-02 13:24:21 -04:00
GristDoc.ts (core) Change 'Clear ... column' menu options to 'Reset', and make resetting columns reset type too 2022-10-31 08:53:42 -04:00
GristWSConnection.ts (core) Fix problem with localStorage in some cross-origin embed situations 2022-11-30 23:52:50 -05:00
Importer.ts (core) Change 'Clear ... column' menu options to 'Reset', and make resetting columns reset type too 2022-10-31 08:53:42 -04:00
Layout.css (core) Collapse inactive view sections on mobile screens. 2021-02-09 09:17:32 -05:00
Layout.js (core) Fixing bug with undoing page delation with a custom layout 2021-12-20 19:32:14 +01:00
LayoutEditor.css (core) move client code to core 2020-10-02 13:24:21 -04:00
LayoutEditor.js (core) move client code to core 2020-10-02 13:24:21 -04:00
LayoutPreview.css (core) move client code to core 2020-10-02 13:24:21 -04:00
LayoutPreview.js (core) move client code to core 2020-10-02 13:24:21 -04:00
LinkingState.ts (core) Fix bug causing cursor to jump to first row in a widget linked to a summary table. 2022-10-21 16:10:19 -04:00
Login.css (core) move client code to core 2020-10-02 13:24:21 -04:00
modals.ts (core) Updating flow and UI for shortcut warnings 2022-10-26 10:23:28 +02:00
ParseOptions.ts (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
PluginScreen.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
Preferences.css (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
Printing.css (core) Improve printing of tables, fix printing of charts, add a browser test. 2020-10-12 16:04:18 -04:00
Printing.ts (core) Faster builds all around. 2022-07-04 10:42:40 -04:00
RawDataPage.ts (core) Add cell selection summary 2022-09-30 09:11:46 -07:00
RecordLayout.css (core) Add dark mode to user preferences 2022-09-05 19:17:32 -07:00
RecordLayout.js (core) Fix for layout editor when fields are removed 2022-11-10 10:36:43 +01:00
RecordLayoutEditor.js Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
RefSelect.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
SearchBar.css (core) move client code to core 2020-10-02 13:24:21 -04:00
SelectionSummary.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
TypeConversion.ts (core) Fix bug preventing changes to ref list table 2022-10-17 07:49:54 -07:00
TypeTransform.ts Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
UndoStack.ts (core) Change UndoStack._linkMap to store an array of action groups for each linkId 2022-01-20 19:00:01 +02:00
UnsavedChanges.ts (core) support ?embed=true and &style=light for a clean embed experience 2020-08-14 13:34:38 -04:00
ValidationPanel.css (core) move client code to core 2020-10-02 13:24:21 -04:00
ValidationPanel.js Make a good part of the app localizable and add French translations (#325) 2022-10-28 09:11:08 -07:00
viewCommon.css (core) Fixing background color in frozen columns for zebra stripes 2022-10-28 09:43:34 +02:00
viewCommon.js (core) Skip saving column resizes in read-only mode 2021-12-07 14:37:25 -08:00
ViewConfigTab.css (core) move client code to core 2020-10-02 13:24:21 -04:00
ViewConfigTab.js (core) Update sort and filter UI 2022-11-17 15:33:45 -05:00
ViewLayout.css Fix drag icon for view layout 2022-10-27 09:51:56 +02:00
ViewLayout.ts (core) Update sort and filter UI 2022-11-17 15:33:45 -05:00
ViewLinker.css (core) move client code to core 2020-10-02 13:24:21 -04:00
ViewPane.ts (core) Implementing row conditional formatting 2022-08-09 20:11:36 +02:00
WidgetFrame.ts (core) add an access token mechanism to help with attachments in custom widgets 2022-07-19 11:55:18 -04:00