Calls to writeFile fail in Chrome 65 extensions #1051
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#1051
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Calls to writeFile fail to initiate a download of a spreadsheet in Chrome 65 extensions. It worked as of a few days ago but recently stopped working.
Works:
Chromium 67.0.3380.0 64-bit (windows)
Does not work:
Chrome 65.0.3325.181 64-bit (Ubuntu 17.10)
Chrome 65.0.3325.181 64-bit (windows)
The problem can be replicated by creating a directory with the following files and adding the extension to Chrome by adding the folder as an unpacked extension in the Chrome extensions page. No errors show up in the development console for the extension.
manifest.json
popup.html
popup.js
xlsx.full.min.js
Found here
Chrome may have more stringent security restrictions compared to Chromium. The following seems to work for 65.0.3325.181 (Official Build) (64-bit) on OSX. If this works for you, we can add it to the
write_dl
function:downloads
permission inmanifest.json
:ArrayBuffer
with the"array"
type, manually generate a data URL, and usechrome.downloads.download
to trigger the download:Your solution works for me on the same version of Chrome in Windows and Ubuntu. Thank you!
The logic has been added to
writeFile
so it should just work now in a Chrome extension. There is a new Chrome/Chromium demo showing how to export bookmarks from a popup and tables using content script + event pageI tried to add "permissions" in manifest.json file. but i get an error when i do 'gulp serve'.
The error is as follows :
Error - [write-manifests] Manifest validation error
(#/) Data does not match any schemas from 'oneOf'
(#/) Missing required property: description
(#/) Missing required property: extensionType
(#/componentType) No enum match for: WebPart
(#/) Additional properties not allowed: permissions
(#/) Missing required property: items
(#/) Missing required property: rootComponentId
could anyone provide a solution