mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 22:08:40 +09:00
Support "SourceMap" header along with "X-SourceMap"
This commit is contained in:
parent
141ff75e6a
commit
64fa5a9aad
1 changed files with 4 additions and 1 deletions
|
|
@ -2630,7 +2630,10 @@ nsScriptLoader::PrepareLoadedRequest(nsScriptLoadRequest* aRequest,
|
|||
}
|
||||
|
||||
nsAutoCString sourceMapURL;
|
||||
rv = httpChannel->GetResponseHeader(NS_LITERAL_CSTRING("X-SourceMap"), sourceMapURL);
|
||||
rv = httpChannel->GetResponseHeader(NS_LITERAL_CSTRING("SourceMap"), sourceMapURL);
|
||||
if (NS_FAILED(rv)) {
|
||||
rv = httpChannel->GetResponseHeader(NS_LITERAL_CSTRING("X-SourceMap"), sourceMapURL);
|
||||
}
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
aRequest->mHasSourceMapURL = true;
|
||||
aRequest->mSourceMapURL = NS_ConvertUTF8toUTF16(sourceMapURL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue