Yutaka Hirano would like Hiroshige Hayashizaki to review this change.
Use StrongAlias for SanitizeScriptErrors
Change-Id: Id368a3acec35f14d674b26a0715b1b476ce68796
---
M third_party/blink/renderer/DEPS
M third_party/blink/renderer/bindings/core/v8/activity_logger_test.cc
M third_party/blink/renderer/bindings/core/v8/js_event_handler_for_content_attribute.cc
M third_party/blink/renderer/bindings/core/v8/module_record_test.cc
M third_party/blink/renderer/bindings/core/v8/rejected_promises.cc
M third_party/blink/renderer/bindings/core/v8/sanitize_script_errors.h
M third_party/blink/renderer/bindings/core/v8/scheduled_action.cc
M third_party/blink/renderer/bindings/core/v8/script_controller.cc
M third_party/blink/renderer/bindings/core/v8/script_streamer_test.cc
M third_party/blink/renderer/bindings/core/v8/serialization/v8_script_value_serializer_test.cc
M third_party/blink/renderer/bindings/core/v8/v8_initializer.cc
M third_party/blink/renderer/bindings/core/v8/v8_script_runner.cc
M third_party/blink/renderer/bindings/core/v8/v8_script_runner_test.cc
M third_party/blink/renderer/bindings/core/v8/worker_or_worklet_script_controller.cc
M third_party/blink/renderer/core/execution_context/execution_context.cc
M third_party/blink/renderer/core/exported/web_plugin_container_impl.cc
M third_party/blink/renderer/core/frame/dom_timer_test.cc
M third_party/blink/renderer/core/frame/local_frame_view.cc
M third_party/blink/renderer/core/frame/pausable_script_executor.cc
M third_party/blink/renderer/core/frame/web_local_frame_impl.cc
M third_party/blink/renderer/core/inspector/inspector_overlay_agent.cc
M third_party/blink/renderer/core/inspector/inspector_page_agent.cc
M third_party/blink/renderer/core/mojo/tests/js_to_cpp_test.cc
M third_party/blink/renderer/core/resize_observer/resize_observer_test.cc
M third_party/blink/renderer/core/scheduler/frame_throttling_test.cc
M third_party/blink/renderer/core/script/classic_pending_script.cc
M third_party/blink/renderer/core/script/module_script_test.cc
M third_party/blink/renderer/core/workers/dedicated_worker_messaging_proxy.cc
M third_party/blink/renderer/core/workers/worker_global_scope.cc
M third_party/blink/renderer/core/xml/document_xml_tree_viewer.cc
M third_party/blink/renderer/modules/animationworklet/animation_worklet_global_scope_test.cc
M third_party/blink/renderer/modules/animationworklet/animation_worklet_proxy_client_test.cc
M third_party/blink/renderer/modules/csspaint/paint_worklet_global_scope_test.cc
M third_party/blink/renderer/modules/csspaint/paint_worklet_proxy_client_test.cc
M third_party/blink/renderer/modules/csspaint/paint_worklet_test.cc
M third_party/blink/tools/blinkpy/presubmit/audit_non_blink_usage.py
36 files changed, 154 insertions(+), 169 deletions(-)
To view, visit change 1703626. To unsubscribe, or for help writing mail filters, visit settings.
This change is ready for review.
For SanitizeScriptErrors, SanitizeScriptErrors(true) may be a bit misleading. I'm wondering if I should introduce a static function "From" to StrongAlias so that I can write SanitizeScriptErrors::From(true).
Patch set 2:Code-Review +1
2 comments:
Any tracking bug?
File third_party/blink/renderer/core/workers/worker_global_scope.cc:
Patch Set #2, Line 253: const SanitizeScriptErrors sanitize_script_errors =
const SanitizeScriptErrors sanitize_script_errors(!GetSecurityOrigin()->CanReadContent(response_url));
To view, visit change 1703626. To unsubscribe, or for help writing mail filters, visit settings.
Patch Set 2:
For SanitizeScriptErrors, SanitizeScriptErrors(true) may be a bit misleading. I'm wondering if I should introduce a static function "From" to StrongAlias so that I can write SanitizeScriptErrors::From(true).
I think this is because of the name, SanitizeScriptErrors.
If the current code looks misleading, then how about renaming to e.g.
SanitizeScriptErrorsFlag(true)?
I'm neutral about this, but probably I'm biased because I already know what SanitizeScriptErrors means.
If this misleads someone outside our team (try asking a quick question),
then let's consider improvements.
Josip Sokcevic abandoned this change.
To view, visit change 1703626. To unsubscribe, or for help writing mail filters, visit settings.