Commit 4711998e authored by falken's avatar falken Committed by Commit bot

Service Worker: Expand path restriction error message to instruct how to fix

It may not be readily apparent how to the fix the error otherwise.

BUG=457097

Review URL: https://codereview.chromium.org/939883002

Cr-Commit-Position: refs/heads/master@{#317010}
parent 3d1009fc
......@@ -77,7 +77,9 @@ bool ServiceWorkerUtils::IsPathRestrictionSatisfied(
error_message->append("set by Service-Worker-Allowed: ");
error_message->append("'");
error_message->append(max_scope_string);
error_message->append("').");
error_message->append(
"'). Adjust the scope, move the Service Worker script, or use the "
"Service-Worker-Allowed HTTP header to allow the scope.");
return false;
}
return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment