Commit Graph

4486 Commits

Author SHA1 Message Date
Kris Maglione
e97c582e3f Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL
2018-05-21 16:58:23 -07:00
Kris Maglione
9ba14892f2 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG
2018-05-20 18:10:16 -07:00
Narcis Beleuzu
749f83cc65 Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione
6dcf46ad68 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL
2018-05-21 16:58:23 -07:00
Kris Maglione
86fbdd6653 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG
2018-05-20 18:10:16 -07:00
Florian Quèze
aa42a81067 Bug 1475589 - remove the focused attribute early on the urlbar when adopting a tab, to ensure the url gets properly formatted, r=Gijs. 2018-07-27 23:00:27 +02:00
Dipen Patel
54148735a5 Bug 1475647 - Remove nsISSLStatusProvider interface. r=baku,Gijs,jchen,jryans,keeler,mcmanus
- Access nsISSLStatus directly as a member of nsITransportSecurityInfo
and nsISecureBrowserUI.  This is part of a larger effort to consolidate
nsISSLStatus and nsITransportSecurityInfo.
- The TabParent implementation of GetSecInfo will always return null.
- Removed unnecessary QueryInterface calls
- Style adherence updates

MozReview-Commit-ID: Dzy6t2zYljL
2018-07-13 11:48:55 -07:00
Brian Hackett
5cd86c4278 Bug 1465477 Part 1 - Add menu items and prefs for recording/replaying tabs, r=markh. 2018-07-24 21:32:16 +00:00
Boris Zbarsky
e98236cf07 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Brian Grinstead
3097f96e03 Bug 1476333 - Refer to AppConstants.BROWSER_CHROME_URL to get the browser URL from the frontend;r=Gijs
Before this change, we accessed the browser URL in the following ways:

