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

Commit b18fbfa9 authored by Selim Gurun's avatar Selim Gurun
Browse files

Update documentation for postmessage method

Bug: 35012584

Move wildcard description to body from parameter, as per API
documentation guidelines.

Test: documentation change

Change-Id: Ibf93bcd5bf509898d293db5729b760f5e1b023b4
parent 61e164d1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1939,12 +1939,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();