Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-53842

In some parts, usage of WAP themes does not honor wap.styling.enabled/mobile.device.styling.wap.enabled

    Details

      Description

      In LPS-37371, WAP support was disabled by default. Property wap.styling.enabled controls this.

      However, that property is not considered in some places, returning WAP content even if set to false (default value).

      Steps to reproduce (using Firefox) :

      0) Modify Firefox to accept WAP
      0.1) In the address bar in FireFox, type “about:config”.
      0.2) Click the “I promise” button.
      0.3) In the search bar type “network.http.accept.default”.
      0.4) Double-click the setting.
      0.5) In the comma-separated list add a new value of “application/vnd.wap.xhtml+xml” (without the quotes) at the end of the line. For me, I used “application/vnd.wap.xhtml+xml;q=0.5″ to lower the precedence compared to HTML.
      1) Go to localhost:8080

      Result:
      WAP version is returned (you can take a look to the DTD of the returned page).

      Expected result:
      As WAP has low precedence in the accept header, and, by default, WAP is disabled (wap.styling.enabled/mobile.device.styling.wap.enabled is set to false by default), the HTML version should be returned.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 25 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M5