Git Product home page Git Product logo

ltilve / chromium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benmccann/chromium

0.0 0.0 0.0 2.74 GB

Chromium.org open source browser project, git cloned from http://git.chromium.org/chromium/src.git

License: BSD 3-Clause "New" or "Revised" License

Python 2.52% C++ 73.93% C 1.30% Java 3.12% HTML 8.90% JavaScript 6.28% Objective-C++ 2.75% nesC 0.01% Objective-C 0.47% Shell 0.15% Makefile 0.02% Protocol Buffer 0.15% CSS 0.30% AppleScript 0.01% PHP 0.03% Perl 0.02% PLpgSQL 0.06% Arduino 0.01% Standard ML 0.01% XSLT 0.01%

chromium's People

Contributors

beverloo avatar danakj avatar danbeam avatar davidben avatar erikchen avatar hirono-chromium avatar jbauman2 avatar jbudorick avatar jmuk avatar leizleiz avatar mgiuca avatar minorninth avatar mitoshima avatar mounirlamouri avatar mspang avatar mtomasz-chromium avatar nedn avatar nico avatar nik3daz avatar pkotwicz avatar rdcronin avatar reillyeon avatar reveman-chromium avatar sdefresne avatar sgraham avatar tapted avatar tfarina avatar xhwang-chromium avatar zetafunction avatar

Watchers

 avatar  avatar  avatar  avatar

chromium's Issues

Problems running some extensions inside browserAction sidebar

It seems there are some problems on the behaviour of some extensions when their popup is shown as a sidebar. For instance 'Process sample' https://developer.chrome.com/extensions/samples#search:process%20monitor is working as expected on both cases, others as 'My Bookmarks' https://developer.chrome.com/extensions/samples#search:my%20bookmarks are apparently failing to populate the sidebar page. This issue seems to be happening also with "bookmarks-sidebar" example extension when the sidebar is not displayed by using the chrome.sidebar.show API call.

Have the Sidebar instead of SidebarManager internal state functions

By https://codereview.chromium.org/1152613003/#msg15

