RESOLVED FIXED 126249
[EFL][WK2] Remove defaultPageGroupIdentifier not to make the confusion
https://bugs.webkit.org/show_bug.cgi?id=126249
Summary [EFL][WK2] Remove defaultPageGroupIdentifier not to make the confusion
Ryuan Choi
Reported 2013-12-26 16:37:30 PST
ewk_page_group_create always creates new page group, but the identifiers of page groups will be same as "defaultPageGroupIdentifier" when passed 0 or "". It is unnecessary and just makes the confusion.
Attachments
Patch (3.17 KB, patch)
2013-12-26 16:47 PST, Ryuan Choi
no flags
Ryuan Choi
Comment 1 2013-12-26 16:47:59 PST
Gyuyoung Kim
Comment 2 2013-12-26 16:57:33 PST
Comment on attachment 220039 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220039&action=review > Source/WebKit2/ChangeLog:9 > + but the identifiers of page groups will be same as "defaultPageGroupIdentifier" when passed 0 or "". How will the identifiers be same with "defaultPageGroupIdentifier" when passing null ?
Ryuan Choi
Comment 3 2013-12-26 17:05:26 PST
Comment on attachment 220039 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220039&action=review >> Source/WebKit2/ChangeLog:9 >> + but the identifiers of page groups will be same as "defaultPageGroupIdentifier" when passed 0 or "". > > How will the identifiers be same with "defaultPageGroupIdentifier" when passing null ? The identifier of WebPageGroup is just what user passed or generated one if user passed empty string. But, our previous logic only passed "defaultPageGroupIdentifier" when we passed empty string. In fact, WebPageGroup uses pageGroupID(generated one) and identifier (string which user passed).
Jinwoo Song
Comment 4 2013-12-29 16:56:51 PST
Comment on attachment 220039 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220039&action=review >>> Source/WebKit2/ChangeLog:9 >>> + but the identifiers of page groups will be same as "defaultPageGroupIdentifier" when passed 0 or "". >> >> How will the identifiers be same with "defaultPageGroupIdentifier" when passing null ? > > The identifier of WebPageGroup is just what user passed or generated one if user passed empty string. > But, our previous logic only passed "defaultPageGroupIdentifier" when we passed empty string. > > In fact, WebPageGroup uses pageGroupID(generated one) and identifier (string which user passed). If the same identifier is passed, WebCore's page get same page group identifier even a new WebPageGroup is created. WebPage.cpp m_page->setGroupName(m_pageGroup->identifier()); The reason I added "defaultPageGroupIdentifier" was to make pages have same group identifier even though developer did not set the identifier. But it would be better to remove this default identifier because it conflict the behavior of WebPageGroup.
Gyuyoung Kim
Comment 5 2014-01-02 23:11:18 PST
Comment on attachment 220039 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=220039&action=review >>>> Source/WebKit2/ChangeLog:9 >>>> + but the identifiers of page groups will be same as "defaultPageGroupIdentifier" when passed 0 or "". >>> >>> How will the identifiers be same with "defaultPageGroupIdentifier" when passing null ? >> >> The identifier of WebPageGroup is just what user passed or generated one if user passed empty string. >> But, our previous logic only passed "defaultPageGroupIdentifier" when we passed empty string. >> >> In fact, WebPageGroup uses pageGroupID(generated one) and identifier (string which user passed). > > If the same identifier is passed, WebCore's page get same page group identifier even a new WebPageGroup is created. > > WebPage.cpp > m_page->setGroupName(m_pageGroup->identifier()); > > The reason I added "defaultPageGroupIdentifier" was to make pages have same group identifier even though developer did not set the identifier. > But it would be better to remove this default identifier because it conflict the behavior of WebPageGroup. If WebPageGroup already support to generate an unique identifier when passing null as argument, I agree to remove the default identifier.
WebKit Commit Bot
Comment 6 2014-01-02 23:44:19 PST
Comment on attachment 220039 [details] Patch Clearing flags on attachment: 220039 Committed r161254: <http://trac.webkit.org/changeset/161254>
WebKit Commit Bot
Comment 7 2014-01-02 23:44:23 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.