DescriptionRemove SecurityOrigin::isPotentiallyTrustworthy() |errorMessage|
isPotentiallyTrustworthy() previously took an |errorMessage| argument
that it always set to the same string when it returned false. Now there
is just a static method to get that string, and callers, if they so
choose, can call the static method to populate an error message.
This is in preparation for adapting Document::isSecureContext() for
--site-per-process. In an OOPIF world, we need to replicate a flag
indicating whether a sandboxed frame's origin should be considered
potentially trustworthy, but we don't want to also replicate an error
string as well when it isn't potentially trustworthy.
BUG=571079
Committed: https://crrev.com/64b1060f5898227113951469bd35100389ad26ee
Cr-Commit-Position: refs/heads/master@{#377002}
Patch Set 1 #Patch Set 2 : do a static method instead of a constant #Patch Set 3 : build fix #Messages
Total messages: 10 (5 generated)
|