×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    15

    Thumbs up KHTML Browser bug?

    Hi!
    We are trying to make a sis file which launches the KHTML/Safari Browser on Series 60 3rd edition phones and automatically opens a Flash Lite file.
    We are getting the following error:
    "Web: memory full...".

    The tests we have made with our sis:
    1) Launch the KHTML browser and open one swf which is available on
    the internet ("http://...."). Everything worked ok. The Browser opened the
    swf correctly.
    2) Launch the KHTML Browser and open a local html file (which was
    part of the sis). Everything worked ok. The browser opened the local HTML
    file correctly.
    3) Launch the KHTML Browser and open a local swf file (which was
    part of the sis). We got an error: "Web: memory full...". (it's not
    problem of the swf size, because we can open it correctly if downloaded
    from the Internet).

    We think that the browser isn't understanding the content type of the ".swf" file and crashes. To test this we have made two more tests:

    1) Launch the KHTML Browser and open a local txt file (which was
    part of the sis). Everything worked ok. The browser opened the local TXT
    file correctly.
    2) We repeated the previous test, changing the extension from "txt" to "xpto". The Browser crashed with the same error: "Web: memory full..."


    How can we force the Browser to open a local swf correctly? The src code we are using to launch the KHTML Browser is at the end of the message.

    Unfortunately we can't launch the swf directly on the Flash Player, because it has a bug/feature which is: If we launch a Flash Lite as stand alone, everytime that the swf accesses the network, the user is prompted to select the Access Point. This behavior doesn't happens if the swf is launched through the KHTML Browser.

    We would really appreciate some help to solve this problem. We have a product ready to market, and the only problem is this. According to our client, this is a real problem, and the project will stop/abort if we can't solve this problem.

    Thanks in advance.
    Regards,
    Victor



    _LIT(KFile,"\\offside\\offside.swf");

    TFileName aFileName(KFile());

    _LIT(KFileProtocol,"file:///");



    const TUid KOSSBrowserUidValue = {0x1020724D};



    RApaLsSession apaLsSession;



    HBufC* param = HBufC::NewLC(64);



    CompleteWithAppPath(aFileName);



    param->Des().Copy(_L("4 "));

    param->Des().Append(KFileProtocol);

    param->Des().Append(aFileName);



    CEikonEnv::InfoWinL(_L("Link to File"),param->Des());



    TUid id(KOSSBrowserUidValue);



    TApaTaskList taskList(CEikonEnv::Static()->WsSession());



    TApaTask task = taskList.FindApp(id);



    if(task.Exists())



    {



    task.BringToForeground();



    HBufC8* param8 = HBufC8::NewLC(param->Length());



    param8->Des().Append(*param);



    task.SendMessage(TUid::Uid(0), *param8); // UID not used



    CleanupStack::PopAndDestroy(param8);



    }



    else



    {



    if(!apaLsSession.Handle())



    {



    User::LeaveIfError(apaLsSession.Connect());



    }



    TThreadId thread;



    User::LeaveIfError(apaLsSession.StartDocument(*param, KOSSBrowserUidValue, thread));



    apaLsSession.Close();



    }



    CleanupStack::PopAndDestroy(param);
    User::Exit(0);

  2. #2
    Registered User
    Join Date
    Jun 2003
    Posts
    15

    Re: KHTML Browser bug?

    Hi!
    Can any one please help me?
    I need to launch the KHTML Browser and force it to open a local swf file (installed with my sis file). I am getting the error "Web: memory full..." . I think this is happening because the browser isn't understanding the ".swf" extension (I can open local html files,...). It should "deliver" it to the Flash Lite Browser plugin. However, when downloaded from an URL, the browser correctly launches the Flash Lite plugin.
    How can I manage to solve this question?

    Thanks in advance,
    Victor

  3. #3
    Nokia Developer Champion
    Join Date
    Apr 2005
    Location
    Boston
    Posts
    517

    Re: KHTML Browser bug?

    Ciao

    On Nokia 3rd edtion phones the KHTML Browser does not support Flash Lite 1.1 content. Only the WAP broser supports Flash Lite 1.1 content.

    Check out what I did: http://www.biskero.org/?p=600

    Alessandro

Similar Threads

  1. File transport URL browser bug in v8.0?
    By proberts in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2006-02-06, 23:20
  2. Possible browser bug in Nokia 7650: Incorrect cookie handling
    By mleal in forum Mobile Web Site Development
    Replies: 3
    Last Post: 2003-10-15, 23:50
  3. Possible browser bug Nokia 3650
    By guybrushthreepwood in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2003-08-22, 10:25
  4. Bug on 3650 XHTML browser ?
    By efras in forum Browsing and Mark-ups
    Replies: 4
    Last Post: 2003-08-14, 13:01
  5. Web browser bug?
    By Nokia_Archive in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-06-01, 20:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •