Posts

Showing posts with the label google-chrome

“Debugging connection was closed: Render process was gone”, when trying to download a 7gb from cdn

“Debugging connection was closed: Render process was gone”, when trying to download a 7gb from cdn We are trying to download a 7 GB from CDN using JSZip.js. The chrome browser suddenly seems to close the connection when the download reaches 3.5gb every time. The approximate time is around 15 mins. Is there a way we increase the tolerant time to 1 hr say? $("#downloadJSZip").on('click', function () { var result = [{ "cdn": "url....", "filename": "7.84 gb.zip", "size": 4194304, "path": "7.84 gb" }]; var Promise = window.Promise; if (!Promise) { Promise = JSZip.external.Promise; } function urlToPromise(url) { return new Promise(function(resolve, reject) { JSZipUtils.getBinaryContent(url, function (err, data) { ...

Access cookies in browser action (chrome extension)?

Access cookies in browser action (chrome extension)? I have browser_action.html which includes browser_action.js . browser_action.html browser_action.js I'm trying to create an ajax request which includes cookies which are already stored for the domain I'm making a request to (I'm basically piggy backing off the login cookie which is encrypted etc). The user is expected to log into the app separately. When it sends the ajax though, it's blank when sending cookies. Thanks Edit Simply adding it to manifest.json doesnt work. manifest.json $.post('http://localhost:3000/dashboard/ext', { active_tab_url: activeTabUrl }).done(function(resp) { ... }).fail(function(jqXHR) { ... }); Possible duplicate of Send XHR request from Chrome extension with cookies – wOxxOm Jul 1 at 4:29 ...