We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[errorReport][hook-callback.js] errorReportBaseUrl is not based on hook.parameters.baseURI
errorReportBaseUrl
hook.parameters.baseURI
location
diff --git a/plugins/policy/errorReport.js b/plugins/policy/errorReport.js index 9eb33bc9..4efb4d5f 100644 --- a/plugins/policy/errorReport.js +++ b/plugins/policy/errorReport.js @@ -5,7 +5,7 @@ Copyright (c) 2017, 2018, 2019, 2020 Tetsuya Mori <t2y3141592@gmail.com>. All ri */ /* @endexclude */ // Handle exceptions - const errorReportBaseUrl = (new URL('errorReport.json', typeof window === 'object' ? top.location : location)).pathname; + const errorReportBaseUrl = (new URL('errorReport.json', hook.parameters.baseURI)).href; const criticalErrorPageUrl = 'about:blank'; let hookCallbackCompatibilityTestDone = false; const _caches = caches; // Take a backup just in case (still not robust)
The text was updated successfully, but these errors were encountered:
0b0aef0
No branches or pull requests
[errorReport][hook-callback.js]
errorReportBaseUrl
is not based onhook.parameters.baseURI
Root Cause
location
is at the same directory as the entry page is inapplicable to these casesFix
The text was updated successfully, but these errors were encountered: