Bug 1842462 - Remove dom.script_loader.external_scripts.utf8_parsing.enabled and dom.worker.script_loader.utf8_parsing.enabled prefs r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D186640
This commit is contained in:
@@ -162,20 +162,6 @@ void ScriptLoadRequest::SetBytecode() {
|
||||
mDataType = DataType::eBytecode;
|
||||
}
|
||||
|
||||
bool ScriptLoadRequest::IsUTF8ParsingEnabled() {
|
||||
if (HasLoadContext()) {
|
||||
if (mLoadContext->IsWindowContext()) {
|
||||
return mozilla::StaticPrefs::
|
||||
dom_script_loader_external_scripts_utf8_parsing_enabled();
|
||||
}
|
||||
if (mLoadContext->IsWorkerContext()) {
|
||||
return mozilla::StaticPrefs::
|
||||
dom_worker_script_loader_utf8_parsing_enabled();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void ScriptLoadRequest::ClearScriptSource() {
|
||||
if (IsTextSource()) {
|
||||
ClearScriptText();
|
||||
|
||||
Reference in New Issue
Block a user