WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
175880
REGRESSION(
r218437
): [GTK][WPE] Test /webkit2/WebKitWebExtension/isolated-world is failing since
r218437
https://bugs.webkit.org/show_bug.cgi?id=175880
Summary
REGRESSION(r218437): [GTK][WPE] Test /webkit2/WebKitWebExtension/isolated-wor...
Ms2ger (he/him; ⌚ UTC+1/+2)
Reported
2017-08-23 02:42:41 PDT
.
Attachments
Patch
(2.58 KB, patch)
2017-08-23 02:44 PDT
,
Ms2ger (he/him; ⌚ UTC+1/+2)
no flags
Details
Formatted Diff
Diff
Patch
(2.67 KB, patch)
2017-08-23 06:41 PDT
,
Ms2ger (he/him; ⌚ UTC+1/+2)
no flags
Details
Formatted Diff
Diff
Patch
(2.62 KB, patch)
2017-08-28 03:54 PDT
,
Ms2ger (he/him; ⌚ UTC+1/+2)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Ms2ger (he/him; ⌚ UTC+1/+2)
Comment 1
2017-08-23 02:44:58 PDT
Created
attachment 318860
[details]
Patch
Carlos Alberto Lopez Perez
Comment 2
2017-08-23 03:39:48 PDT
Comment on
attachment 318860
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=318860&action=review
> Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:151 > - "document.open(1, 2, 3);"; > + "window.open(1, 2, 3);";
What mean the parameters 1, 2, 3 here?
Ms2ger (he/him; ⌚ UTC+1/+2)
Comment 3
2017-08-23 03:54:22 PDT
(In reply to Carlos Alberto Lopez Perez from
comment #2
)
> Comment on
attachment 318860
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=318860&action=review
> > > Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:151 > > - "document.open(1, 2, 3);"; > > + "window.open(1, 2, 3);"; > > What mean the parameters 1, 2, 3 here?
The forwarding to window.open() only happens with at least three arguments. No idea why this used such a roundabout approach; CC'ing some people from
bug 103377
.
Carlos Alberto Lopez Perez
Comment 4
2017-08-23 03:59:00 PDT
(In reply to Ms2ger from
comment #3
)
> (In reply to Carlos Alberto Lopez Perez from
comment #2
) > > Comment on
attachment 318860
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=318860&action=review
> > > > > Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:151 > > > - "document.open(1, 2, 3);"; > > > + "window.open(1, 2, 3);"; > > > > What mean the parameters 1, 2, 3 here? > > The forwarding to window.open() only happens with at least three arguments. > No idea why this used such a roundabout approach; CC'ing some people from >
bug 103377
.
Just doing window.open() seems to work here to make the test pass
Carlos Alberto Lopez Perez
Comment 5
2017-08-23 04:05:52 PDT
(In reply to Carlos Alberto Lopez Perez from
comment #4
)
> (In reply to Ms2ger from
comment #3
) > > (In reply to Carlos Alberto Lopez Perez from
comment #2
) > > > Comment on
attachment 318860
[details]
> > > Patch > > > > > > View in context: > > >
https://bugs.webkit.org/attachment.cgi?id=318860&action=review
> > > > > > > Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:151 > > > > - "document.open(1, 2, 3);"; > > > > + "window.open(1, 2, 3);"; > > > > > > What mean the parameters 1, 2, 3 here? > > > > The forwarding to window.open() only happens with at least three arguments. > > No idea why this used such a roundabout approach; CC'ing some people from > >
bug 103377
. >
Ah! I see what you mean.. previously (before
r218437
) 3 parameter where needed to pass the call from document.open to window.open()
> Just doing window.open() seems to work here to make the test pass
Now simply calling window.open without any parameter seems enough
Ms2ger (he/him; ⌚ UTC+1/+2)
Comment 6
2017-08-23 06:41:51 PDT
Created
attachment 318865
[details]
Patch
Ms2ger (he/him; ⌚ UTC+1/+2)
Comment 7
2017-08-23 06:49:39 PDT
Since I don't know what purpose the function call served, I just removed it entirely.
Carlos Alberto Lopez Perez
Comment 8
2017-08-23 07:10:22 PDT
Comment on
attachment 318865
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=318865&action=review
> Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:150 > - "window.open = function () { alert('Main World'); }\n" > - "document.open(1, 2, 3);"; > + "alert('Main World');";
Looks fine to me, but I prefer to wait for cgarcia r+ here (as I'm a bit confused about the previous window.open usage here and maybe there is something i'm overlooking)
Carlos Garcia Campos
Comment 9
2017-08-28 00:43:12 PDT
I find the bug title a bit confusing, it's not that the test has a way of running pop ups, that was the way to test isolated worlds, it was actually a "port" of the layout test http/tests/security/isolatedWorld/document-open.html.
Carlos Garcia Campos
Comment 10
2017-08-28 00:46:35 PDT
Comment on
attachment 318865
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=318865&action=review
Thanks for looking at this failure, it has been in my TODO since it started to fail.
> Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:161 > - "window.open = function () { alert('Isolated World'); }\n" > - "document.open(1, 2, 3);"; > + "alert('Isolated World');";
I'm not sure this is testing what we want, running this alert in the main world would still show an alert with the text 'Isolated World'. Here we were testing that property open of window can be set in an isolated world and it can be used, without affecting the normal world. Maybe we can simply keep the window.open line but use window open directly instead of document.open?
Carlos Garcia Campos
Comment 11
2017-08-28 02:38:19 PDT
Comment on
attachment 318865
[details]
Patch Sorry, I used the wrong r flag. r- because I don't think the test is correct.
Ms2ger (he/him; ⌚ UTC+1/+2)
Comment 12
2017-08-28 03:54:21 PDT
Created
attachment 319173
[details]
Patch
Carlos Garcia Campos
Comment 13
2017-08-28 04:17:00 PDT
Comment on
attachment 319173
[details]
Patch Thanks!
WebKit Commit Bot
Comment 14
2017-08-28 04:46:18 PDT
Comment on
attachment 319173
[details]
Patch Clearing flags on attachment: 319173 Committed
r221240
: <
http://trac.webkit.org/changeset/221240
>
WebKit Commit Bot
Comment 15
2017-08-28 04:46:19 PDT
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.
Top of Page
Format For Printing
XML
Clone This Bug