Bug 108747 - [GTK] inspector-protocol/page/javascriptDialogEvents.html is failing
Summary: [GTK] inspector-protocol/page/javascriptDialogEvents.html is failing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kwang Yul Seo
URL:
Keywords: Gtk, LayoutTestFailure
Depends on:
Blocks:
 
Reported: 2013-02-02 01:09 PST by Zan Dobersek
Modified: 2023-01-25 19:29 PST (History)
4 users (show)

See Also:


Attachments
Patch (9.87 KB, patch)
2013-02-07 04:19 PST, Kwang Yul Seo
gustavo: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2013-02-02 01:09:56 PST
Diff:

--- /home/slave/webkitgtk/gtk-linux-64-release/build/layout-test-results/inspector-protocol/page/javascriptDialogEvents-expected.txt
+++ /home/slave/webkitgtk/gtk-linux-64-release/build/layout-test-results/inspector-protocol/page/javascriptDialogEvents-actual.txt
@@ -1,4 +1,4 @@
-CONFIRM NAVIGATION: beforeunload
+CONFIRM: beforeunload
 ALERT: alert
 CONFIRM: confirm
 PROMPT: prompt, default text: 

There's probably an unimplemented functionality in DRT that's making this test fail.
Comment 1 Kwang Yul Seo 2013-02-07 04:19:49 PST
Created attachment 187059 [details]
Patch
Comment 2 WebKit Review Bot 2013-02-07 04:22:27 PST
Attachment 187059 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/platform/gtk/TestExpectations', u'Source/WebKit/gtk/ChangeLog', u'Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp', u'Source/WebKit/gtk/webkit/webkitwebview.cpp', u'Source/WebKit/gtk/webkit/webkitwebview.h', u'Tools/ChangeLog', u'Tools/DumpRenderTree/gtk/DumpRenderTree.cpp']" exit_code: 1
Tools/DumpRenderTree/gtk/DumpRenderTree.cpp:1424:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Source/WebKit/gtk/webkit/webkitwebview.h:158:  Extra space between WebKitWebFrame and *frame  [whitespace/declaration] [3]
Source/WebKit/gtk/webkit/webkitwebview.h:158:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Source/WebKit/gtk/webkit/webkitwebview.h:159:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Source/WebKit/gtk/webkit/webkitwebview.h:160:  Extra space between gboolean and *did_confirm  [whitespace/declaration] [3]
Source/WebKit/gtk/webkit/webkitwebview.h:160:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Source/WebKit/gtk/webkit/webkitwebview.cpp:2303:  When wrapping a line, only indent 4 spaces.  [whitespace/indent] [3]
Total errors found: 7 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Kwang Yul Seo 2013-02-07 04:52:35 PST
(In reply to comment #2)
> If any of these errors are false positives, please file a bug against check-webkit-style.

Can I disable style checks for WebKitGKT+ specific files?
Comment 4 Kwang Yul Seo 2013-02-07 21:08:19 PST
mrobinson, as we talked over the IRC, this patch exposes a new signal, "before-unload-confirm" to the WebKitGTK+ public API. 

As you know, the current WebKitGTK+ does not make a distinction between "before-unload-confirm" and "script-confirm", and use "script-confirm" for both cases. This is problematic here because TestRunner handles them differently. To pass inspector-protocol/page/javascriptDialogEvents.html, we need to add "before-unload-confirm".

IMHO, it seems this small API change (adding a signal) is harmless for most existing WebKitGTK+-based browsers and applications because the default signal handler is still the same (showing a modal dialog). 

However, I do understand that WebKit1 GTK is in maintenance mode and we are reluctant to change. This helps solving my problem in fixing our legacy browser, but it not absolutely necessary. So the judge is on your side. Please let me know your final decision :)
Comment 5 Gustavo Noronha (kov) 2014-12-06 09:09:48 PST
Comment on attachment 187059 [details]
Patch

We don't have a WebKit1 port anymore. Is this an issue for WebKit2GTK+ as well, Zan?
Comment 6 Diego Pino 2023-01-25 19:29:04 PST
There are no references to this bug in any TestExpectations. It's probable this bug was solved at some point but it wasn't marked as closed. I'm closing this bug now. If you think this bug report is still valid, please reopen it and add an entry to TestExpectations.