RESOLVED FIXED 154046
Add SPI to remove individual user scripts or user style sheets
https://bugs.webkit.org/show_bug.cgi?id=154046
Summary Add SPI to remove individual user scripts or user style sheets
Anders Carlsson
Reported 2016-02-09 14:09:50 PST
Add SPI to remove individual user scripts or user style sheets
Attachments
Patch (13.04 KB, patch)
2016-02-09 14:12 PST, Anders Carlsson
no flags
Patch (13.08 KB, patch)
2016-02-09 14:55 PST, Anders Carlsson
sam: review+
Anders Carlsson
Comment 1 2016-02-09 14:12:06 PST
mitz
Comment 2 2016-02-09 14:37:23 PST
Comment on attachment 270952 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=270952&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKUserContentControllerPrivate.h:42 > +@property (nonatomic, readonly, copy) WK_ARRAY(_WKUserStyleSheet *) *_userStyleSheets; This looks new. Why no availability?
Anders Carlsson
Comment 3 2016-02-09 14:43:16 PST
(In reply to comment #2) > Comment on attachment 270952 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=270952&action=review > > > Source/WebKit2/UIProcess/API/Cocoa/WKUserContentControllerPrivate.h:42 > > +@property (nonatomic, readonly, copy) WK_ARRAY(_WKUserStyleSheet *) *_userStyleSheets; > > This looks new. Why no availability? Oversight on my part. Fixed.
Anders Carlsson
Comment 4 2016-02-09 14:55:28 PST
Anders Carlsson
Comment 5 2016-02-09 15:04:28 PST
WebKit Commit Bot
Comment 6 2016-02-09 16:53:14 PST
Re-opened since this is blocked by bug 154056
Ryan Haddad
Comment 7 2016-02-09 17:12:12 PST
*** Bug 154052 has been marked as a duplicate of this bug. ***
Ryan Haddad
Comment 8 2016-02-09 17:12:38 PST
3 WKUserContentController API tests were failing on Mac and iOS after this change: Tests that failed: WKUserContentController.AddUserStyleSheetBeforeCreatingView WKUserContentController.UserStyleSheetAffectingAllFrames WKUserContentController.UserStyleSheetAffectingOnlyMainFrame <https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK2%20%28Tests%29/builds/3215> FAIL WKUserContentController.AddUserStyleSheetBeforeCreatingView /Volumes/Data/slave/elcapitan-release/build/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:276 Value of: value Actual: "rgb(255, 0, 0)" Expected: color Which is: "rgb(0, 128, 0)" FAIL WKUserContentController.UserStyleSheetAffectingAllFrames /Volumes/Data/slave/elcapitan-release/build/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:276 Value of: value Actual: "rgb(255, 0, 0)" Expected: color Which is: "rgb(0, 128, 0)" /Volumes/Data/slave/elcapitan-release/build/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:276 Value of: value Actual: "rgba(0, 0, 0, 0)" Expected: color Which is: "rgb(0, 128, 0)" FAIL WKUserContentController.UserStyleSheetAffectingOnlyMainFrame /Volumes/Data/slave/elcapitan-release/build/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm:276 Value of: value Actual: "rgb(255, 0, 0)" Expected: color Which is: "rgb(0, 128, 0)"
Anders Carlsson
Comment 9 2016-02-10 15:57:31 PST
Frédéric Wang (:fredw)
Comment 10 2016-02-11 01:58:59 PST
(In reply to comment #9) > Committed r196399: <http://trac.webkit.org/changeset/196399> This broke the GTK build.
Note You need to log in before you can comment on or make changes to this bug.