Bug 86466 - Web Inspector: AdvancedSearchController is not stopped then view is hidden.
Summary: Web Inspector: AdvancedSearchController is not stopped then view is hidden.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: eustas.bug
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-15 04:48 PDT by eustas.bug
Modified: 2012-10-12 04:04 PDT (History)
12 users (show)

See Also:


Attachments
Patch (1.48 KB, patch)
2012-05-15 04:53 PDT, eustas.bug
vsevik: review+
Details | Formatted Diff | Diff
Patch (1.48 KB, patch)
2012-05-15 06:27 PDT, eustas.bug
no flags Details | Formatted Diff | Diff
Patch (1.42 KB, patch)
2012-05-15 07:35 PDT, eustas.bug
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eustas.bug 2012-05-15 04:48:23 PDT
AdvancedSearchController overrides "wasHidden" method instead on "willHide".
Comment 1 eustas.bug 2012-05-15 04:53:36 PDT
Created attachment 141918 [details]
Patch
Comment 2 Vsevolod Vlasov 2012-05-15 05:13:44 PDT
Comment on attachment 141918 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=141918&action=review

> Source/WebCore/ChangeLog:6
> +        AdvancedSearchController overrides "wasHidden" method instead of "willHide".

Please move this line below "Reviewed by".

> Source/WebCore/inspector/front-end/AdvancedSearchController.js:360
> +     * @override

We don't use @overrride annotation because it does not catch any error (try renaming back to wasHidden and observe no compiler errors).
Comment 3 eustas.bug 2012-05-15 06:15:57 PDT
Comment on attachment 141918 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=141918&action=review

>> Source/WebCore/inspector/front-end/AdvancedSearchController.js:360
>> +     * @override
> 
> We don't use @overrride annotation because it does not catch any error (try renaming back to wasHidden and observe no compiler errors).

I've tried it before writing this annotation.
Compiler doesn't catch this error, that's no good. But we can hope it will do some day.

BUT this annotation not only for compiler, but also for developers, because it make code a way core clear.
Comment 4 eustas.bug 2012-05-15 06:20:12 PDT
Comment on attachment 141918 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=141918&action=review

>> Source/WebCore/ChangeLog:6
>> +        AdvancedSearchController overrides "wasHidden" method instead of "willHide".
> 
> Please move this line below "Reviewed by".

OK
Comment 5 eustas.bug 2012-05-15 06:27:52 PDT
Created attachment 141948 [details]
Patch
Comment 6 Vsevolod Vlasov 2012-05-15 06:45:25 PDT
Comment on attachment 141918 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=141918&action=review

>>> Source/WebCore/inspector/front-end/AdvancedSearchController.js:360
>>> +     * @override
>> 
>> We don't use @overrride annotation because it does not catch any error (try renaming back to wasHidden and observe no compiler errors).
> 
> I've tried it before writing this annotation.
> Compiler doesn't catch this error, that's no good. But we can hope it will do some day.
> 
> BUT this annotation not only for compiler, but also for developers, because it make code a way core clear.

I don't think we should add compiler annotations for developers. We don't even add comments usually.
Please remove this for consistency.
Comment 7 eustas.bug 2012-05-15 07:35:20 PDT
Created attachment 141966 [details]
Patch
Comment 8 WebKit Review Bot 2012-05-15 09:12:21 PDT
Comment on attachment 141966 [details]
Patch

Clearing flags on attachment: 141966

Committed r117080: <http://trac.webkit.org/changeset/117080>
Comment 9 WebKit Review Bot 2012-05-15 09:12:26 PDT
All reviewed patches have been landed.  Closing bug.