Commit Graph
43 Commits
Author SHA1 Message Date
Kyle Machulis 4dae9895ed Bug 1403795 - Remove nsIDOMHTMLButtonElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLButtonElement, replacing it
with binding class usage.

MozReview-Commit-ID: CzqRb7lI28W
2017-09-29 11:57:19 -07:00
Jim Chen 0b6141761d Bug 1400886 - Change BrowserCLH subscripts into modules; r=snorp
Change the subscripts (e.g. FormAssistant.js) that we load in BrowserCLH
into proper .jsm modules. This avoids the `defineLazyScriptGetter`
incompatibility mentioned in the bug, and when we turn on shared JSM
global, any memory advantage we get from using subscripts should not
matter anymore.

MozReview-Commit-ID: krSwANdtb5
2017-09-19 14:57:32 -04:00
Jim Chen fc2ba05a61 Bug 1367079 - 6. Fix testAccessibleCarets; r=me
Fix testAccessibleCarets and enable it for non-Nightly builds. r=me for
test changes.

MozReview-Commit-ID: EjNwzb5bETy
2017-09-14 17:50:58 -04:00
Jim Chen 4b3ff0f947 Bug 1367079 - 4. Move ActionBarHandler usage out of browser.js; r=snorp
Use ActionBarHandler in BrowserCLH.js instead of browser.js, so it can
handle text selection for all windows. Also update ActionBarHandler to
reflect the new usage and to support multiple windows.

MozReview-Commit-ID: G8sKu2XyAAG
2017-09-14 17:50:58 -04:00
Jim Chen 72191f0c41 Bug 1398409 - 2. Use event callback to communicate FormAssistPopup actions; r=sebastian
Use event callbacks instead of separate events to deliver
FormAssistPopup replies back to FormAssistant. This lets us better
handle having multiple FormAssistPopup instances across Fennec, custom
tabs, and PWAs.

FormAssistant._currentInputElement is removed because it does not allow
us to have multiple concurrent popups. Instead, we track the current
element through the event callback closure.
FormAssistant._currentInputValue is also removed for similar reasons,
and I don't think it was really necessary.

MozReview-Commit-ID: DdeMBGCxDou
2017-09-14 17:50:57 -04:00
Jim Chen 01a4fc38ae Bug 1398409 - 1. Move FormAssistant out of browser.js; r=sebastian
To support FormAssistPopup in custom tabs, we need to move the
FormAssitant object out of browser.js and into its own separate file.
BrowserCLH.h in turn loads FormAssistant.js when necessary.

MozReview-Commit-ID: 7CFQ9R16P4J
2017-09-14 17:50:57 -04:00
Jim Chen 4232922772 Bug 1367077 - 3. Move form fill event listeners out of browser.js; r=sebastian
Move the form fill event listeners out of browser.js and into
BrowserCLH.js, and update them to support chrome windows, so we can
handle form fill events for Fennec, custom tabs, and PWAs.

MozReview-Commit-ID: Fb5gWmGvxfE
2017-09-14 17:50:57 -04:00
Jim Chen 41024a8d34 Bug 1367077 - 2. Move PromptService startup to BrowserCLH; r=snorp
Use the BrowserCLH for PromptService startup, to consolidate startup
handling code and also to delay loading PromptService.

MozReview-Commit-ID: 25UgVH7wrrs
2017-09-14 17:50:54 -04:00
Jim Chen 6abb891f2d Bug 1367077 - 1. Move startup utility functions into GeckoViewUtils; r=snorp
Move `addLazyGetter` and `addLazyEventListener` utility functions from
GeckoViewStartup.js into GeckoViewUtils.jsm, so they can be used for
both Fennec and standalone GeckoView.

Also switch to "chrome-document-loaded" for loading
DownloadNotifications because that's later in the startup sequence.

MozReview-Commit-ID: 1caMtufkHGR
2017-09-14 17:50:54 -04:00
Jim Chen 22aa7aa2bf Bug 1393128 - 3. Initialize DownloadNotifications outside of browser.js; r=esawin
In order to show download notifications, we need to initialize the
DownloadNotifications module outside of browser.js. This patch moves
initialization to BrowserCLH.js, and includes a refactoring of the
`addObserverScripts` function. The "chrome-document-interactive"
notification is used to trigger initialization because it is roughly
equivalent to where we used to initialize the module inside browser.js.

MozReview-Commit-ID: 8o1KZWRt69K
2017-08-28 23:56:44 -04:00
Jim Chen 7055e40b13 Bug 1388724 - 6. Make WebrtcUI not depend on browser.js; r=esawin
Move WebrtcUI loading from browser.js to BrowserCLH.js, so that it can
be loaded without GeckoApp/browser.js being active. Also use the
universal doorhanger API to show the prompts.

