"Error retrieving Push subscription." is too scarce of details
Categories
(Core :: DOM: Push Subscriptions, enhancement, P5)
Tracking
()
People
(Reporter: marco, Unassigned)
Details
(Whiteboard: dom-lws-bugdash-triage)
I have integration tests for the web-push library for Firefox Release, Beta and Nightly. Since a few weeks ago, they started failing on Nightly. They started failing on Beta too recently with "Error retrieving Push subscription.".
With no additional details, debugging this is very painful.
The same can happen to developers, I can see a few StackOverflow questions and issues mentioning this, e.g.:
https://stackoverflow.com/questions/56378140/i-get-domexception-error-retrieving-push-subscription-while-using-firefox-67
https://stackoverflow.com/questions/34489810/firefox-push-api-aborterror-error-retrieving-push-subscription
https://github.com/mozilla/wp-web-push/issues/157
| Reporter | ||
Comment 1•6 years ago
|
||
The library is at https://github.com/web-push-libs/web-push.
The test is at https://github.com/web-push-libs/web-push/blob/5df44693b0a466faedeb2b0a89d6606cb0f16e0f/test/testSelenium.js and https://github.com/web-push-libs/web-push/tree/5df44693b0a466faedeb2b0a89d6606cb0f16e0f/test/data/demo.
The test can be run by running "npm run test". If you want to specifically run the integration test only on Beta or Nightly only, you can replace "test*" with "testSelenium.js" at https://github.com/web-push-libs/web-push/blob/5df44693b0a466faedeb2b0a89d6606cb0f16e0f/package.json#L13 and add:
if (browser.getPrettyName() !== 'Firefox Nightly') {
return;
}
| Reporter | ||
Comment 2•6 years ago
|
||
If you want to use a custom build of Firefox, you can add something like:
browser.getExecutablePath = function() {
return "/home/marco/Documenti/FD/mozilla-unified/obj/dist/bin/firefox";
};
| Reporter | ||
Comment 4•6 years ago
|
||
69 (release) is failing too, so the library is no longer tested against Firefox.
Updated•6 years ago
|
Updated•6 years ago
|
(This is not a bug but is annoying)
Description
•