- "chrome://browser/content/browser.xul"
- "chrome://browser/content/" (which redirects to chrome://browser/content/browser.xul)
- Services.prefs.getCharPref("browser.chromeURL") which returns "chrome://browser/content/"
- getBrowserURL() from utilityOverlay.js

MozReview-Commit-ID: I5vtRke1x9t
2018-07-24 08:12:50 -07:00
shindli
376051d773 Backed out changeset d126a6593e8f (bug 1475647) for mozmake.exe bustage on a CLOSED TREE 2018-07-24 02:55:53 +03:00
Dipen Patel
3a1015c4e6 Bug 1475647 - Remove nsISSLStatusProvider interface. r=baku,Gijs,jchen,jryans,keeler,mcmanus
- Access nsISSLStatus directly as a member of nsITransportSecurityInfo
and nsISecureBrowserUI.  This is part of a larger effort to consolidate
nsISSLStatus and nsITransportSecurityInfo.
- The TabParent implementation of GetSecInfo will always return null.
- Removed unnecessary QueryInterface calls
- Style adherence updates

MozReview-Commit-ID: Dzy6t2zYljL
2018-07-13 11:48:55 -07:00
trisha
080cf397f3 Bug 1463759 Change the copy of certificate error pages r=johannh
MozReview-Commit-ID: LbZBwSk1xX4
2018-07-04 18:15:43 +05:30
Abdoulaye O. Ly
9bd1f9c2b2 Bug 1475427 - Refactor warnAboutClosingTabs function in tabbrowser.js so that it directly takes the number of tabs to close as param. r=jaws
MozReview-Commit-ID: Hhdanmwx7rN
2018-07-18 19:30:36 +00:00
Gijs Kruitbosch
a242ba95b3 Bug 1441039 - same-document changes should cause empty URL bar to fill back up for current tab, r=mak
Make URLBarSetURI more explicit about what it's looking for in `value`,
and ensure the tabbrowser's progress listeners reset the userTypeValue if it's
empty already and there's a same-site document change.

Differential Revision: https://phabricator.services.mozilla.com/D2181
2018-07-19 10:47:23 +00:00
Brian Grinstead
7f0bb42e22 Bug 1476030 - Part 3 - Migrate callers from document.persist to xulStore.persist;r=Gijs
MozReview-Commit-ID: JmlIDK9A8dv
2018-07-18 09:43:45 -07:00
Bogdan Tara
7b05aa90b3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-17 01:02:10 +03:00
Brian Grinstead
15d73c3684 Bug 1475304 - Remove broadcasters that only have one observer;r=Gijs,johannh
MozReview-Commit-ID: KbYBy2RjK1i
2018-07-16 11:47:58 -07:00
Johann Hofmann
d5c1e4a947 Bug 1471713 - Add an animation for the tracking protection icon. r=sfoster
MozReview-Commit-ID: GBUbaoShxQi
2018-07-05 23:45:34 +02:00
Coroiu Cristina
0d079051d4 Backed out changeset 27335463acd1 (bug 1471713) for browser-chrome failures at browser/components/uitour/test/browser_trackingProtection.js 2018-07-12 14:57:30 +03:00
Johann Hofmann
ef5fb8896a Bug 1471713 - Add an animation for the tracking protection icon. r=sfoster
MozReview-Commit-ID: GBUbaoShxQi
2018-07-05 23:45:34 +02:00
Coroiu Cristina
77c15fc6dc Backed out changeset 66d9b0f57c81 (bug 1471713) for build bustage on a CLOSED TREE 2018-07-12 10:25:04 +03:00
Johann Hofmann
68143cf08b Bug 1471713 - Add an animation for the tracking protection icon. r=sfoster
MozReview-Commit-ID: GBUbaoShxQi
2018-07-05 23:45:34 +02:00
Brian Grinstead
79daf25762 Bug 1473160 - Move non browser window startup and shutdown functionality into a separate JS file;r=Gijs
These are mac-only functions used to support the dock and application menu for
non browser windows (anything that includes macWindow.inc.xul). Make this more
straightforward by splitting the code out into a new script file that gets loaded
directly by macWindow.inc.xul rather than unconditionally adding the functions
and only calling them when needed.

MozReview-Commit-ID: 8y3rij5vqyh
2018-07-11 06:47:16 -07:00
Cosmin Sabou
eebe06b290 Merge autoland to mozilla-central. a=merge 2018-07-11 00:50:32 +03:00
Manish Kumar
bff8489dc9 Bug 1473585 - Remove restoreLastSession function. r=dao 2018-07-07 20:29:56 +02:00
Dão Gottwald
1406fa5eda Bug 1473309 - Move TabContextMenu and stray usercontext-related functions from browser.js to tabbrowser.js. r=bgrins
MozReview-Commit-ID: CA3F65x08Kg
2018-07-04 16:24:37 +02:00
Axel Hecht
28138483f9 Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws
Also changes the tooltip on the home button to be independent of the URLs
it opens, per dolske.

Some tests explicitly set browser.startup.homepage, but only through
SpecialPowers.putPrefEnv. That's a good compromise, given the extra
functionality there.

MozReview-Commit-ID: FPLxzi3jQAP
2018-05-28 12:38:01 +02:00
Brian Grinstead
0a73fc1924 Bug 1445764 - Remove redundant Places imports from pages that load browser.js;r=standard8
MozReview-Commit-ID: JsPiKMA21Fj
2018-07-03 14:26:51 -07:00
arthur.iakab
2476395d52 Merge inbound to mozilla-central a=merge 2018-07-03 11:55:46 +03:00
Abdoulaye O. Ly
975b317b22 Bug 1458061 - Implement ability to reload a selection of tabs. r=Gijs
MozReview-Commit-ID: CyJLk7pxGRr
2018-06-29 02:39:18 +00:00
Brian Grinstead
ccbad1fc02 Bug 1472751 - Remove MAC_NON_BROWSER_WINDOW preprocessor directive;r=Gijs
The menuitem used to be only included in the markup for the non-browser window
case. This changes it to include it as a hidden <menuitem> for the browser window
case, and then unhide it for the non-browser window case.

MozReview-Commit-ID: 8tY3GiTFmqe
2018-07-02 14:25:35 -07:00
Brian Grinstead
7702ea3b92 Bug 1471734 - Remove FULL_BROWSER_WINDOW preprocessor directive;r=Gijs
The key used to be removed from the markup. This changes it to include
the <key> but instead disable it through the related command, which fits
the pattern used with other commands.

MozReview-Commit-ID: LPuwULDt22W
2018-07-02 10:42:35 -07:00
Coroiu Cristina
72b3df5f72 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-06-30 01:00:54 +03:00
Dave Townsend
0f2c3bd648 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850
Differential Revision: https://phabricator.services.mozilla.com/D1869
2018-06-28 16:06:09 -07:00
Abdoulaye O. Ly
7c49799423 Bug 1458060 - Implement ability to pin/unpin a selection of tabs. r=jaws
MozReview-Commit-ID: Hqt8QrqQ62V
2018-06-23 18:07:48 +00:00
Brindusan Cristian
d94fd86e60 Backed out changeset b11aa832c41a (bug 1453751) for Mochitest-15 failures in toolkit/components/extensions/test/mochitest/test_ext_webrequest_filter.html. CLOSED TREE 2018-06-28 23:15:49 +03:00
Dave Townsend
ebc2c6ff75 Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan
Summary:
This moves the load of favicons into the content process. We use the same logic
for finding favicons (based on waiting until none have shown up for a short
time) but then load the favicon and convert it to a data uri which we then
dispatch to the parent process. Along the way this fixes asssociating the load
with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes
expiry detection of the favicon and stops us from loading the same resource
twice.

This change also merges the prefs browser.chrome.site_icons and
browser.chrome.favicons leaving just the former controlling favicon loading. It
adds the pref browser.chrome.guess_favicon to allow disabling guessing where
a favicon might be located for a site (at <hostname>/favicon.ico). This is
mainly to allow disabling this in tests where those additional yet automatic
requests are uninteresting for the test.

There are multiple clean-ups that can follow this but this is a first step along
that path.

MozReview-Commit-ID: E0Cs59UnxaF

Reviewers: mak

Tags: #secure-revision

Bug #: 1453751

Differential Revision: https://phabricator.services.mozilla.com/D1672
Differential Revision: https://phabricator.services.mozilla.com/D1673
Differential Revision: https://phabricator.services.mozilla.com/D1674
Differential Revision: https://phabricator.services.mozilla.com/D1850
2018-06-04 12:53:55 -07:00
Gijs Kruitbosch
8f5de7b966 Bug 1470002 - remove pageshow message passing, too, r=adw,jryans
MozReview-Commit-ID: 27v79lVOODG
2018-06-20 22:53:40 +01:00
Mark Banner
b24bddc9dc Bug 1452645 - Remove load in sidebar functionality. r=lina,mak
Based on patch by mixedpuppy.

MozReview-Commit-ID: BZwOtr4VbCH
2018-06-06 21:00:45 +01:00
Marco Bonardo
f48f3f03f5 Bug 1419391. r=gijs
MozReview-Commit-ID: IdHuQKgux1c
2017-10-19 13:59:12 +02:00
Dão Gottwald
3e1a255f0a Bug 1459907 - Implement new bookmark confirmation. r=mak
MozReview-Commit-ID: DsTXTKgX72y
2018-06-23 15:28:47 +02:00
Mark Striemer
efe6694e0a Bug 1446101 - Part 4: Remove old alltabs code, rename alltabs-popup to newtab-popup r=dao
MozReview-Commit-ID: 1U0Jg9bpEGV
2018-06-06 16:34:49 -05:00
Mark Striemer
bec92cae1b Bug 1446101 - Part 2: Convert the all tabs panel to photon styles r=dao
MozReview-Commit-ID: 3VzqnG6X5rw
2018-06-06 15:48:21 -05:00
ad00405168 Bug 1464414 - Remove gURLBar null-check from XULBrowserWindow.setOverLink. r=dao 2018-06-21 12:23:29 +02:00
layely
8f86b7bb1c Bug 1458039 - Implement ability to mute/unmute a selection of tabs. r=jaws
MozReview-Commit-ID: 7aw08gxOOtk
2018-05-31 03:26:25 +00:00
Mark Banner
8bd7ef0069 Bug 1453667 - Remove BrowserUITelemetry from search. r=adw
MozReview-Commit-ID: L0Fj2d7BGdt
2018-06-06 19:40:27 +01:00
layely
84900bd57e Bug 1467340 - Ctrl+w and Ctrl+f4 shortcuts close all selected tabs in multi-select context. r=jaws
MozReview-Commit-ID: AfrpuOKBfas
2018-06-07 13:36:17 +00:00
Mike Conley
604c65bb25 Bug 1458375 - Add a new browser-idle-startup-tasks-finished notification. r=Felipe
This notification fires when a browser window finishes running its idle tasks. Note
that it might never run if every window goes away before the idle tasks can run.

MozReview-Commit-ID: IEH98S29jhV
2018-05-29 12:47:54 -04:00
Christoph Kerschbaumer
f7a0ac1bfc Bug 1459204: Have about:privatebrowsing rely on RemotePageManager instead of AboutCapabilities. r=mossop,baku 2018-06-07 11:32:27 +02:00