Commit Graph

11103 Commits

Author SHA1 Message Date
Benjamin Smedberg
a06eadfd26 Bug 586350 - Updates to the 08/11 nightly don't work because it's removing the root chrome.manifest. Also clean up other now-unneeded files. r=robstrong a=dougt 2010-08-11 15:29:23 -04:00
Andres Hernandez
2c9a2d5ce0 Bug 578873 - Feedback item disappears in menu when the TP panel is open; r=dtownsend approval2.0=dtownsend 2010-08-11 10:11:37 -07:00
Jono S Xia
bc15b11dc4 Bug 580486 - Allow getting back to a web survey in-case it wasn't submitted; r=dtownsend approval2.0=dtownsend 2010-08-11 10:09:58 -07:00
Andres Hernandez
8945cadb22 Bug 579906 - Feedback button does not play well with personas; r=dtownsend approval2.0=dtownsend 2010-08-11 10:08:57 -07:00
Edward Lee
ae84bde8a9 Bug 582023 - Land TabCandy Utility Code (utils.jsm, iq.js) [r=dao a=npotb] 2010-08-11 10:28:06 -07:00
Michael Yoshitaka Erlewine
907d28a252 Bug 582023: making changes requested by Dao. Now iQ + Utils are ready for m-c with r=dao! 2010-08-11 13:06:49 -04:00
Robert Kaiser
6c816884ba bug 570788 - Incorporate improvements from SeaMonkey places review into Firefox code, round 4 (tree), r=mak a=gavin 2010-08-11 18:05:10 +02:00
Robert Kaiser
a96635422e bug 570788 - Incorporate improvements from SeaMonkey places review into Firefox code, round 3 (PUIU, PC, sbUtils), r=mak a=gavin 2010-08-11 18:05:08 +02:00
Benjamin Smedberg
6c2eb3acea Back out all of dgottwald's push from Wed Aug 11 05:04:25 2010 PDT because the tree is in a state of chaos and the push was obviously against tree rules. 2010-08-11 09:00:33 -04:00
Dão Gottwald
023fed8326 Bug 586114 - Consolidate toolbox bottom border styling. r=mano 2010-08-11 14:03:44 +02:00
Dão Gottwald
a9cb9079f4 Bug 585021 - Animate when opening the Home page in a new tab. r=gavin 2010-08-11 14:03:26 +02:00
Dão Gottwald
614ec4a44c Bug 585361 - Handle requests for synchronously removing an already asynchronously closing tab. r=gavin 2010-08-11 14:02:49 +02:00
Dão Gottwald
83666a4b0d Bug 583745 - Adjust toolbar gradients for when the navbar is hidden. r=mano 2010-08-11 14:02:02 +02:00
Doug Turner
fc5141bdf6 Merge from e10s clone. a=dougt 2010-08-10 18:33:38 -07:00
Ian Gilman
6d08603c79 + addressing dao's comments in iQ
--HG--
extra : rebase_source : 9fd229f468514fb08326fe292434de45e6167bfb
2010-08-10 16:31:12 -07:00
Michael Yoshitaka Erlewine
8a238ad491 Bug 582023 cleanup based on comments from Dao on things that are not iQ:
- typeof() is not a function
- formatting of && and || at the end of the line
- declaring variables more locally using let in Utils.extend
- the Initial Developer is the Mozilla Foundation

--HG--
extra : rebase_source : d1f9699fb0014c95e336c34d777ce354b141739a
2010-08-10 19:20:05 -04:00
Ian Gilman
092e9e0518 + reversed the argument order for Utils.assert and Utils.assertThrow, per Dao's review 2010-08-10 11:13:10 -07:00
Michael Yoshitaka Erlewine
28ede2d5b5 Bug 582023: rm Utils.timeout 2010-08-10 09:30:23 -04:00
Michael Yoshitaka Erlewine
8f13a531dd Bug 582023: move to use getBoundingClientRect instead of reading off the computed CSS for bounds; simplify getPropertyValue usage (based on comments from Dao) 2010-08-10 09:22:38 -04:00
Ian Gilman
2179aaadf5 + Made the Groups.killNewTabGroup test a little tighter (in case someone has made a group called "new tabs")
+ Worked around bug 575672 (CSS transition assert)

