Closed Bug 905088 Opened 11 years ago Closed 11 years ago

Properly handle default URL in enterEditingMode

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 26

People

(Reporter: lucasr, Assigned: lucasr)

References

Details

(Whiteboard: [fixed-fig])

Attachments

(1 file)

Passing null on the param-less version is not exactly correct. Default value handling should be handled there. null URL param is an invalid call and should throw.
Attachment #790119 - Flags: review?(michael.l.comella)
Comment on attachment 790119 [details] [diff] [review]
Properly handle default URL on BrowserApp's enterEditingMode

Review of attachment 790119 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM.

::: mobile/android/base/BrowserApp.java
@@ +1367,5 @@
>  
>      private void enterEditingMode() {
> +        String url = null;
> +
> +        Tab tab = Tabs.getInstance().getSelectedTab();

nit: I'm not sure what our policy is on the "final" keyword but...

final Tab tab = ...
Attachment #790119 - Flags: review?(michael.l.comella) → review+
(In reply to Michael Comella (:mcomella) from comment #2)
> Comment on attachment 790119 [details] [diff] [review]
> Properly handle default URL on BrowserApp's enterEditingMode
> 
> Review of attachment 790119 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> LGTM.
> 
> ::: mobile/android/base/BrowserApp.java
> @@ +1367,5 @@
> >  
> >      private void enterEditingMode() {
> > +        String url = null;
> > +
> > +        Tab tab = Tabs.getInstance().getSelectedTab();
> 
> nit: I'm not sure what our policy is on the "final" keyword but...
> 
> final Tab tab = ...

Nice catch, done.
Pushed: http://hg.mozilla.org/projects/fig/rev/3eb68df2a650
Whiteboard: [fixed-fig]
https://hg.mozilla.org/mozilla-central/rev/3eb68df2a650
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Depends on: 911295
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: