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

Commit a5281896 authored by Torne (Richard Coles)'s avatar Torne (Richard Coles)
Browse files

Clarify WebResourceRequest.isForMainFrame docs.

Make it more explicit that isForMainFrame() returns true only for the
actual main frame document, and not for any subresources, even if they
are subresources of the main frame.

Test: make ds-docs
Change-Id: I942cbe6a8f50d2f3af00b99b14a8503c8c4556de
parent a508196f
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -32,10 +32,10 @@ public interface WebResourceRequest {
    Uri getUrl();
    Uri getUrl();


    /**
    /**
     * Gets whether the request was made for the main frame.
     * Gets whether the request was made in order to fetch the main frame's document.
     *
     *
     * @return whether the request was made for the main frame. Will be {@code false} for iframes,
     * @return whether the request was made for the main frame document. Will be
     *         for example.
     *         {@code false} for subresources or iframes, for example.
     */
     */
    boolean isForMainFrame();
    boolean isForMainFrame();