--HG--
extra : rebase_source : 6f758e737c2092214ec3185be847f2c5da406be0
2010-08-09 14:57:34 -07:00
Michael Yoshitaka Erlewine
2c057d4787 Bug 584699: quick fix to -moz-transform rendering bug
--HG--
extra : rebase_source : 89019c5a0acff884ab47f18b96503435c6a56e7e
2010-08-09 00:06:54 -04:00
Edward Lee
1564fa3521 Remove unnecessary try/catch wrapping around a timeout-ed call.
--HG--
extra : rebase_source : 3b608473ff899668acea4e0e6964734c9db4d01d
2010-08-06 17:16:28 -07:00
Aza Raskin
dbcf0436f6 + Also includes the jQuery inclusion text with utils.js 2010-08-02 13:38:29 -07:00
Aza Raskin
e8ac503426 + Updated the iQ license block as specified in https://bugzilla.mozilla.org/show_bug.cgi?id=582025 2010-08-02 13:29:46 -07:00
Michael Wu
ab347cf3c6 Bug 556644 - 3. Let the browser reset bookmarks from the omnijar, r=sdwilsh sr=vlad a=blocking2.0 2010-08-10 15:15:26 -07:00
Raymond Lee
8d11361d0a Remove extra spaces inside () and add spacing for before { bracket 2010-07-30 17:54:30 +08:00
Ian Gilman
ac81876e0c + Improved startup sequence: don't do anything until sessionstore is available, and then do only minimal work if we're not loading directly into the UI; most setup now happens when we first show the UI. Known issue: tabs aren't set up properly in the tab bar until after you go to the UI once.
+ fixed our use of undefined in iq.js
+ more tabItems cleanup, including removing a stray call to the now non-existent TabCanvas.detach()
+ "Group sites" no longer makes a "mixed" group if it would be empty
2010-07-29 17:23:49 -07:00
Edward Lee
2e67d4d8fc Just use instanceof Ci.nsIDOMElement for Utils.isDOMElement for bug 582023. 2010-07-29 13:15:21 -07:00
Edward Lee
183c85bc14 Simplify Utils.merge to use Array.forEach and Array.push for bug 582023. 2010-07-29 13:02:51 -07:00
Edward Lee
88ef92422f Bug 583044 - Rename code references of TabCandy to TabView
Move files and update references to tabview from tabcandy. Only remaining candy reference is the link to aza's webm video.
2010-07-29 12:37:25 -07:00
Edward Lee
411897722b Move utils.js into a javascript module that exports Point, Rect, Range, Subscribable, and Utils for bug 582023.
--HG--
extra : rebase_source : 8fea0b5439bcc45464f029609ff125e284b74731
2010-07-28 22:21:34 -07:00
Michael Yoshitaka Erlewine
d876852546 Bug 582023: rm iQ.get, as we were only using it in one way. 2010-07-28 23:02:26 -06:00
Edward Lee
36a978e234 Move lazy gWindow, gBrowser, etc into tabcandy.js out of utils.js for bug 582023. 2010-07-28 21:56:31 -07:00
Edward Lee
ee7d279fa2 Clean up spaces around (), [], , in iq and utils for bug 577968. 2010-07-28 21:40:55 -07:00
Michael Yoshitaka Erlewine
63327c73ad Bug 582023: iQ changes based on comments from gavin
- let is the new var, no multiple declarations on the same line.
- renamed iQ.fn.init to be iQClass, iQ.fn to be iQClass.prototype, to look much more normal. iQ now just creates a new iQClass. No more brain hurt.
- no more (function(){...}) closure
- Array.prototype.xxx.call replaced by Array.xxx
- a couple other changes recommended by gavin.
- Utils: rm some comments, but haven't touched JSM, isDOMElement, or merge.
2010-07-28 21:33:43 -06:00
Edward Lee
1a7dd60f69 Bug 584532 - Land Tabs module to get Tab* events from any window [r=dao] 2010-08-10 03:24:45 -07:00
Edward Lee
9a3e72dd17 Address review comments from bug 584532 comment 18: !listeners, event.target, observers function. 2010-08-10 03:05:10 -07:00
Edward Lee
3151daddfb Move private variables/methods into local declarations not exported by AllTabs and change the interface to .register("change") instead of .onChange() for bug 584532.
--HG--
extra : rebase_source : 267110a1a1dd8cc8d4188f20285d688b2b901aa1
2010-08-09 17:19:04 -07:00
Edward Lee
b9dfc5a60b Prepare for bug 584532 by renaming Tabs and T -> AllTabs, allTabs -> tabs, browsers -> browserWindows, and removing QI(nsIObserver).
--HG--
extra : rebase_source : 1eedbcbdbda0895f12170f93c55b6946612d8819
2010-08-06 15:19:57 -07:00
Frank Yan
50ce1d5cfb Bug 582200: rm cross-browser code from iQ, follow Mozilla style better, r=mitcho 2010-07-27 10:07:17 -06:00
Ian Gilman
0825b66dee + We now do no work while the script is loading; everything waits until the UI.init() call at the very bottom
--HG--
extra : rebase_source : 301788f78500bfe57512b0df396cb6be2ca8a02f
2010-07-26 17:15:19 -07:00
Edward Lee
b6e2f7c7f7 Switch to Array.isArray from Utils.isArray. 2010-07-26 11:02:52 -07:00
Edward Lee
dc99f60010 Inline isFunction as typeof == function checks. 2010-07-23 19:29:32 -07:00
Michael Yoshitaka Erlewine
0de35204dc Utils + iQ cleanup!
- utility functions in iQ have been moved to Utils: isFunction, isArray, isPlainObject, isEmptyObject, merge, extend, timeout
- iQ depends on Utils. Utils no longer depends on iQ.
- simplified Utils.extend. Deep copy is no longer supported, nor is extending iQ and iQ.fn using extend. They were not being used.

--HG--
extra : rebase_source : ab8f86e4e6a65cb747bc79ae0aa36cb39819421a
2010-07-23 17:33:02 -04:00
Edward Lee
7a146e662d Followup bug 580870 to rename gTabDeck/gTabFrame to gTabView*. 2010-07-22 22:41:58 -07:00
Michael Yoshitaka Erlewine
613b2fbeb5 Rewrote various scaling/easing functions in terms of the Range's, with the new proportion and scale methods.
- removed Math.tanh, instead moving it into the Range proportion method for its "smooth" option
+ rewrote TabItem close button opacity and title font size using the new Range utilities. Should make code a tad easier to follow.
2010-07-23 00:35:07 -04:00
Michael Yoshitaka Erlewine
318e64a28f Bug 581143: Cleanup geometry utilities in utils.js
1. Move isRect, isPoint, isRange to Utils, to facilitate JSMing and to clean up
namespace
2. Remove unused/underutilized methods of Rect/Point/Range
3. Use QuickDraw-style comparison of pixel overlap (using < instead of <=)
throughout.
4. Range.overlaps is now Range.contains, to be more consistent with Rect.

--HG--
extra : rebase_source : cc3507bb3bbe92f922d3147cc9130c1f713391b2
2010-07-22 15:46:51 -04:00
Michael Yoshitaka Erlewine
c36ae7ac65 Bug 580878: removing some underutilized Utils functions: getMilliseconds, and testLogging
--HG--
extra : rebase_source : 28ff49903f395240a3aca3b3761c7638ee6d4b7d
2010-07-22 15:42:29 -04:00
Edward Lee
9270bfd798 Bug 581078 - Get rid of Utils.activeTab to avoid iterating over all Tabs
Directly access gBrowser.selectedTab and compare other raw tabs against it until BrowserTab goes away. Get the reference to the BrowserTab instead of iterating over Tabs through .tabcandyBrowserTab.
2010-07-22 12:36:17 -07:00
Edward Lee
52718c79e9 Bug 580952 - Expose an Tabs module that handles tabs from all browser windows
Replace the existing Tabs/TabsManager object with the Tabs module that exposes allTabs, onChange, onClose, onMove, onOpen, onSelect.
2010-07-22 12:35:11 -07:00