IBM Support

PI56259: SAFARI PRIVATE BROWSING MODE TRIGGERS UNCAUGHT EXCEPTION IN WORKLIGHT.JS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In Safari private Browsing mode, during the app start before
    custom code is triggered, we see an uncaught exception
    in worklight.js:
    ==================================
          /*
           *  INIT - Load state if persisted. Else get default state
           */
        (function() {
            if (typeof(Storage) !== 'undefined') {
                var configurationString = null;
                if (__usingLocalConfiguration()) {
                    configurationString = localStorage.getItem
    (KEY_LOCAL_STORAGE_CONFIG);
                } else {
                    configurationString = localStorage.getItem
    (KEY_REMOTE_STORAGE_CONFIG);
                }
    
                if (configurationString === null) {
                    var state = WL.Logger.__state();
                    state.maxFileSize = DEFAULT_MAX_STORAGE_SIZE;
                    WL.Logger.__updateState(state);
    
                    var stateString = JSON.stringify(state);
                    localStorage.setItem(KEY_LOCAL_STORAGE_CONFIG,
                    stateString);
                   /***NOTE: uncaught exception on setItem() ***/
                } else {
                var configuration = JSON.parse(configurationString);
                WL.Logger.__updateState(configuration);
                }
            }
        })();
    ==================================
    This symptom was reported only in Safari Private browsing mode.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * This affects users that are using the built application in   *
    * private web browsing.                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Private web browsing does not support using local storage.   *
    * The Logger API causes an exception when initializing and     *
    * blocks Worklight/MobileFirst Platform Foundation from        *
    * loading in private browsing.                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • A change has been made so that this situation is no longer
    blocked. Private mode is now supported.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI56259

  • Reported component name

    WL/MFPF ENTERPR

  • Reported component ID

    5725I4300

  • Reported release

    620

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-01-28

  • Closed date

    2016-02-25

  • Last modified date

    2016-03-10

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WL/MFPF ENTERPR

  • Fixed component ID

    5725I4300

Applicable component levels

  • R620 PSY

       UP

  • R630 PSY

       UP

  • R700 PSY

       UP

  • R710 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"620","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 October 2021