Closed
Bug 1016343
Opened 10 years ago
Closed 10 years ago
Add reload method to toolbars.js/locationBar class
Categories
(Mozilla QA Graveyard :: Mozmill Tests, defect)
Tracking
(firefox31 fixed, firefox32 fixed, firefox33 fixed)
RESOLVED
FIXED
People
(Reporter: danisielm, Assigned: danisielm)
References
()
Details
(Whiteboard: [mentor=andrei.eftimie][lang=js])
Attachments
(1 file, 4 obsolete files)
3.60 KB,
patch
|
andrei
:
review+
andrei
:
checkin+
|
Details | Diff | Splinter Review |
Let's add a reload method to the LocationBar class in firefox/lib/toolbars.js. This will make our tests more understandable when we only want to reload the current page.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8429246 -
Flags: review?(andrei.eftimie)
Attachment #8429246 -
Flags: review?(andreea.matei)
Comment 2•10 years ago
|
||
Comment on attachment 8429246 [details] [diff] [review] add-reload-method.patch Review of attachment 8429246 [details] [diff] [review]: ----------------------------------------------------------------- Good to have this functionality. Thanks for filing the bug and coming up with a patch. This looks good to me. Just a couple of nits mentioned inline. Please request a review from Henrik with those fixed. ::: firefox/lib/toolbars.js @@ +604,5 @@ > this.type(url); > this._controller.keypress(this.urlbar, "VK_RETURN", {}); > }, > > + /** nit: indentation @@ +607,5 @@ > > + /** > + * Reload page > + * > + * @param {Object} aSpec nit: native types should be lowercase @@ +616,5 @@ > + * Value if the reload will be forced > + */ > + reload : function locationBar_reload(aSpec) { > + var spec = aSpec || {}; > + var type = spec.aEventType || "shortcut"; You don't have to prefix argument properties with "a".
Attachment #8429246 -
Flags: review?(andrei.eftimie)
Attachment #8429246 -
Flags: review?(andreea.matei)
Attachment #8429246 -
Flags: review-
Assignee | ||
Comment 3•10 years ago
|
||
Thanks Andrei! Henrik, can you have a look ?
Attachment #8429246 -
Attachment is obsolete: true
Attachment #8429873 -
Flags: review?(hskupin)
Comment 4•10 years ago
|
||
Comment on attachment 8429873 [details] [diff] [review] add-reload-method_v2.patch Review of attachment 8429873 [details] [diff] [review]: ----------------------------------------------------------------- While this looks mostly fine, I would like to see where we can already make use of this method. I'm sure we have some cases when we are reloading a page. Changing that will prove that the new method works. r- because of the remaining things to fix. ::: firefox/lib/toolbars.js @@ +605,5 @@ > this._controller.keypress(this.urlbar, "VK_RETURN", {}); > }, > > /** > + * Reload page Better descriptions please like 'Reload the currently open web page'. @@ +623,5 @@ > + > + switch (type) { > + case "button": > + var reloadButton = this.getElement({type: "reloadButton"}); > + reloadButton.click(); This doesn't take the force reload parameter into account.
Attachment #8429873 -
Flags: review?(hskupin) → review-
Assignee | ||
Comment 5•10 years ago
|
||
Updated & changed the lib/tests/testToolbar.js file to test the functionality. We can file a new _good first bug_ to replace in tests code with this method.
Attachment #8429873 -
Attachment is obsolete: true
Attachment #8430775 -
Flags: review?(andrei.eftimie)
Attachment #8430775 -
Flags: review?(andreea.matei)
Assignee | ||
Comment 6•10 years ago
|
||
Some issues with the latest patch.
Attachment #8430775 -
Attachment is obsolete: true
Attachment #8430775 -
Flags: review?(andrei.eftimie)
Attachment #8430775 -
Flags: review?(andreea.matei)
Attachment #8430779 -
Flags: review?(andrei.eftimie)
Attachment #8430779 -
Flags: review?(andreea.matei)
Comment 7•10 years ago
|
||
Comment on attachment 8430779 [details] [diff] [review] add-reload-method_v3.1.patch Review of attachment 8430779 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. Just one thing, it would be great to use a local page. With that I'd happily land this. Thanks Daniel. ::: firefox/lib/tests/testToolbar.js @@ +6,5 @@ > var {expect} = require("../../../lib/assertions"); > var toolbars = require("../toolbars"); > var utils = require("../utils"); > > +const TEST_DATA = "http://www.mozilla.org/en-US/about/contact"; Can we use a local page here?
Attachment #8430779 -
Flags: review?(andrei.eftimie)
Attachment #8430779 -
Flags: review?(andreea.matei)
Attachment #8430779 -
Flags: review-
Assignee | ||
Comment 8•10 years ago
|
||
Done that!
Attachment #8430779 -
Attachment is obsolete: true
Attachment #8431365 -
Flags: review?(andrei.eftimie)
Comment 9•10 years ago
|
||
Comment on attachment 8431365 [details] [diff] [review] add-reload-method_v3.2.patch Review of attachment 8431365 [details] [diff] [review]: ----------------------------------------------------------------- Landed: http://hg.mozilla.org/qa/mozmill-tests/rev/a744c9f019de (default)
Attachment #8431365 -
Flags: review?(andrei.eftimie)
Attachment #8431365 -
Flags: review+
Attachment #8431365 -
Flags: checkin+
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox32:
--- → fixed
Resolution: --- → FIXED
Comment 10•10 years ago
|
||
Let's get this into mozilla-beta for bug 1008913
Status: RESOLVED → REOPENED
status-firefox31:
--- → affected
status-firefox33:
--- → fixed
Resolution: FIXED → ---
Comment 11•10 years ago
|
||
Transplanted: https://hg.mozilla.org/qa/mozmill-tests/rev/2a0e48a85541 (mozilla-beta) --Ran without problems-- Functional: http://mozmill-crowd.blargon7.com/#/functional/report/883d8406dab55a771a00934158bc363c Remote: http://mozmill-crowd.blargon7.com/#/remote/report/883d8406dab55a771a00934158bbcbe3
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•