Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb95cd11 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update documentation for postmessage method"

parents d86a0ca6 b18fbfa9
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1956,12 +1956,12 @@ public class WebView extends AbsoluteLayout
     * messages to a certain target origin. See
     * <a href="https://html.spec.whatwg.org/multipage/comms.html#posting-messages">
     * HTML5 spec</a> for how target origin can be used.
     * <p>
     * A target origin can be set as a wildcard ("*"). However this is not recommended.
     * See the page above for security issues.
     *
     * @param message the WebMessage
     * @param targetOrigin the target origin. This is the origin of the page
     *          that is intended to receive the message. For best security
     *          practices, the user should not specify a wildcard (*) when
     *          specifying the origin.
     * @param targetOrigin the target origin.
     */
    public void postWebMessage(WebMessage message, Uri targetOrigin) {
        checkThread();