https://codereview.chromium.org/1152613003/diff/40001/chrome/browser/extensio...
chrome/browser/extensions/sidebar_manager.cc:191: void
SidebarManager::NavigateSidebar(content::WebContents* tab,
Certain methods here (like this one) seem to belong purely on the Sidebar
itself, rather than in the manager. I think the Manager should be responsible
for managing which sidebar is showing (if any), but not responsible for the
internal state of that sidebar (like url).

Disable support of content_id_to_sidebar_container mapping

From https://codereview.chromium.org/1152613003/diff/40001/chrome/browser/extensions/sidebar_manager.cc?context=10&column_width=80&tab_spaces=8

I don't think we should support multiple sidebars in a single tab - it's
wasteful with web contents, and this "active/inactive" stuff complicates the
code a lot. Why not just have it behave similar to popups (though on a per-tab
basis) - you can have one sidebar open at a time, and if you open another, it
closes the first (completely)?

Crash after rebasing at interactive_ui_tests

  • out/Debug/interactive_ui_tests --no-sandbox --single_process --gtest_filter=SidebarTest.*

Crashes at SidebarTest::ShowSidebar(WebContents* temp, const std::string& test_page),
Due to the null host_ in SidebarContainer.
We need to check initialization sequence of SidebarContainer and SidebarManager

Assertion failures when opening / closing sidebar in debug mode

AddObserver should be done at construction time of ExtensionActionViewController,
to match with RemoveObserver in destructor of ExtensionActionViewController.
So we need to remove AddObserver from TriggerPopupWithUrl

It is handled at cd41a1e0c4f461d01b75a5ec425eab20787bbf10

Also, We need to handle popup_owner_ of ToolbarActionBar properly.

Restrict width of sidebar

Implement proper codes instead of hard coded value with comment:

void BrowserView::UpdateSidebarForContents(content::WebContents* new_contents) {
...
int sidebar_width = 300;// g_browser_process->local_state()->GetInteger(
//prefs::kExtensionSidebarWidth);

Crash happened on window.close() at self-closed extension

../../third_party/tcmalloc/chromium/src/free_list.h:118] Memory corruption detected.
Segmentation fault

The crash happened once after an extension was being displayed as a sidebar on the newTab window, and called window.close() after a few seconds timeout. Repeating the process several times more, I was not able to reproduce again the problem.

Remove SidebarManager from browser process

From Devlin review:
https://codereview.chromium.org/1152613003/diff/20001/chrome/browser/browser_process.h#newcode124

We almost certainly don't want to have a SidebarManager as part of the browser
process (sidebars cannot, for instance, cross profiles). This should be tied
more closely to a profile, and should probably either be a
BrowserContextKeyedService (or one of its subclasses) or live on the
ExtensionSystem. My first inclination is probably that the latter makes more
sense.

Sidebar visible at detached DevTools window

Using the chrome.tabs API to iterate through the available tabs to toggle the sidebar at all of them, it also shows it at the devTools window, when this is detached. It might be a good idea to avoid allowing sidebars at the DevTools, as there is already an specific chrome.devtools.panels API for that.

Fix BrowserActionsBarBrowserTest

out/Debug/browser_tests --gtest_filter=BrowserActionsBarBrowserTest.*
out/Debug/browser_tests --gtest_filter=BrowserActionsBarRedesignBrowserTest.*

Shows failures on top of igalia/sidebar-cocoa a333115911cd2577004f6dc42c1af2caa8695a94

Remove extension_sidebar_*.[h|cc] from browserAction CL

Those classes should not placed in extensions/common, because these functionality are
only related to sidebar_api and sidebar_manager

extensions/common/extension_sidebar_defaults.cc | 18 +
extensions/common/extension_sidebar_defaults.h | 29 +
extensions/common/extension_sidebar_utils.cc | 37 +
extensions/common/extension_sidebar_utils.h | 29 +

Test fails at BrowserWindowControllerTest.TestSplitViewsAreNotOpaque

$ ./out/Release/unit_tests --single-process --gtest_filter=BrowserWindowControllerTest*

[ RUN ] BrowserWindowControllerTest.TestSplitViewsAreNotOpaque
2015-04-21 16:10:45.261 unit_tests[49694:1591922] -[SidebarController view]: unrecognized selector sent to instance 0x7ff88e855b30
[49694:1299:0421/161045:79539930151365:FATAL:chrome_browser_application_mac.mm(159)] Someone is trying to raise an exception! NSInvalidArgumentException reason -[SidebarController view]: unrecognized selector sent to instance 0x7ff88e855b30
[11/17] BrowserWindowControllerTest.TestResizeViewsWithBookmarkBar (171 ms)
[12/17] BrowserWindowControllerTest.BookmarkBarIsSameWidth (79 ms)
[13/17] BrowserWindowControllerTest.TestTopRightForBubble (70 ms)
[14/17] BrowserWindowControllerTest.TestZoomFrame (116 ms)
[15/17] BrowserWindowControllerTest.TestFindBarOnTop (84 ms)
[16/17] BrowserWindowControllerTest.TestSplitViewsAreNotOpaque (CRASHED)
Note: Google Test filter = BrowserWindowControllerTest.BookmarkBarHitTest
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from BrowserWindowControllerTest
[ RUN ] BrowserWindowControllerTest.BookmarkBarHitTest
[ OK ] BrowserWindowControllerTest.BookmarkBarHitTest (150 ms)
[----------] 1 test from BrowserWindowControllerTest (151 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (151 ms total)
[ PASSED ] 1 test.
[17/17] BrowserWindowControllerTest.BookmarkBarHitTest (150 ms)
1 test crashed:
BrowserWindowControllerTest.TestSplitViewsAreNotOpaque
Tests took 2 seconds.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.