MozReview-Commit-ID: Gqsthvn7ZXA
2017-08-18 14:27:31 -04:00
Dan Banner 775694ef61 Bug 1385815 - Enable more whitespace related ESLint rules for mobile/android. r=sebastian
MozReview-Commit-ID: FuM6Neob0mC
2017-08-01 16:36:00 +01:00
Rajesh Kathiriya fefc455410 Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G
2017-07-25 23:45:41 +05:30
Sebastian Hengst 1326418a49 Backed out changeset f5922a7ed25a (bug 1374620) for failing eslint at telemetry/tests/unit/test_TelemetrySend.js:358: ["os"] is better written in dot notation. r=backout 2017-07-31 14:44:34 +02:00
Rajesh Kathiriya 0d920ece6a Bug 1374620 - Enabled the ESLint dot-notation rule across mozilla-central r=standard8
MozReview-Commit-ID: FadrI2li43G
2017-07-25 23:45:41 +05:30
Florian Quèze 6459975a67 Bug 1329182 - remove trailing newURI null parameters in the rest of the tree, r=jaws. 2017-01-09 20:27:26 +01:00
Jim Chen f2ef5ea3a0 Bug 1285572 - Remove Fennec command-line handler; r=snorp
The Fennec CLH is now no longer used for any purpose, so it can be
safely removed.
2016-07-20 21:43:34 -04:00
Jim Chen 29d7e30fb8 Bug 1197957 - Let GeckoView open the nsWindow instead of CLH; r=snorp
Currently, BrowserCLH opens a single new window on startup. Now that
GeckoView is able to open windows through GeckoView.Window, we should
make GeckoView open its own window, which we can do earlier in startup,
and will make it possible to support multiple GeckoView's down the road.
2015-09-21 10:13:32 -04:00
Jim Chen a7ca9c8efb Bug 1195496 - Move speculative connection from CLH to GeckoApp; r=snorp
Moving speculative connection from CLH to GeckoApp allows us to start
the speculative connection very early in the startup process rather
than later in startup.
2015-08-19 18:14:47 -04:00
Fabrice Desré 7c673bf9c1 Bug 1180507 - Don't hardcode defaultChromeURI in BrowserCLH.js r=mfinkle 2015-07-05 20:26:17 -07:00
Mark Finkle 98f8a492a4 Bug 937253 - Make pinned tabs work for Homescreen shortcuts r=bnicholson 2015-01-07 23:53:28 -05:00
Wes Johnston 6ba11ae36c Bug 1058150 - Use restricted profiles for guest mode. r=mfinkle 2014-09-09 15:08:37 -07:00
Nick Alexander 8fc16ff305 Bug 948465 - Part 1: Register resource://android/ pointing to Fennec APK root. r=mfinkle
Consumers can access Android assets (and resources) by using
resource://android/assets/FILENAME.

The resource substitution is registered at app-startup time so that the
substitution is in place before any add-on has started up: as documented
at [1], "[an] add-on will not receive xpcom-startup or app-startup
notifications".

[1] https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Guide/Receiving_startup_notifications
2014-07-22 21:41:53 -07:00
Mark Finkle 5cd89feb31 Bug 966573 - Use speculative connections for URLs coming into BrowserCLH.js r=wesj 2014-02-12 11:27:25 -05:00
Wes Johnston b22cdae05a Bug 896121 - Disable share in guest mode. r=mfinkle 2013-08-26 16:41:13 -07:00
Wes Johnston 52a4306095 Bug 818336 - Don't switch tabs when returning to a webapp. r=mfinkle 2013-01-10 10:18:58 -08:00
Kyle Huey 76a2832eea Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-31 09:13:28 -07:00
Vicamo Yang ea784216bd Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey c82a2d6fea Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley c34b7d9377 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey 8078ab712e Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Brian Nicholson 1b837aed0f Bug 722661 - Part 4: Remove restoreMode command line argument. r=mfinkle 2012-10-29 16:34:29 -07:00
Mark Finkle 8a4ac4e552 Bug 783795 - locationbar, personalbar, menubar, statusbar, and toolbar are true in a webapp - should be false r=wesj 2012-10-13 11:18:22 -04:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Brian Nicholson ed6d3510b3 Bug 753625 - Use tri-state session restore flag. r=mfinkle 2012-05-14 14:48:04 -07:00
Mark Finkle 98a219bbe1 Bug 737050 - Add support for the WEBAPP intent r=blassey r=bnicholson r=gavin 2012-04-13 22:45:25 -04:00
Kartikaya Gupta f649d5ee11 Bug 717085 - Ensure that when Gecko does a session-restore, it knows how big the screen is. r=pcwalton 2012-01-20 09:36:08 -05:00
Brian Nicholson 69b1a6a2a3 Bug 697858 - Save restore state in bundle. r=mfinkle 2012-01-09 11:09:53 -08:00
Ed Morley 320abe654d Backout a9f4c0795560 (bug 715673), 05dfaf51fa83 (bug 715388) & af32a0da45c9 (bug 697858) for native Android test failures 2012-01-09 22:45:30 +00:00
Brian Nicholson 8bab24c973 Bug 697858 - Save restore state in bundle [r=mfinkle] 2012-01-09 11:09:53 -08:00
Mark Finkle 192dc38cc3 Bug 703450 - Restore tabs when waking up, always open external links in new tab [r=mbrubeck] 2012-01-06 13:10:16 -05:00
Doug Turner 32024b9c86 Bug 703098 - Removing unneeded file.exist checks. Stats are terrible. r=mfinkle 2011-11-17 13:03:57 -08:00
Doug Turner 91813a81fd Bug 701833 - hg move /mobile to /mobile/android r=mfinkle CLOSED TREE 2011-11-17 09:24:55 -05:00