Bug 134479

Summary: Fix build break on EFL and GTK ports since r170611 and r170614
Product: WebKit Reporter: Gyuyoung Kim <gyuyoung.kim>
Component: WebKit2Assignee: Gyuyoung Kim <gyuyoung.kim>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, bunhere, cdumez, cgarcia, commit-queue, gyuyoung.kim, rakuco, rniwa, sergio
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 134487    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2
none
Patch cgarcia: review+

Description Gyuyoung Kim 2014-06-30 18:24:31 PDT
EFL and GTK port have been broken since r170611 and r170614. Those commits were only for mac port.
Comment 1 Gyuyoung Kim 2014-06-30 18:27:43 PDT
Created attachment 234134 [details]
Patch
Comment 2 Gyuyoung Kim 2014-06-30 18:38:55 PDT
Created attachment 234136 [details]
Patch
Comment 3 Anders Carlsson 2014-06-30 18:45:46 PDT
Comment on attachment 234136 [details]
Patch

I think a better solution would be to make encodeLegacySessionHistoryEntryData and decodeLegacySessionHistoryEntryData build for GTK and EFL as well, there's nothing mac specific about that code.
Comment 4 Gyuyoung Kim 2014-06-30 20:01:31 PDT
Created attachment 234140 [details]
Patch
Comment 5 Gyuyoung Kim 2014-06-30 20:04:50 PDT
(In reply to comment #3)
> (From update of attachment 234136 [details])
> I think a better solution would be to make encodeLegacySessionHistoryEntryData and decodeLegacySessionHistoryEntryData build for GTK and EFL as well, there's nothing mac specific about that code.

Andersa, it looks there are two choices we can do. One is to share existing LegacySessionStateCoding.cpp for Mac, Gtk and EFL port. Other is each port has own LegacySessionStateCoding.cpp file. I think it would be good to have own file for each port because each port may has specific code in future. If not, plz let me know.

And, I just add dummy functions to fix build break. I need to have time to implement those function for EFL port. If this patch can be landed, I'm going to start to implement those functions.
Comment 6 Gyuyoung Kim 2014-06-30 20:05:39 PDT
CC'ing KaL as well.
Comment 7 Gyuyoung Kim 2014-06-30 21:46:09 PDT
Created attachment 234144 [details]
Patch
Comment 8 Gyuyoung Kim 2014-06-30 23:01:40 PDT
Created attachment 234146 [details]
Patch
Comment 9 Carlos Garcia Campos 2014-07-01 00:00:11 PDT
Comment on attachment 234146 [details]
Patch

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

I wonder if we could add a single LegacySessionStateCodingNone.cpp, since this is mac legacy stuff, I guess EFL and GTK+ will not implement it in any case.

> Source/WebKit2/UIProcess/WebPageProxy.cpp:1858
> -    if (sessionState.provisionalURL) {
> +    if (!sessionState.provisionalURL.isNull()) {

This looks unrelated to the build fix, I guess this bug was introduced in r170627, so I would file a different bug report for this.
Comment 10 Build Bot 2014-07-01 00:10:35 PDT
Comment on attachment 234146 [details]
Patch

Attachment 234146 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4927838788517888

New failing tests:
media/W3C/video/networkState/networkState_during_loadstart.html
Comment 11 Build Bot 2014-07-01 00:10:42 PDT
Created attachment 234148 [details]
Archive of layout-test-results from webkit-ews-16 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-16  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 12 Gyuyoung Kim 2014-07-01 00:12:26 PDT
(In reply to comment #9)
> (From update of attachment 234146 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=234146&action=review
> 
> I wonder if we could add a single LegacySessionStateCodingNone.cpp, since this is mac legacy stuff, I guess EFL and GTK+ will not implement it in any case.

ok, let me add it for EFL and GTK port.

> > Source/WebKit2/UIProcess/WebPageProxy.cpp:1858
> > -    if (sessionState.provisionalURL) {
> > +    if (!sessionState.provisionalURL.isNull()) {
> 
> This looks unrelated to the build fix, I guess this bug was introduced in r170627, so I would file a different bug report for this.

I agree.
Comment 13 Gyuyoung Kim 2014-07-01 00:23:30 PDT
(In reply to comment #12)
> (In reply to comment #9)
> > (From update of attachment 234146 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=234146&action=review
> > 
> > I wonder if we could add a single LegacySessionStateCodingNone.cpp, since this is mac legacy stuff, I guess EFL and GTK+ will not implement it in any case.
> 
> ok, let me add it for EFL and GTK port.

I agree to add LegacySessionStateCodingNone.cpp though, I'm not sure if back/forward can work as before behavior. Because, rr170611 and r170614 removed some existing backforward data.

My first patch is to restore previous patch.
https://bugs.webkit.org/attachment.cgi?id=234134&action=review
Comment 14 Gyuyoung Kim 2014-07-01 00:43:34 PDT
Created attachment 234149 [details]
Patch
Comment 15 Carlos Garcia Campos 2014-07-01 00:51:00 PDT
Is backforward data used for any other thing or only for session save/restore?
Comment 16 Gyuyoung Kim 2014-07-01 00:55:04 PDT
(In reply to comment #15)
> Is backforward data used for any other thing or only for session save/restore?

It seems it was only used for session save/restore.
Comment 17 Carlos Garcia Campos 2014-07-01 00:55:16 PDT
Comment on attachment 234149 [details]
Patch

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

Ok, let's try to fix the build asap. Thanks!

> Source/WebKit2/UIProcess/LegacySessionStateCodingNone.cpp:30
> +#include "NotImplemented.h"

This should be <WebCore/NotImplemented.h>
Comment 18 Gyuyoung Kim 2014-07-01 00:57:56 PDT
Committed r170631: <http://trac.webkit.org/changeset/170631>
Comment 19 Gyuyoung Kim 2014-07-01 00:59:17 PDT
(In reply to comment #17)
> (From update of attachment 234149 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=234149&action=review
> 
> Ok, let's try to fix the build asap. Thanks!
> 
> > Source/WebKit2/UIProcess/LegacySessionStateCodingNone.cpp:30
> > +#include "NotImplemented.h"
> 
> This should be <WebCore/NotImplemented.h>

Ok, I fixed it. Could you take a look Bug 134487 as well ?