Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: composer.postload.js

Issue 29738592: Issue 6507 - Inject style sheet proactively from background page (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Add delay Created April 6, 2018, 6:14 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include.preload.js » ('j') | lib/cssInjection.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: composer.postload.js
===================================================================
--- a/composer.postload.js
+++ b/composer.postload.js
@@ -538,17 +538,17 @@
// Hide the selected element itself if an added blocking
// filter is causing it to collapse. Note that this
// behavior is incomplete, but the best we can do here,
// e.g. if an added blocking filter matches other elements,
// the effect won't be visible until the page is is reloaded.
checkCollapse(currentElement.prisoner || currentElement);
// Apply added element hiding filters.
- elemhide.apply();
+ browser.runtime.sendMessage({type: "elemhide.needApply"});
Manish Jethani 2018/04/06 06:20:02 Here we just have to request the background page t
}
deactivateBlockElement(!!message.popupAlreadyClosed);
break;
case "composer.content.clearPreviousRightClickEvent":
if (!lastRightClickEventIsMostRecent)
lastRightClickEvent = null;
lastRightClickEventIsMostRecent = false;
break;
« no previous file with comments | « no previous file | include.preload.js » ('j') | lib/cssInjection.js » ('J')

Powered by Google App Engine
This is Rietveld