Bug 93828 - [EFL][WK2][Minibrowser] Support html link of blank target attribute.
Summary: [EFL][WK2][Minibrowser] Support html link of blank target attribute.
Status: RESOLVED DUPLICATE of bug 98667
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Linux
: P2 Normal
Assignee: Jinwoo Song
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 05:29 PDT by Kangil Han
Modified: 2012-10-12 00:39 PDT (History)
8 users (show)

See Also:


Attachments
patch (2.52 KB, patch)
2012-08-13 05:32 PDT, Kangil Han
no flags Details | Formatted Diff | Diff
patch (2.58 KB, patch)
2012-08-13 06:34 PDT, Kangil Han
ryuan.choi: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kangil Han 2012-08-13 05:29:05 PDT
Supporting html link of blank target attribute would be needed for verifying basic webkit behavior in minibrowser.
Comment 1 Kangil Han 2012-08-13 05:32:20 PDT
Created attachment 157972 [details]
patch
Comment 2 WebKit Review Bot 2012-08-13 05:35:20 PDT
Attachment 157972 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Tools/ChangeLog', u'Tools/MiniBrowser/efl/..." exit_code: 1
Tools/MiniBrowser/efl/main.c:184:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Tools/MiniBrowser/efl/main.c:184:  An else statement can be removed when the prior "if" concludes with a return, break, continue or goto statement.  [readability/control_flow] [4]
Tools/MiniBrowser/efl/main.c:195:  Missing space after ,  [whitespace/comma] [3]
Tools/MiniBrowser/efl/main.c:209:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 4 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Kangil Han 2012-08-13 06:34:09 PDT
Created attachment 157981 [details]
patch
Comment 4 Kangil Han 2012-08-13 08:38:56 PDT
formal/informal review please!
Comment 5 Raphael Kubo da Costa (:rakuco) 2012-08-13 18:06:31 PDT
Comment on attachment 157981 [details]
patch

Erm, needing to fork() just launch a new window does not smell very well. I haven't been watching the development of the WK2 port very closely, though. Are you sure there isn't a saner way to do this?
Comment 6 Kangil Han 2012-08-13 18:13:31 PDT
(In reply to comment #5)
> (From update of attachment 157981 [details])
> Erm, needing to fork() just launch a new window does not smell very well. I haven't been watching the development of the WK2 port very closely, though. Are you sure there isn't a saner way to do this?

Sorry, I don't have an idea at a moment. :-(
I will ask more formal/informal reviews. ;-)
Comment 7 Kangil Han 2012-08-13 18:19:20 PDT
ryuan: informal review please?
Comment 8 Ryuan Choi 2012-08-13 18:24:19 PDT
Comment on attachment 157981 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=157981&action=review

> Tools/MiniBrowser/efl/main.c:203
> +    pid = fork();
> +    if (!pid) // child process
> +        execl(cmd, cmd, url, (char *)NULL);
> +    else if (pid < 0) // failed to fork
> +        fprintf(stderr, "Failed to fork\n");

You don't need to fork process.
Instead, create new evas and ewk_view.

> Tools/MiniBrowser/efl/main.c:253
> +    evas_object_smart_callback_add(app->browser, "policy,decision,new,window", on_new_window, app);

If I am right, policy,decision,new,window is for creating window.

You can call create,window
Comment 9 Ryuan Choi 2012-08-13 18:25:35 PDT
(In reply to comment #8)
> (From update of attachment 157981 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=157981&action=review
> 
> > Tools/MiniBrowser/efl/main.c:203
> > +    pid = fork();
> > +    if (!pid) // child process
> > +        execl(cmd, cmd, url, (char *)NULL);
> > +    else if (pid < 0) // failed to fork
> > +        fprintf(stderr, "Failed to fork\n");
> 
> You don't need to fork process.
> Instead, create new evas and ewk_view.
> 
> > Tools/MiniBrowser/efl/main.c:253
> > +    evas_object_smart_callback_add(app->browser, "policy,decision,new,window", on_new_window, app);
> 
> If I am right, policy,decision,new,window is for creating window.
"is not for"
> 
> You can call create,window
Comment 10 Jinwoo Song 2012-10-03 10:15:52 PDT
Kangil, can I take over this bug?
Comment 11 Kangil Han 2012-10-03 23:11:53 PDT
(In reply to comment #10)
> Kangil, can I take over this bug?

Sure!
Comment 12 Jinwoo Song 2012-10-11 17:42:31 PDT
This bug is no more valid as the following patch addressed this issue.
http://trac.webkit.org/changeset/130660

*** This bug has been marked as a duplicate of bug 98667 ***