WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
61474
WebKit2: Status bar, toolbar, and menu bar checks should be in the injected bundle
https://bugs.webkit.org/show_bug.cgi?id=61474
Summary
WebKit2: Status bar, toolbar, and menu bar checks should be in the injected b...
Brian Weinstein
Reported
2011-05-25 15:14:36 PDT
The status bar visibility check should be in the injected bundle, it shouldn't require a synchronous message from the WebProcess -> UIProcess. <
rdar://problem/9468337
>
Attachments
[PATCH] Fix
(6.12 KB, patch)
2011-05-25 15:31 PDT
,
Brian Weinstein
sam
: review-
Details
Formatted Diff
Diff
[PATCH] Fix v2 (no other methods)
(6.86 KB, patch)
2011-05-25 17:24 PDT
,
Brian Weinstein
no flags
Details
Formatted Diff
Diff
[PATCH] Fix v3
(9.23 KB, patch)
2011-05-25 18:49 PDT
,
Brian Weinstein
aroben
: review-
Details
Formatted Diff
Diff
[PATCH] Fix v4
(9.41 KB, patch)
2011-05-26 12:29 PDT
,
Brian Weinstein
aroben
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Brian Weinstein
Comment 1
2011-05-25 15:31:08 PDT
Created
attachment 94871
[details]
[PATCH] Fix
Sam Weinig
Comment 2
2011-05-25 16:27:01 PDT
Comment on
attachment 94871
[details]
[PATCH] Fix This will never send the GetStatusBarIsVisible message anymore. The client function you added needs to support passthrough like the bundle policy client functions. We also should be doing this for all the similar functions.
Brian Weinstein
Comment 3
2011-05-25 16:38:21 PDT
(In reply to
comment #2
)
> (From update of
attachment 94871
[details]
) > This will never send the GetStatusBarIsVisible message anymore. The client function you added needs to support passthrough like the bundle policy client functions.
I didn't know I needed to send the GetStatusBarIsVisibile message. What do you mean by supporting passthrough? Are there any examples of this?
> We also should be doing this for all the similar functions.
Which similar functions did you mean? I see toolbarsVisible and menubarVisible, is that what you mean?
Brian Weinstein
Comment 4
2011-05-25 17:24:58 PDT
Created
attachment 94885
[details]
[PATCH] Fix v2 (no other methods) This patch doesn't do the other methods, just making sure it is on the right track.
Brian Weinstein
Comment 5
2011-05-25 18:49:41 PDT
Created
attachment 94900
[details]
[PATCH] Fix v3
Adam Roben (:aroben)
Comment 6
2011-05-26 11:29:59 PDT
Comment on
attachment 94900
[details]
[PATCH] Fix v3 View in context:
https://bugs.webkit.org/attachment.cgi?id=94900&action=review
Did you make sure you don't need to modify MiniBrowser or You need to modify MiniBrowser or qwkpage.cpp?
> Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h:179 > +enum { > + WKBundlePageUIBooleanPassThrough, > + WKBundlePageUIBooleanTrue, > + WKBundlePageUIBooleanFalse > +}; > +typedef uint32_t WKBundlePageUIBoolean;
Calling this a "boolean" feels a little weird. Booleans usually only have two states! Maybe something a little less generic would work better, like: enum { WKBundlePageUIElementVisibilityUnknown, WKBundlePageUIElementVisible, WKBundlePageUIElementHidden, }; typedef uint32_t WKBundlePageUIElementVisibility;
Brian Weinstein
Comment 7
2011-05-26 12:04:58 PDT
(In reply to
comment #6
)
> (From update of
attachment 94900
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=94900&action=review
> > Did you make sure you don't need to modify MiniBrowser or You need to modify MiniBrowser or qwkpage.cpp?
Minibrowser built on my machine, and qwkpage.cpp doesn't have anything about the injected bundle page UI client (Qt EWS was fine as well).
> > > Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.h:179 > > +enum { > > + WKBundlePageUIBooleanPassThrough, > > + WKBundlePageUIBooleanTrue, > > + WKBundlePageUIBooleanFalse > > +}; > > +typedef uint32_t WKBundlePageUIBoolean; > > Calling this a "boolean" feels a little weird. Booleans usually only have two states! Maybe something a little less generic would work better, like: > > enum { > WKBundlePageUIElementVisibilityUnknown, > WKBundlePageUIElementVisible, > WKBundlePageUIElementHidden, > }; > typedef uint32_t WKBundlePageUIElementVisibility;
I do like this better. I will switch over to using this.
Brian Weinstein
Comment 8
2011-05-26 12:29:48 PDT
Created
attachment 95021
[details]
[PATCH] Fix v4
Adam Roben (:aroben)
Comment 9
2011-05-26 12:31:12 PDT
Comment on
attachment 95021
[details]
[PATCH] Fix v4 View in context:
https://bugs.webkit.org/attachment.cgi?id=95021&action=review
> Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp:201 > + WKBundlePageUIElementVisibility toolbarsVisible = m_page->injectedBundleUIClient().toolbarsAreVisible(m_page);
I'd call the variable toolbarsVisibility, instead of toolbarsVisible. (Ditto for the other local variables you added in this patch.)
Brian Weinstein
Comment 10
2011-05-26 12:54:10 PDT
Landed in
r87421
.
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