WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
146249
Update JavaScript dialog delegates to include a WKSecurityOriginRef argument
https://bugs.webkit.org/show_bug.cgi?id=146249
Summary
Update JavaScript dialog delegates to include a WKSecurityOriginRef argument
Brady Eidson
Reported
2015-06-23 14:40:01 PDT
Update JavaScript dialog delegates to include a WKSecurityOriginRef argument. This is the C-SPI version of
https://bugs.webkit.org/show_bug.cgi?id=146162
In radar as
rdar://problem/21269187
Attachments
Patch v1
(33.47 KB, patch)
2015-06-23 14:44 PDT
,
Brady Eidson
achristensen
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2015-06-23 14:44:25 PDT
Created
attachment 255437
[details]
Patch v1
WebKit Commit Bot
Comment 2
2015-06-23 14:46:34 PDT
Attachment 255437
[details]
did not pass style-queue: ERROR: Source/WebKit2/UIProcess/API/C/WKPage.cpp:1411: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/API/C/WKPage.cpp:1427: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit2/UIProcess/API/C/WKPage.cpp:1444: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 3 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alex Christensen
Comment 3
2015-06-23 16:13:10 PDT
Comment on
attachment 255437
[details]
Patch v1 View in context:
https://bugs.webkit.org/attachment.cgi?id=255437&action=review
> Source/WebKit2/UIProcess/API/C/WKPageUIClient.h:121 > + WKPageRunJavaScriptAlertCallback_deprecatedForUseWithV5 runJavaScriptAlert_deprecatedForUseWithV5; > + WKPageRunJavaScriptConfirmCallback_deprecatedForUseWithV5 runJavaScriptConfirm_deprecatedForUseWithV5; > + WKPageRunJavaScriptPromptCallback_deprecatedForUseWithV5 runJavaScriptPrompt_deprecatedForUseWithV5;
You shouldn't need to change the name of V0-V4 and the unnamed one, right?
> Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp:60 > + uiClient.runJavaScriptAlert_deprecatedForUseWithV5 = runJavaScriptAlert;
otter (ditto to a later comment)
> Tools/TestWebKitAPI/Tests/mac/FullscreenZoomInitialFrame.mm:115 > + uiClient.runJavaScriptAlert_deprecatedForUseWithV5 = runJavaScriptAlert;
Please change the name of the function, too. Line 60. That will avoid lots of confusion.
> Tools/TestWebKitAPI/Tests/mac/PageVisibilityStateWithWindowChanges.mm:102 > + uiClient.runJavaScriptAlert_deprecatedForUseWithV5 = runJavaScriptAlert;
ditto.
Brady Eidson
Comment 4
2015-06-23 17:06:50 PDT
(In reply to
comment #3
)
> Comment on
attachment 255437
[details]
> Patch v1 > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=255437&action=review
> > > Source/WebKit2/UIProcess/API/C/WKPageUIClient.h:121 > > + WKPageRunJavaScriptAlertCallback_deprecatedForUseWithV5 runJavaScriptAlert_deprecatedForUseWithV5; > > + WKPageRunJavaScriptConfirmCallback_deprecatedForUseWithV5 runJavaScriptConfirm_deprecatedForUseWithV5; > > + WKPageRunJavaScriptPromptCallback_deprecatedForUseWithV5 runJavaScriptPrompt_deprecatedForUseWithV5; > > You shouldn't need to change the name of V0-V4 and the unnamed one, right?
That's actually not right - We change the name in earlier versions. But this did make me realize ForUseWithV5 is wrong - It's ForUseWithV0, as we tag with the first version the method originally appeared in.
> > > Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp:60 > > + uiClient.runJavaScriptAlert_deprecatedForUseWithV5 = runJavaScriptAlert; > > otter (ditto to a later comment) > > > Tools/TestWebKitAPI/Tests/mac/FullscreenZoomInitialFrame.mm:115 > > + uiClient.runJavaScriptAlert_deprecatedForUseWithV5 = runJavaScriptAlert; > > Please change the name of the function, too. Line 60. That will avoid lots > of confusion. > > > Tools/TestWebKitAPI/Tests/mac/PageVisibilityStateWithWindowChanges.mm:102 > > + uiClient.runJavaScriptAlert_deprecatedForUseWithV5 = runJavaScriptAlert; > > ditto.
Will do, thanks!
Brady Eidson
Comment 5
2015-06-24 09:59:04 PDT
http://trac.webkit.org/changeset/185915
mitz
Comment 6
2015-06-28 08:32:48 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > Comment on
attachment 255437
[details]
> > Patch v1 > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=255437&action=review
> > > > > Source/WebKit2/UIProcess/API/C/WKPageUIClient.h:121 > > > + WKPageRunJavaScriptAlertCallback_deprecatedForUseWithV5 runJavaScriptAlert_deprecatedForUseWithV5; > > > + WKPageRunJavaScriptConfirmCallback_deprecatedForUseWithV5 runJavaScriptConfirm_deprecatedForUseWithV5; > > > + WKPageRunJavaScriptPromptCallback_deprecatedForUseWithV5 runJavaScriptPrompt_deprecatedForUseWithV5; > > > > You shouldn't need to change the name of V0-V4 and the unnamed one, right? > > That's actually not right - We change the name in earlier versions.
The goes back to when we intended for clients to be using the “current” version of the clients. Now the clients are using specific versions, there is no reason to introduce a source incompatibility like this. Filed
bug 146396
.
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